Use it when the symptom is “High CPU”: work through the layers in order and stop at the first one that fails.
High CPU
Correlate guest CPU demand with vCPU allocation and hypervisor scheduling: guest process demand → vCPU runnable time → scheduler wait/run → physical CPU/NUMA → workload throughput.
1. High CPU: real demand inside guest vs host contention.
2. Guest: find the process.
3. Host: check overcommit and noisy neighbours.
4. Check CPU limits.
5. Right-size or move.
guest process → vCPU → host CPU
Context & applicabilityCommon mistakes · platform/version boundaries
High CPU shows execution demand or measured busy time at the observed layer, but it does not show the limiting resource or justify adding vCPUs.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Guest process demand → vCPU runnable state → hypervisor scheduler → pCPU/NUMA → execution time → workload result
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
top— guest process using CPUvirt-top— VM CPU on hostesxtop— %USED vs %RDY
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
High CPU shows execution demand or measured busy time at the observed layer, but it does not show the limiting resource or justify adding vCPUs.
and state what the evidence does not show.
In depth
Is the CPU burned inside the guest or around it?
| Observation on the host | Meaning |
|---|---|
qemu process CPU ≈ guest's own CPU usage | Guest workload — investigate inside the guest |
qemu CPU much higher than guest CPU | Emulation overhead: emulated devices (e1000, IDE), timer storms, high interrupt rate |
vhost-* kernel threads busy | Network I/O processing for VirtIO NICs |
iothread / kvm-pit / kworker busy | Disk I/O or timer handling |
top -H -p $(pgrep -f 'qemu.*-id 101') # per-thread: CPU 0/KVM, CPU 1/KVM … are vCPUs
# virsh domstats web01 --vcpu --cpu-total
Domain: 'web01'
cpu.time=8231460000000
vcpu.current=4
vcpu.0.time=2051000000000
vcpu.0.wait=1830000000
The virsh manual documents domstats with vCPU groups; sampling vcpu.N.time twice and dividing by the interval gives per-vCPU utilisation. vcpu.N.wait is time the vCPU waited for a host CPU — high values point to contention, not guest load.
Inside the guest
| Tool | Look for |
|---|---|
top / htop | Which process; st (steal) column |
perf top | Kernel vs user functions |
Windows Task Manager / Get-Counter | Process; % Interrupt Time |
A guest at 100 % with high steal is starved by the host; at 100 % with low steal it is genuinely busy.
Common virtual-specific causes
- Emulated NIC or disk controller instead of VirtIO → switch models, install drivers.
- Windows guests without Hyper-V enlightenments (
hv_*flags; Proxmox sets them forostype win*) → high CPU from timers. - Guest without guest agent spinning on unanswered requests is rare; more often anti-virus scans or update services inside the guest.
- vCPU count too high for the workload: more vCPUs can raise overhead without adding throughput.
*The KVM thread and libvirt CPU statistics above are illustrative examples, not captured from a lab or production host.*
Method
High CPU in a VM:
1. Inside the guest: which process? (top -H, Process Explorer, perf top).
2. Is it real work or spinning (antivirus scan, runaway service, crypto-miner)?
3. Compare guest CPU with host view: high guest CPU plus high ready/steal means the VM gets too little CPU, not that it needs more vCPUs.
4. Check for CPU limits and outdated tools (time-drift loops, interrupt storms with emulated devices).
esxtop (c → V): %USED, %RDY, %CSTP, %MLMTD (limit)
virsh domstats vm1 --cpu-total
%MLMTD > 0 on ESXi means a CPU limit is throttling the VM.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization Troubleshooting → High CPU. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Virtualization Troubleshooting → High CPU troubleshooting map
Fast fault-isolation boundaries and proof limits for Virtualization Troubleshooting → High CPU.
| 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 |