CPU Capacity
Cheat sheet · https://pcornel.dk/topic.php?topic=3674
Answer
CPU capacity planning compares total physical cores and GHz per cluster with the vCPUs and actual CPU demand of the VMs, keeping CPU ready low and leaving headroom for host failure and growth.
Remember
- Plan on demand, not configured vCPUs alone.
- Reserve one host's worth for N+1.
- Ready time validates the plan.
First checks
nproc; lscpu— physical cores/threadsvirsh nodeinfo— host CPUsesxtop— ready under load
Commands
virsh domstats --vcpu
Verify in this order
physical cores → target utilisation → VM vCPU demand
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.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3674