NickAC
Contributor
Contributor

Understanding % RDY / %CSTP scale

Jump to solution

Hi

I am now starting look at our VM estate rather than just let it run and hope for the best!!

I was looking at the metrics from ESXTOP and see some of the suggested values like 10 for %RDY, I had a quick question on the scale that ESXTOP is displaying the numbers in.

I am currently looking on one of our hosts at the VM's and see that the %RDY stats range from 0.13 up to 0.62

I wasn't sure If  0.13 is  below 1% or if that is actually 13% what's the scale?, as from my reading based on a single vCPU one is good the other bad.

I was expecting the below but now i'm not so sure.

1.00 = 1%

13.00 = 13%

Thanks

Tags (3)
1 Solution

Accepted Solutions
jrmunday
Commander
Commander

Yes, 0.13 is below 1% so the scale that you have identified is correct.

vExpert 2014 - 2022 | VCP6-DCV | http://www.jonmunday.net | @JonMunday77

View solution in original post

0 Kudos
2 Replies
jrmunday
Commander
Commander

Yes, 0.13 is below 1% so the scale that you have identified is correct.

vExpert 2014 - 2022 | VCP6-DCV | http://www.jonmunday.net | @JonMunday77
0 Kudos
admin
Immortal
Immortal

Four virtual machine CPU performance metrics can be used together to gain insight into the responsiveness of a virtual machine or its Guest OS:

  • Run - Amount of time the virtual machine is consuming CPU resources.
  • Wait - Amount of time the virtual machine is waiting for a VMkernel resource.
  • Ready - Amount of time the virtual machine was ready to run, waiting in a queue to be scheduled.
  • Co-Stop - Amount of time a SMP virtual machine was ready to run, but incurred delay due to co-vCPU scheduling contention.

These performance metrics can be reviewed using the Performance tab in the vSphere Client or using the esxtop or resxtop command-line utilities. Chose the most appropriate method for your environment.

Reviewing performance metrics using the vSphere Client

For more information on using custom performance charts, see the Customizing Chart Views section of the Resource Management Guide or the View Advanced Performance Charts section of the vSphere Monitoring and Performance Guide.

  1. Connect to vCenter Server or an ESX/ESXi host using the vSphere Client.
  2. Select the target virtual machine in the inventory.
  3. Click the Performance tab.
  4. Click Chart Options to customize the performance chart.
  5. Under the CPU heading, select Real-time.
  6. Under the Chart Type heading, select Line Graph.
  7. Under the Objects list, select the virtual machine by name.
  8. Under the Counters list, select Co-stop, Run, Ready, and Wait.
  9. Optionally, save the chart settings to make re-use easier.
  10. Click OK.
  11. Make note of the four metrics displayed. Each is measured in milliseconds.

Reviewing performance metrics using esxtop or resxtop

For more information on using esxtop or resxtop, see the Performance Monitoring Utilities: resxtop and esxtop section of the vSphere Monitoring and Performance Guide or Resource Management Guide.

  1. Identify the host on which the unresponsive virtual machine is running:

    1. Open the VMware vSphere Client and connect to your VMware vCenter Server or VirtualCenter server.
    2. Select the virtual machine that is not responding.
    3. Click the Summary tab, and identify the Host: value, indicating the host that has the running virtual machine registered to it.
  2. Open a console session to the ESX/ESXi host where the virtual machine is running, or to the vMA, or to another location where the VMware Command-Line Interface (vCLI) is installed:

  3. Start the esxtop or resxtop command:

    • esxtop
    • resxtop --server HostNameOrIPAddress [--username root]
  4. Press c on your keyboard to display the CPU panel.
  5. Press V (uppercase) on your keyboard to display only virtual machines.
  6. Identify the virtual machine by its Name or World ID.
  7. Press f on your keyboard to change the visible fields. Ensure the CPU State Times are visible:

    ID   GID NAME   NWLD %USED %RUN %SYS  %WAIT %RDY  %IDLE  %OVRLP %CSTP %MLMTD %SWPWT
    186  186 VMName    4  2.11 2.08 0.00 397.64  0.25  197.71   0.20  0.00   0.00   0.00


    Note: The esxtop fields in ESXi 5.0 include an additional field called  %VMWAIT in the CPU view. %VMWAIT represents the total percentage of time the World spent in a blocked state waiting for events.

  8. Make note of the four metrics displayed. Each is measured as a percentage of time: %RUN, %WAIT, %RDY, %CSTP.

