Esxtop Guide
Esxtop Guide
The esxtop utility provides a detailed look at how ESXi uses resources in real time. It is probably the
most useful utility to troubleshoot performance issues on an ESXi host. The tool is available either on the
ESXi host itself (#esxtop), or from remote systems like the vMA (#resxtop).
In vSphere 6.5, esxtop has 9 panes that can be enable with the following shotcuts:
• c: CPU
• m: Memory
• u: Disk Device
• d: Disk Adapter
• n: Network
• i: Interrupt
• p: Power Management
• x: vSAN
CPU Panel
C LWID Leader World The Leader World ID, also known as VMX Cartel ID for
ID Virtual Machines. The LWID typcally the first world that
has been started in a group.
F %USED Used Percentage of physical CPU core cycles used by the world
or group. %USED depends on the frequency the CPU core
is running with and can be higher or lower compared to
%RUN when the nominal (rated) frequency differs.
Groups can also be higher than 100% when more vCPUs
are configured or there is a high %SYS usage.
%USED = %RUN + %SYS - %OVRLP
F %RUN Run Percentage of total scheduled time for the world to run.
%RUN does not account hyperthreading and system time.
On a hyperthreading enabled server, %RUN can be twice
as large as %USED.
The main difference between %RUN and %USED is that
%RUN does not account system time.
F %RDY Ready The percentage of time the world was ready to run but
waiting in a queue to be scheduled. This may happen
even when there is plenty of free CPU cycles when a VM
CPU is administratively limited which is shown by
%MLMTD.
To determine CPU contention from %RDY you have to
take into account %RDY, %MLMTD and the number of
vCPUS. If %RDY - %MLMTD is higher than 10% per vCPU
you are very likely experiencing CPU contention. Typically
you want to see %RDY close to 0.
100% = %RUN + %RDY + %CSTP + %WAIT
F %IDLE Idle The percentage of time the vCPU world is in an idle loop.
%IDLE is only available for vCPU worlds. Other worlds do
not have idle loops, so %IDLE is 0.
F %CSTP CoStop The percentage of time that the VM is ready to run but is
waiting for the availability of other vCPUs. The co-
deschedule state applies only for SMP VMs. The CPU
scheduler might put a vCPU in this state, when the VM
workload does not use vCPUs in a balanced fashion. For
example, if you have a VM with 2 vCPUs running a non
SMP aware application, utilizing 1 vCPU at 100% and 1
vCPU at 0%. In that case, the CPU scheduler penalties the
VM to reduce resource shortage for other VMs. This is is
represented as %CSTP.
F %MLMTD Max Limited The percentage of time a world was ready to run but
deliberately wasn't scheduled because doing so would
violate the resource pool or virtual machine CPU limit.
The %MLMTD time is included in %RDY time. If the value
is not 0, the VM has been administratively limited.
F %SWPWT Swap Wait The percentage of time a world spends waiting for the
VMkernel to swap memory. The %SWPWT time is
included in the %WAIT time. If %SWPWT is greater than
0, VMkernel is swapping the VMs memory to the disk.
This will have a large negative impact in overall
performance. Swapping can be caused by high memory
oversubscription or memory limits configured on a
resource pool or VM.
H AMAX Alloc Max Resource pool, virtual machine, or world attribute limit. A
value of -1 means unlimited.
H ASHRS Alloc Shares Resource pool, virtual machine, or world attribute Shares.
Default shares are -4 (High), -3 (Normal) and -2 (Low).
When a custom share is configured, the value is
displayed.
I %LAT_C Latency CPU The percentage of time the Resource Pool/World was
ready to run but was not scheduled to run because of cpu
resource contention.
I AFFINITY_BIT_MASK Affinity Bit Bit mask showing the current scheduling affinity for the
Mask world.
I CPU CPU The physical or logical processor on which the world was
running when resxtop (or esxtop) obtained this
information.
J POWER Power Usage Current CPU power consumption for a virtual machine (in
Watts Watts). Usage calculation is based on the value provided
by the power supply.
Memory Panel
C LWID Leader World ID The Leader World ID, also known as VMX Cartel ID for Virtual
Machines. The LWID typcally the first world that has been
started in a group.
D NAME Name The name of a World's group. The number appended to the
name is the LWID. Virtual Machines do not have a number
appended.
E NWLD Number of The number of worlds running in the Group. NWLD is 1 when
Worlds the Group as a single process.
F AMIN Alloc Min Resource pool, virtual machine, or world attribute reservation.
A value of 0 means no reservation.
F AMAX Alloc Max Resource pool, virtual machine, or world attribute limit. A
value of -1 means unlimited.
F ASHRS Alloc Shares Resource pool, virtual machine, or world attribute Shares.
Default shares are -4 (High), -3 (Normal) and -2 (Low). When a
custom share is configured, the value is displayed.
G NHN Numa Home Current home node for the resource pool or virtual machine.
Nodes This statistic is applicable only on NUMA systems. If the virtual
machine has no home node, a dash (-) appears. A virtual
machine runs only on processors within its home node, and its
newly allocated memory comes from the home node as well. A
virtual machine can have multiple home nodes when the
Key Metric Name Description
G NRMEM Numa Remote Amount of remote memory allocated to the virtual machine.
Memory MBytes
G NLMEM Numa Local Amount of local memory allocated to the virtual machine.
Memory MBytes
G N%L Numa % Local Percentage of local memory allocated to the virtual machine.
This value should be close to 100%. A reason for poor NUMA
locality can be that a virtual machine has more memory
configured than it is available for each processor. Accessing
remote memory causes increased latency.
H GRANT Memory Granted Amount of physical memory mapped to the virtual machine. If
Size MBytes GRANT is lower than MEMSZ, either the guest has never used
all of its configured memory or if it has been reclaimed by the
balloon driver.
H CNSM Memory Amount of the memory consumed by the virtual machine. The
Consumed Size memory currently consumed by the virtual machine is equal to
MBytes the amount of memory that the VM guest operating system
currently uses, excluding the amount of memory saved by
transparent page sharing and memory compression.
Key Metric Name Description
H TCHD Touched MBytes The amount of physical memory recently used (read or write)
by the virtual machine. Touched memory is a working set
estimate, which indicates how actively the VM is using its
memory. This value is similar to the active memory reported by
the guest OS.
H TCHD_W Touched Write The amount of physical memory recently written by the virtual
MBytes machine.
I %ACTV Active Estimate Percentage of active guest physical memory, current value.
I %ACTVS Active Slow Percentage of active guest physical memory, slow moving
Estimate average.
I %ACTVF Active Fast Percentage of active guest physical memory, fast moving
Estimate average.
I %ACTVN Active Next Percentage of active guest physical memory, predict of what
Estimate %ACTVF will be at next sample.
J MCTL? Memctl? Memory balloon driver is installed or not. N means no, Y means
yes. The ballooning driver is part of VMware Tools.
J MCTLSZ Memctl MBytes Amount of physical memory reclaimed from the virtual
machine by ballooning. To decrease host memory pressure, the
ballon driver inflates inside the virtual machine and makes the
physical memory available for other virtual machines. The
performance impact caused by ballooning is small and
therefore preferred over swapping. Another reason for
ballooning can be a configured memory limit (AMAX).
Key Metric Name Description
J MCTLTGT Memctl Target Amount of physical memory the ESXi system attempts to
MBytes reclaim from the virtual machine by way of ballooning.
J MCTLMAX Memctl Max The maximum amount of guest physical memory reclaimable
MBytes by the balloon driver.
K SWTGT Swap Target Target where the ESXi host expects the swap usage by the
MBytes virtual machine to be.
K SWR/s Swap Read Rate at which the ESXi host swaps in memory from disk for the
MBytes/sec virtual machine.
K SWW/s Swap Written Rate at which the ESXi host swaps virtual machine memory to
MBytes/sec disk.
L LLSWR/s Llswap Read The rate at which memory is read from the host cache. When
MBytes/sec host caching is enabled, the ESXi host is able to swap to a local
SSD, instead of the virtual machines datastore, which
significantly reduces the impact caused by swapping.
L LLSWW/s Llswap Written Rate at which memory is written to the host cache. When host
MBytes/sec caching is enabled, the ESXi host is able to swap to a local SSD,
instead of the virtual machines datastore, which significantly
reduces the impact caused by swapping.
M CPTRD Checkpoint Read The amount of data read from the checkpoint file. Data from a
MBytes checkpoint file is read when a virtual machine is resumed from
a suspended state.
Key Metric Name Description
M CPTTGT Checkpoint Target The size of checkpoint file. The checkpoint file is used when a
MBytes virtual machine is suspended.
N ZERO Zero MBytes The size of virtual machine physical pages that are zeroed. A
zero page is simply a memory page that is all zeros which can
be easily used for page sharing.
N SHRDSVD Shared Saved Amount of physical memory that is saved due to page sharing.
MBytes
N COWH Copy On Write Amount of guest physical hint pages for page sharing.
Hint MBytes
O OVHDUW Overhead UW Amount of overhead memory reserved for the vmx user world.
MBytes
O OVHDMAX Overhead Max Amount of reserved overhead memory for the entire VM.
MBytes
A ID ID The virtual SCSI Disk ID. The ID is typically cloaked and the
group ID is displayed, unless the group is expanded with the
"e" command. It is the same ID as used by vscsiStats.
D VDEVNAME Virtual Device Name of the VSCSI device. Only displayed when the group is
Name expanded with the "e" command.
Disks
Partition Statistics.
H RESV/s Reserves/sec
H CONS/s Conflicts/sec
J DAVG/rd Average Driver Average device driver read latency per read
MilliSec/Read operation in milliseconds.
O ZERO Zeros
O DELETE Delete
A ADAPTR Adapter
B PATH Path
E CMDS/s Commands/sec
E READS/s Reads/sec
E WRITES/s Writes/sec
Key Metric Name Description
F RESV/s Reserves/sec
F CONS/s Conflicts/sec
J ABRTS/s Aborts/sec
J RESETS/s Resets/sec
Network Panel
A PORT-ID Port ID The port ID used on the virtual switch. This ID is used for
example for network traces with pktcap-uw.
Key Metric Name Description
B UPLINK Uplink? This virtual switch port is a physical uplink port. N means
no, Y means yes.
C SPEED Link Speed (Mb/s) Link speed in Megabits per second. Only visible for uplink
ports.
C FDUPLX Full Duplex? Y means the corresponding link is operating at full duplex.
N means it is not. Only visible for uplink ports.
E TEAM-PNIC Team Uplink Physical The physical NIC that the corresponding device is actively
NIC Name using. This information is helpful for network
troubleshooting.
F DNAME Device Name Virtual Switch name. Either the display name for virtual
switches or DvsPortset-# for distributed switches.
O ACTN/s Actions Posted/sec Number of Vmkernel actions posted per second. This is an
VMware internal counter with no further documentation.