The cpu metric group tracks CPU utilization for hosts, virtual machines, resource pools, and compute resources.

CPU Data Counters lists the CPU data counters.

Note

The performance charts display a subset of the CPU data counters. The entire set is collected and available in vCenter Server. You can use the vSphere Web Services SDK to query vCenter Server and get statistics for those counters. For more information, see the VMware vSphere API Reference.

CPU Data Counters

Counter

Label

Description

V

H

R

C

cpuentitlement

Worst Case Allocation

(virtual machine Resource Allocation tab)

Amount of CPU resources allocated to the virtual machine or resource pool based on the total cluster capacity and the resource configuration (reservations, shares, and limits) on the resource hierarchy.

cpuentitlement is computed based on an ideal scenario in which all virtual machines are completely busy and the load is perfectly balanced across all hosts.

This counter is for internal use only and is not useful for performance monitoring.

Stats Type: absolute

Unit: megaHertz

Rollup Type: latest

Collection Level: 1

VC/ESX: No/Yes

ο

ο

guaranteed

CPU Guaranteed

Not supported for ESX 4.x systems, except through vCenter Server. CPU time that is reserved for the entity. For virtual machines, this measures CPU time that is reserved, per virtual CPU (vCPU).

This counter has been deprecated and should not be used to monitor performance.

Stats Type: delta

Unit: millisecond

Rollup Type: latest

Collection Level: 3

VC/ESX: Yes/No

ο

ο

ο

idle

CPU Idle

Total time that the CPU spent in an idle state (meaning that a virtual machine is not runnable). This counter represents the variance, in milliseconds, during the interval.

Stats Type: delta

Unit: millisecond

Rollup Type: summation

Collection Level: 2

VC/ESX: Yes/Yes

ο

ο

ο

ready

CPU Ready

Percentage of time that the virtual machine was ready, but could not get scheduled to run on the physical CPU. CPU ready time is dependent on the number of virtual machines on the host and their CPU loads.

Stats Type: rate

Unit: percentage

Rollup Type: summation

Collection Level: 1

VC/ESX: Yes/Yes

ο

ο

ο

reservedCapacity

CPU Reserved Capacity

Total CPU capacity reserved by the virtual machines.

Stats Type: absolute

Unit: megaHertz

Rollup Type: average

Collection Level: 2

VC/ESX: Yes/Yes

ο

ο

system

CPU System

Amount of time spent on system processes on each virtual CPU in the virtual machine. This is the host view of the CPU usage, not the guest operating system view.

Stats Type: delta

Unit: millisecond

Rollup Type: summation

Collection Level: 3

VC/ESX: Yes/Yes

ο

ο

ο

totalmhz

CPU Total

Total amount of CPU resources of all hosts in the cluster. The maximum value is equal to the frequency of the processors multiplied by the number of cores.

totalmhz = CPU frequency × number of cores

For example, a cluster has two hosts, each of which has four CPUs that are 3GHz each, and one virtual machine that has two virtual CPUs.

VM totalmhz = 2 vCPUs × 3000MHz = 6000MHz

Host totalmhz = 4 CPUs × 3000MHz = 12000MHz

Cluster totalmhz = 2 x 4 × 3000MHz = 24000MHz

Stats Type: rate

Unit: megaHertz

Rollup Type: average

Collection Level: 1

VC/ESX: Yes/Yes

ο

ο

ο

usage

CPU Usage

CPU usage as a percentage during the interval.

VM

Amount of actively used virtual CPU, as a percentage of total available CPU. This is the host's view of the CPU usage, not the guest operating system view. It is the average CPU utilization over all available virtual CPUs in the virtual machine. For example, if a virtual machine with one virtual CPU is running on a host that has four physical CPUs and the CPU usage is 100%, the virtual machine is using one physical CPU completely.

virtual CPU usage = usagemhz ÷ (# of virtual CPUs × core frequency)

Host

Actively used CPU of the host, as a percentage of the total available CPU. Active CPU is approximately equal to the ratio of the used CPU to the available CPU.

available CPU = # of physical CPUs × clock rate

100% represents all CPUs on the host. For example, if a four-CPU host is running a virtual machine with two CPUs, and the usage is 50%, the host is using two CPUs completely.

Cluster

Sum of actively used CPU of all virtual machines in the cluster, as a percentage of the total available CPU.

CPU Usage = CPU usagemhz ÷ effectivecpu

Stats Type: rate

Unit: percent

Rollup Type: average (min/max)

Collection Level: 1(4)

VC/ESX: Yes/Yes

usagemhz

CPU Usage in MHz

The amount of CPU used, in megahertz, during the interval.

VM

Amount of actively used virtual CPU. This is the host's view of the CPU usage, not the guest operating system view.

Host

Sum of the actively used CPU of all powered on virtual machines on a host. The maximum possible value is the frequency of the processors multiplied by the number of processors. For example, if you have a host with four 2GHz CPUs running a virtual machine that is using 4000MHz, the host is using two CPUs completely.

4000 ÷ (4 × 2000) = 0.50

Stats Type: rate

Unit: megaHertz

Rollup Type: average(min/max)

Collection Level: 1(4)

VC/ESX: Yes/Yes

used

CPU Used

Amount of used CPU time.

Stats Type: delta

Unit: millisecond

Rollup Type: summation

Collection Level: 3

VC/ESX: Yes/Yes

ο

ο

ο

wait

CPU Wait

Amount of CPU time spent in wait state.

Stats Type: delta

Unit: millisecond

Rollup Type: summation

Collection Level: 3

VC/ESX: Yes/Yes

ο

ο

ο