High CPU
Cheat sheet · https://pcornel.dk/topic.php?topic=3817
Answer
Correlate guest CPU demand with vCPU allocation and hypervisor scheduling: guest process demand → vCPU runnable time → scheduler wait/run → physical CPU/NUMA → workload throughput.
Remember
- Guest CPU 100% can mean productive saturation inside the guest and does not by itself prove host CPU shortage.
- Host CPU high ≠ one VM is the cause; aggregate demand, emulator threads, interrupts and other workloads may contribute.
- More vCPUs ≠ more performance; oversized VMs can increase scheduling and NUMA cost.
- CPU usage ≠ CPU ready/scheduling delay; both demand and wait must be examined.
First checks
top— guest process using CPUvirt-top— VM CPU on hostesxtop— %USED vs %RDY
Commands
virsh
Verify in this order
guest process → vCPU → 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.
Virtualization Troubleshooting → High CPU troubleshooting map
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Symptom/scope | Exact failing test, affected VM/host/cluster and incident time are defined | Symptom classification does not identify root cause |
| Observed boundary | Configuration, runtime and counters/logs for this Virtualization Troubleshooting → High CPU boundary are time-correlated | One healthy or failed status does not prove adjacent dependencies |
| Adjacent dependency | The next host, storage, network, device, guest or cluster dependency is tested independently | Local success does not prove end-to-end health |
| Verification | The original workload test succeeds after one controlled change and remains healthy in regression checks | Temporary recovery alone is not durable proof |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3817