Pcornel
Virtualization · Virtualization Troubleshooting

CPU Ready / Scheduling

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

Back to the Topic

Answer

Measure runnable demand separately from execution: guest wants CPU → vCPU runnable → scheduler eligibility → pCPU slot/topology → run time → guest progress.

Remember

  • CPU ready is scheduling wait, not guest CPU utilization.
  • Low average host CPU ≠ zero scheduling contention when cores, NUMA nodes, affinity or reservations constrain placement.
  • A single ready percentage has platform-specific units/intervals and must be interpreted with sampling context.
  • Adding vCPUs can worsen co-scheduling or topology pressure instead of reducing wait.

First checks

  • esxtop — %RDY and %CSTP
  • vmstat 1 (st) — steal on KVM
  • virsh schedinfo <vm> — limits

Commands

virsh domstats <vm> --vcpu
virsh

Verify in this order

vCPU runnable → waits → ready/steal

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 → CPU Ready / Scheduling troubleshooting map

BoundaryWhat to verifyEvidence limit
Symptom/scopeExact failing test, affected VM/host/cluster and incident time are definedSymptom classification does not identify root cause
Observed boundaryConfiguration, runtime and counters/logs for this Virtualization Troubleshooting → CPU Ready / Scheduling boundary are time-correlatedOne healthy or failed status does not prove adjacent dependencies
Adjacent dependencyThe next host, storage, network, device, guest or cluster dependency is tested independentlyLocal success does not prove end-to-end health
VerificationThe original workload test succeeds after one controlled change and remains healthy in regression checksTemporary 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=3818

Confirmation

Confirm action

Continue?