Avatar of Los Angeles1
Los Angeles1
 asked on

VMWare, esxtop and host CPU utilization

I can bring my VM up to about 35 percent CPU in the OS, and 60 percent in the VM, as reported by the GUI

I want to see what the Host is doing in CPU

When I go to esxtop, it says that 'system' and 'helper' are at zero percent idle

When I am running something or not

How do I determine what the host CPU from esxtop ?

I thought I would judge this from 'system' and 'helper'
VMware

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
Aaron Tomosky

How many cores does the CPU have? How many vcpu did you assign the guest?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Don't forget CPU Usage is always available from the vSphere Client and Performance Monitor Graphs.

esxtop
CPU

CPU load average of 1.00 means full utilisation of all CPU’s. A load of 2.00 means the host is using twice as many physical CPU’s as are currently available, likewise 0.50 means half are being utilised.

CPU Screen

PCPU USED(%) – Physical hardware execution context. Can be a physical CPU core if hyperthreading is unavilable or disabled or a logical CPU (LCPU) or SMT thread if hyperthreading is enabled. This displays PCPU percentage of CPU usage when averaged over all PCPUs.

PCPU UTIL(%) - Physical CPU utilised. (real time) Indicates how much time the PCPU was busy, in an unhalted state, in the last snapshot duration. Might differ from PCPU USED(%) due to power management technologies or hyperthreading.

If hyper threading is enabled these figures can be different, likewise if the frequency of the PCPU is changed due to power management these figures can also be adjusted.

As an example if PCPU USED(%) is 100 and PCPU UTIL(%) is 50 this is because hyper threading is splitting the load across the two PCPUs. If you then look in the vSphere client you may notice that CPU usage is 100%. This is because the vSphere client will double the statistics if hyperthreading is enabled.

In a dual core system, each PCPU is charged by the CPU scheduler half of the elapsed time when both PCPUs are busy.
Los Angeles1

ASKER
k, I think I understand what you are saying, but how do I determine the CPU utilization used by the actual hypervisor, or is that a concept that is used by VMWare
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

your question states CPU utilization of the host? the host runs the hypervisor, the Host OS.
Los Angeles1

ASKER
In the example you showed, you discuss the CPU load average (util of all CPU),  PCPUUSED and PCUUTIL.

Still do not understand which of these numbers  are showing the utilization of the hypervisor

In the example you displayed above, what is the utilization of the CPU's used by the hypervisor ?  (ie, what number)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

CPU

load average of 1.00 means 100% of ALL CPUs in the host.

0.5 is 50%

2.00 is x2 as many physical CPUs as available.

load average is 0.1 so 10%
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Los Angeles1

ASKER
1> So if I understand you correctly, the hypervisor util is ten percent ?

2> Can I assume from the example above that the hypervisor is running on 3 virtual CPUs

Thanks
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

1. correct

2. 2 VMs are using 3 vCPUs
Los Angeles1

ASKER
So in the example below


11:10:57pm up 6 days  4:15, 323 worlds, 1 VMs, 8 vCPUs; CPU load average: 0.35, 0.07, 0.03

Open in new window


1> What is the hyperthreading CPU

2> what is the .35 number

3>  What is the .07 number

4>  What is the .03 number ?

Thanks
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

I believe your original question has been answered. If this answer has been helpful please assign points. If you have any further questions about esxtop, please post another question and myself or other Experts will be happy to assit.