Pcornel
Virtualization · CPU Virtualization

CPU Troubleshooting

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

Back to the Topic

Answer

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.

Remember

  • High guest CPU + low ready = VM needs more CPU.
  • Low guest CPU + high ready = host contended.
  • Check limits before blaming hardware.

First checks

  • vmstat 1 — steal (st) and run queue
  • virsh domstats <vm> --vcpu — vCPU time
  • esxtop — %RDY %CSTP %MLMTD

Commands

virsh vcpucount <vm>
Operational command for Inspect KVM guest vCPU topology. Focus fields: maximum/current vCPU counts for config and live …

Verify in this order

guest CPU → host scheduler → physical CPU

Where it usually breaks

First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; 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=3487

Confirmation

Confirm action

Continue?