VMware Cloud Community
hakhak
Contributor
Contributor
Jump to solution

Need help for GHz and MHz (average convert)

Hi, I would like to perform and display the output of following counter and it will be 2 minutes interval for last 1 hour ( for : VMs /Guests) :

i) Average CPU load = by using cpu.usagemhz.average   < -- How can I convert it to GHz since the output showing is in MHz?

ii) Average Memory Usage (in MHz) <-- any idea on this as well, how can I get in MHz?

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

i) To convert from MHz to GHz you divide by 1000.

$valueGHz = $valueMHz / 1000

ii) I'm not sure that memory can be measured in Hz.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

i) To convert from MHz to GHz you divide by 1000.

$valueGHz = $valueMHz / 1000

ii) I'm not sure that memory can be measured in Hz.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
hakhak
Contributor
Contributor
Jump to solution

Thanks LucD, the convertion is working perfectly.

By the way, is that any way I can get memory in Hz format as I mentioned at the above?

Reply
0 Kudos
AureusStone
Expert
Expert
Jump to solution

He did answer your question.

Do you want memory converted from MB to GB ($value / 1024) or GB to MB ($value * 1024)?

Unless you actually want the memory speed.  In which case you can get that info from the BIOS, vendor supplied configuration tool or by going to hardware status in vCenter, then memory, then expanding a DIMM.  But I doubt this is what you actually want.

Reply
0 Kudos