Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

CPU Troubleshooting

Direct 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.

When to use this

Use this as the start point when a VM has CPU performance problems and you need to tell guest issues from host contention.

First 30 seconds

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.

Operational verification

guest CPU → host scheduler → physical CPU

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware · libvirt / KVM
Key commandvirsh vcpucount <vm>
Scope / prerequisiteUse this as the start point when a VM has CPU performance problems and you need to tell guest issues from host contenti…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Virtualization command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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
Key points
  • High guest CPU + low ready = VM needs more CPU.
  • Low guest CPU + high ready = host contended.
  • Check limits before blaming hardware.
Key checks
  • vmstat 1 — steal (st) and run queue
  • virsh domstats <vm> --vcpu — vCPU time
  • esxtop — %RDY %CSTP %MLMTD
ReferenceImportant terms & boundaries1 section · depth on demand

Method

SymptomCheck
VM slow, host CPU not fullCPU ready/co-stop, CPU limit set, NUMA spanning
Guest shows 100 % CPUReal load or steal time (st in top)
Host CPU 100 %Overcommit, runaway VM, host processes (backup, scrub)
Migration blockedCPU model/EVC mismatch
Guest won't boot after CPU changeMissing 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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

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%
Confirmation

Confirm action

Continue?