CPU Virtualization
Cheat sheet · https://pcornel.dk/topic.php?topic=3476
Answer
CPU virtualization lets many VMs share physical cores: the hypervisor schedules vCPUs onto cores using hardware extensions (Intel VT-x, AMD-V), and settings like overcommit, pinning and NUMA placement decide how well they perform.
Remember
- High guest CPU ≠ host contention; check ready/steal time.
- More vCPUs ≠ faster VM; oversizing raises scheduling wait.
- CPU model choice affects both features and live migration.
First checks
virsh vcpuinfo <vm>— vCPU placementtop (st column) in guest— steal timeesxtop— %RDY on ESXi
Verify in this order
vCPU threads → scheduler → physical cores
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=3476