1

I have a RHEL6 server running on a vmware-esxi host but no access to the host or vCenter.

I need to determine if the hosting provider is using power saving features one such way is to check if CPU Clockspeed varies.

How best to check this other than watching lscpu or cpuinfo?

Would this be logged in the messages file or elsewhere if it changed suddenly, if so how would the error appear so I could easily grep for it.

Thanks

Koffee
  • 29

1 Answers1

0

Even in a non-virtualized environment lscpu and /proc/cpuinfo may return incorrect values.

But in a virtualized environment the VM host is able to present to you arbitrary values via these interfaces.

Usually, you can use some CPU counters to derive the real CPU frequency.

But I bet the VM host can also manipulate such counters.

If you trust the VM host and know that the information available via /proc/cpuinfo is plausible then you can use a standard metric collection agent such as telegraf or collectd in your VM guest and configure it to periodically read the value from that file (or execute a helper script that provides this value in a standard format).

maxschlepzig
  • 57,532