Translate

Total Pageviews

My YouTube Channel

Wednesday, 7 October 2015

Converting between CPU summation and CPU % ready values (2002181)

Purpose

Some documents, such as VMware's whitepaper Performance Troubleshooting for vSphere 4.1 refer to the CPU ready value as a summation value. Other documents, such as the vSphere Datacenter Administration Guide, refer to the CPU ready value as a percentage value. Therefore, you may need to convert between CPU ready summation and CPU ready percentage values to troubleshoot some performance issues.


Resolution

To convert between the CPU ready summation value in vCenter's performance charts and the CPU ready % value that you see in esxtop, you must use a formula.
The formula requires you to know the default update intervals for the performance charts. These are the default update intervals for each chart:
  • Realtime: 20 seconds
  • Past Day: 5 minutes (300 seconds)
  • Past Week: 30 minutes (1800 seconds)
  • Past Month: 2 hours (7200 seconds)
  • Past Year: 1 day (86400 seconds)

CPU ready %

To calculate the CPU ready % from the CPU ready summation value, use this formula:
(CPU summation value / (<chart default update interval in seconds> * 1000)) * 100 = CPU ready %
Example: The Realtime stats for a virtual machine in vCenter might have an average CPU ready summation value of 1000. Use the appropriate values with the formula to get the CPU ready %.
(1000 / (20s * 1000)) * 100 = 5% CPU ready

CPU ready summation value

To convert the CPU ready % into a CPU ready summation value, reverse the calculation and use this formula:
(CPU ready % / 100) * <chart default update interval> * 1000 = CPU summation value
Example: If a virtual machine has a CPU ready % of 5m, its CPU ready summation value on the Realtime performance chart is calculated like this:
(5 / 100) * 20s * 1000 = 1000 CPU ready

Additional Information

CPU ready %

As a shortcut, you can use the following formulas for the default chart update intervals to get the CPU ready %:
  • Realtime: CPU summation value / 200
  • Past Day: CPU summation value / 3000
  • Past Week: CPU summation value / 18000
  • Past Month: CPU summation value / 72000
  • Past Year: CPU summation value / 864000
Example: A realtime CPU summation value of 1000 is divided by 200 to give a CPU ready % of 5.

CPU ready summation value

As with the longer version of the formula, reverse the formula and multiply (rather tha dividing) to calculate the CPU ready summation value:
  • Realtime: CPU ready % * 200
  • Past Day: CPU ready % * 3000
  • Past Week: CPU ready % * 18000
  • Past Month: CPU ready % * 72000
  • Past Year: CPU ready % * 864000
Example: If you have a CPU ready % 5, multiply it by 200 to get a Realtime CPU ready summation value of 1000.
Calculator Link:-





Source:-
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2002181&src=vmw_so_vex_ragga_1012 

No comments:

Post a Comment