Use this as the start point when a VM has CPU performance problems and you need to tell guest issues from host contention.
CPU Troubleshooting
Troubleshoot VM CPU problems by comparing guest CPU usage with host-side ready/steal time, co-stop and host load: high ready means contention, high guest usage with low ready means the VM itself needs more or faster CPU.
1. High guest CPU: is it real demand or steal/ready?
2. Check host load and overcommit.
3. Check CPU limits/quotas.
4. Check power management (C-states, frequency).
5. Right-size or move VMs.
guest CPU → host scheduler → physical CPU
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
virsh vcpucount <vm>Primary Commands
Configuration and operational commands for this Topic.
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 Troubleshooting order Narrow the fault
1. Guest: is a process using CPU (top, Task Manager) or is the guest waiting (steal/ready)?
2. Host: ready/steal and co-stop for this VM; host total utilisation.
3. Configuration: CPU limits, too many vCPUs, affinity, power management (set BIOS/host to high performance for latency-sensitive hosts).
4. Placement: move the VM or rebalance (DRS).
High guest usage with low ready → the VM needs more CPU or the application needs tuning. High ready with low guest usage → the host is contended.
Step 2 Common mistakes Narrow the fault
- Reading host CPU % without CPU ready/steal.
- High guest CPU + low ready = VM needs more CPU.
- Low guest CPU + high ready = host contended.
- Check limits before blaming hardware.
vmstat 1— steal (st) and run queuevirsh domstats <vm> --vcpu— vCPU timeesxtop— %RDY %CSTP %MLMTD
ReferenceImportant terms & boundaries1 section · depth on demand
Method
| Symptom | Check |
|---|---|
| VM slow, host CPU not full | CPU ready/co-stop, CPU limit set, NUMA spanning |
| Guest shows 100 % CPU | Real load or steal time (st in top) |
| Host CPU 100 % | Overcommit, runaway VM, host processes (backup, scrub) |
| Migration blocked | CPU model/EVC mismatch |
| Guest won't boot after CPU change | Missing required flags (x86-64-v2/v3) |
esxtop (c, then V for VMs only)
top -H -p $(pgrep -f 'qemu.*-id 120')
virsh domstats vm1 --vcpu
ReferenceConfiguration & state1 section · depth on demand
Useful commands
esxtop # c: %RDY, %CSTP, %MLMTD per VM
virsh vcpuinfo vm01 ; virsh domstats vm01 --vcpu
top -d 1 (in guest: %st)
Get-Counter '\Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time'
%CSTP (co-stop) high means too many vCPUs for the VM; %MLMTD means a CPU limit is throttling it.
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 CPU Virtualization → CPU Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%