VMware Cloud Community
AllBlack
Expert
Expert
Jump to solution

Capacity, Demand and Usage question

Hi there,

Just to confirm,

If usage is lower than demand than you have contention. Let's say that I have 100 Ghz of capacity and a demand of 30 Ghz. My usage is 20 Ghz.
There is obviously plenty of capacity so in my scenario this means that the virtual machines simply have not been provided with enough resources and I should see the margin between demand and usage close if I increase the CPU allocation at the VM level?


Cheers

Please consider marking my answer as "helpful" or "correct"
Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
NuggetGTR
VMware Employee
VMware Employee
Jump to solution

For those images I would say everything looks ok, the demand and usage is a bit far removed when looking at the cluster level and sometimes host level if they are large. and if there are limits set or large SMP VMs.

There is no real rule on what difference is bad. its all relative.

Its good to think about it as being reactive a VM wants resources and the hypervisor reacts to that. usage always following demand, it will be very rare even with zero overcommit that demand and usage are equal.usage will generally trail demand by a small amount.

Its best to use this in conjunction with CPU ready and contention and a bit of co-stop. to determine if there is an issue.

Its worth noting CPU contention though is directly related to latency, and latency is heavily affected by CPU state. meaning if power mode is balanced or anything else other than high performance contention can be artificially increased with the change in CPU states

________________________________________ Blog: http://virtualiseme.net.au VCDX #201 Author of Mastering vRealize Operations Manager

View solution in original post

Reply
0 Kudos
5 Replies
NuggetGTR
VMware Employee
VMware Employee
Jump to solution

Yeah generally if usage is lower than demand you have 1 of 2 issues.

1) The VM simply needs more resources because its been limted or needs more than the amount of CPUs allocatted

2) There is real contention and just cant get what it needs

________________________________________ Blog: http://virtualiseme.net.au VCDX #201 Author of Mastering vRealize Operations Manager
Reply
0 Kudos
AllBlack
Expert
Expert
Jump to solution

Thanks,

Can I have your thoughts on the attached images which I took at cluster and host level?

Is this actually an issue? As you can see the demand is higher than usage but plenty of capacity left on this cluster. The workload indicator seems to detect no issues.

When I check the hosts in the cluster I see demand higher than usage but little difference (i.e 43 Ghz Capacity, 12 Ghz Demand, 11 Ghz Usage)
and when I look at the individual VM's I see something similar. Demand is only a little bit more than usage in most cases. How much difference is considered bad?

Would you actively try to get the demand and usage values closer in this scenario? Should I ignore the difference at cluster level?
I did check the CPU | Contention metric at the cluster level and it peaked around 4.6% in the last week but averages around 2%

Cheers

Please consider marking my answer as "helpful" or "correct"
Reply
0 Kudos
NuggetGTR
VMware Employee
VMware Employee
Jump to solution

For those images I would say everything looks ok, the demand and usage is a bit far removed when looking at the cluster level and sometimes host level if they are large. and if there are limits set or large SMP VMs.

There is no real rule on what difference is bad. its all relative.

Its good to think about it as being reactive a VM wants resources and the hypervisor reacts to that. usage always following demand, it will be very rare even with zero overcommit that demand and usage are equal.usage will generally trail demand by a small amount.

Its best to use this in conjunction with CPU ready and contention and a bit of co-stop. to determine if there is an issue.

Its worth noting CPU contention though is directly related to latency, and latency is heavily affected by CPU state. meaning if power mode is balanced or anything else other than high performance contention can be artificially increased with the change in CPU states

________________________________________ Blog: http://virtualiseme.net.au VCDX #201 Author of Mastering vRealize Operations Manager
Reply
0 Kudos
AllBlack
Expert
Expert
Jump to solution

Thanks,

Having a look at the power mode, it is set to balanced as per default. Is it in general recommended to use high performance?
The cluster in question is for general production purposes and power savings (cost wise) is no concern.

Cheers

Please consider marking my answer as "helpful" or "correct"
Reply
0 Kudos
NuggetGTR
VMware Employee
VMware Employee
Jump to solution

Yeah I generally always recommend High Performance on hosts unless power is a real concern.

________________________________________ Blog: http://virtualiseme.net.au VCDX #201 Author of Mastering vRealize Operations Manager
Reply
0 Kudos