vCPU
Cheat sheet · https://pcornel.dk/topic.php?topic=3447
Answer
A vCPU is what the guest schedules work onto, but the hypervisor ultimately schedules that vCPU onto physical cores/threads. vCPU count therefore describes guest-visible parallel execution capacity, not dedicated pCPU ownership.
Remember
- vCPU count is guest-visible logical CPU capacity.
- A vCPU is not automatically pinned to one physical core.
- More vCPUs can increase parallelism but can also increase scheduling coordination and NUMA/topology effects.
- CPU utilization inside the guest and hypervisor scheduler wait are different measurements.
First checks
virsh vcpucount <vm>— vCPU countqm config <vmid> | grep -E 'sockets|cores|cpu:'— Proxmox CPU settingsGet-VMProcessor <vm>— Hyper-V vCPU
Verify in this order
vCPU config → topology → 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.
VM Hardware → vCPU reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| vCPU count | Logical processors exposed to guest | Not dedicated physical cores |
| Scheduler | Maps runnable vCPUs to pCPUs | Can introduce wait/contention |
| Guest CPU % | Guest view of execution demand | Not host scheduler wait |
| Physical CPU | Finite execution backing | Shared unless isolated/pinned |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3447