vCPU
Cheat sheet · https://pcornel.dk/topic.php?topic=3426
Answer
A vCPU is a virtual processor presented to a VM and scheduled by the hypervisor onto physical cores or threads. Give a VM only as many vCPUs as it uses, because extra vCPUs add scheduling overhead and ready time.
Remember
- Start small; add vCPUs when proven needed.
- More vCPUs = more scheduling wait.
- Licensing may count vCPUs.
First checks
virsh vcpuinfo <vm>— vCPU to pCPU mapping and stateGet-VMProcessor <vm>— Hyper-V vCPU count and settingsqm config <vmid> | grep -E 'cores|sockets|cpu'— Proxmox vCPU config
Verify in this order
vCPU thread → hypervisor scheduler → physical core
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=3426