Pcornel
Virtualization · VM Hardware

vCPU

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

Back to the Topic

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 count
  • qm config <vmid> | grep -E 'sockets|cores|cpu:' — Proxmox CPU settings
  • Get-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

BoundaryMeaningEvidence limit
vCPU countLogical processors exposed to guestNot dedicated physical cores
SchedulerMaps runnable vCPUs to pCPUsCan introduce wait/contention
Guest CPU %Guest view of execution demandNot host scheduler wait
Physical CPUFinite execution backingShared 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

Confirmation

Confirm action

Continue?