Pcornel
Virtualization · Monitoring

CPU Usage

Cheat sheet · https://pcornel.dk/topic.php?topic=3665

Back to the Topic

Answer

Monitor VM CPU with both guest usage and host-side metrics: usage in MHz or percent, ready/steal time and co-stop. High usage needs more CPU; high ready means the host is contended.

Remember

  • Usage % alone hides contention; read ready time alongside it.
  • Ready time shows how long vCPUs waited for a physical core.
  • Compare the guest's view with the host's view.

First checks

  • pvesh get /nodes/<node>/qemu/<vmid>/status/current — VM CPU
  • Get-Counter '\Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time' — host CPU
  • esxtop — CPU and %RDY

Verify in this order

vCPU demand → host CPU

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3665

Confirmation

Confirm action

Continue?