Interpreting CPU performance metrics

Run, %RUN:

  • This value represents the percentage of absolute time the virtual machine was running on the system.

  • If the virtual machine is unresponsive, %RUN may indicate that the guest operating system is busy conducting an operation.
  • When %RUN is near zero and the virtual machine is unresponsive, it could mean that the virtual machine is idle, blocked on an operation, or is not scheduled due to resource contention. Look at other values (%WAIT, %RDY, and %CSTP) to identify resource contention.
  • When %RUN is near the value of the number of vCPUS x 100%, it means that all vCPUs in the virtual machine are busy. This is an indicator that the guest operating system may be stuck in a operational loop. To investigate this issue further, you may need to engage the appropriate operating system vendor for assistance in identifying why the guest operating system is using all of the CPU resources.
  • If you have engaged the guest operating system vendor, and they have determined that the issue is caused by the VMware tools or the virtual machine hardware, it may be pertinent to suspend the virtual machine to collect additional diagnostic information.

Wait, %WAIT:

  • This value represents the percentage of time the virtual machine was waiting for some VMkernel activity to complete (such as I/O) before it can continue.
  • If the virtual machine is unresponsive and the %WAIT value is proportionally higher than %RUN, %RDY, and %CSTP, then it could indicate that the world is waiting for a VMkernel operation to complete.
  • You may observe that the %SYS is proportionally higher than %RUN. %SYS represents the percentage of time spent by system services on behalf of the virtual machine.
  • A high %WAIT value can be a result of a poorly performing storage device where the virtual machine is residing. If you are experiencing storage latency and timeouts, it may trigger these types of symptoms across multiple virtual machines residing in the same LUN, volume, or array depending on the scale of the storage performance issue.
  • A high %WAIT value can also be triggered by latency to any device in the virtual machine configuration. This can include but is not limited to serial pass-through devices, parallel pass-through parallel , and USB devices. If the device suddenly stops functioning or responding, it could result in these symptoms. A common cause for a high %WAIT value is ISO files that have been left mounted in the virtual machine accidentally that have been deleted or moved to an alternate location. For more information, see Deleting a datastore from the Datastore inventory results in the error: device or resource busy (101....
  • If there does not appear to be any backing storage or networking infrastructure issue, it may be pertinent to crash the virtual machine to collect additional diagnostic information.

Ready, %RDY:

  • This value represents the percentage of time that the virtual machine is ready to execute commands, but has not yet been scheduled for CPU time due to contention with other virtual machines.
  • Compare against the Max-Limited, %MLMTD value. This represents the amount of time that the virtual machine was ready to execute, but has not been scheduled for CPU time because the VMkernel deliberately constrained it. For more information, see the Managing Resource Pools section of the vSphere Monitoring and Performance Guide or Resource Management Guide.
  • If the virtual machine is unresponsive or very slow and %MLMTD is low it may indicate that the ESX host has limited CPU time to schedule for this virtual machine.

Co-stop, %CSTP:

  • This value represents the percentage of time that the virtual machine is ready to execute commands but that it is waiting for the availability of multiple CPUs as the virtual machine is configured to use multiple vCPUs.
  • If the virtual machine is unresponsive and %CTSP is proportionally high compared to %RUN, it may indicate that the ESX host has limited CPU resources simultaneously co-schedule all vCPUs in this virtual machine.
  • Review the usage of virtual machines running with multiple vCPUs on this host. For example, a virtual machine with four vCPUs may need to schedule 4 pCPUs to do an operation. If there are multiple virtual machines configured in this way, it may lead to CPU contention and resource starvation.