Virtualization · VM Hardware › vCPU
Cores
Cheat sheet · https://pcornel.dk/topic.php?topic=3449
Answer
Core count defines how many virtual cores exist within the selected socket/thread topology. The hypervisor schedules their execution; they are not inherently dedicated physical cores.
Remember
- Virtual core count is topology metadata plus execution contexts.
- A virtual core need not remain on the same physical core.
- Different socket/core layouts can expose the same total vCPU count.
- Application performance depends on scheduling, memory locality and workload parallelism, not the label “core” alone.
First checks
lscpu | grep -E 'Socket|Core|Thread'— guest topologyqm config <vmid> | grep cores— Proxmox coresvirsh dumpxml <vm> | grep topology— libvirt topology
Verify in this order
config → guest topology
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 → Cores reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Virtual core | Core in guest topology | Not guaranteed physical core |
| Core per socket | Topology grouping | Can change without vCPU total change |
| pCPU core | Host execution resource | Scheduled separately |
| Workload | Consumes CPU parallelism | Scaling must be measured |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3449