VM Density question

Status
Not open for further replies.

Rick25

Ars Tribunus Militum
2,511
Subscriptor
What are people using as a ratio of physical Cores to vCPUs in their ESX environments?

We're currently at a 30ish-1 VM-to-Host on one of our clusters (no sign of CPU stress or inflated wait times). When I ran the Ops Manager report it's suggesting using a 4:1 ratio for the CPU which shows the cluster as being maxed out. Memory isn't an issue as I refuse to over-allocate that at all, we're also keeping enough buffer to completely lose a Host without having to bring anything down.
 

Danger Mouse

Ars Legatus Legionis
39,080
Subscriptor
Along the same lines, I had about 120 VMs on one 8 core host (dual cpu) during the oddities with the 5.0u2 to 5.0u3 upgrade that I posted about in the main thread.

I think the vCPU assignments would average out close to 2 per VM. That means 240VMs divided by 8 cores means 30, which is what you're at.

Mind you, I've got a long EOL EMC Celerra NS480 with no flash cache and no FastCache and no tiering going on.

There was no real degradation in performance. I think I saw peaks to 30% CPU utilization.

I recall someone writing 18 months or more ago, about their VDI deployment that used all flash storage on each host, and there was something like 2000 guests per host. It's way out of support, but the performance was fine since the system was maxed for RAM and had very fast storage.

RAM is a little over allocated, due to issues with certain legacy apps that seem to crap out without having a minimum of 2GB or 3GB allocated to those VMs.
 

afidel

Ars Legatus Legionis
18,433
Subscriptor
We're probably a little over 5:1 vcpu:pcpu cores, average 30 vms per 12 core host (though hyperthreading helps with an additional 12 for coscheduling) , two vcpu per vm with some having significantly more and some low priority boxes with 1 vcpu. We likewise don't oversubscribe ram, it's just not worth it as the performance problems it can cause will destroy the confidence in your vm infrastructure. %RDY is the key metric we found to be important for tracking cpu oversubscription performance, anything over around 5% was noticable and 10% was horrible for user interactive performance.
 

parkgoons

Ars Scholae Palatinae
750
At one point I had a couple production hosts with 30 VM's on a single quad core host with only 16GB RAM and it actually ran fine surprisingly. I was running out of CPU before RAM and disk, but that is a rare problem in my experience, usually its RAM and disk that run out of juice before CPU. Really it just depends on your work load. On the flip side, we had a single hard hitting Exchange VM that would tap out a host with dual quads and 32GB of RAM. The only reason it was virtual is so we could have the flexibility of being able to move the VM from one box to another.
 

Danger Mouse

Ars Legatus Legionis
39,080
Subscriptor
[url=http:/civis/viewtopic.php?p=25936463#p25936463:1vuhzfho said:
euri[/url]":1vuhzfho]3-5:1 vCPU:pCPU is generally as high as you want to go. The more vSMP present, the lower you want the ratio to be. The 4:1 ratio offered is a pretty good jumping off point.

As always, pay attention to RDY. Watch CSTP for idle vCPUs to help in sizing.

FWIW, in normal operations, this (4:1) is where I'm at.

That 30:1 hit only during the upgrade problems I had or in a disaster scenario where I lose most of my cluster.

My DR cluster will sit at 10:1 unfortunately, but in a DR scenario, a good number of VMs would probably stay offline as not being critical to operations during recovery.
 

Rick25

Ars Tribunus Militum
2,511
Subscriptor
Someone verify my Ready math please.

If I get VC to display CPU Ready for the last month, it breaks it down to 2hr chunks.
So to calculate the proper % I do 120*60*1000 to get milliseconds. Then take the value that's displayed per VM and it's (value/7200000)*100 to get the percentage?
This is based on a 1CPU (I'd need to adjust accordingly if multiples)

Jason is there a way to get VC to display the CSTP values for the last month?

[edit]

Do I need to verify the Host ready percentage or do I just looks at the individual VMs? If calculating the Host do I divide the Ready % by the number of Physical cores?
 

jshiplett

Ars Tribunus Angusticlavius
6,710
Subscriptor
[url=http:/civis/viewtopic.php?p=25940271#p25940271:jmo60bbu said:
Rick25[/url]":jmo60bbu]Jason is there a way to get VC to display the CSTP values for the last month?

Nope. vCenter Server doesn't capture it. You'll have to do an esxtop batch mode capture if you want it over time.

Others may have differing opinions, but I don't look at host RDY, as I'm typically troubleshooting individual VM performance issues.
 
Status
Not open for further replies.