Use it when designing or validating sockets/cores layout while keeping total vCPU count and guest/application expectations consistent.
Cores
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.
1. Cores per socket define vCPUs per virtual socket.
2. Total vCPUs = sockets × cores × threads.
3. Keep within physical cores per NUMA node.
4. Guest OS limits may apply.
5. Verify in guest.
config → guest topology
Check host scheduler/NUMA data and workload scaling.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show dedicated host cores or efficient scheduling.
Next check: Check host scheduler/NUMA data and workload scaling.
and state what the evidence does not show.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
core topology config → guest enumeration → hypervisor scheduling → physical execution → workload
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
lscpu | grep -E 'Socket|Core|Thread'— guest topologyqm config <vmid> | grep cores— Proxmox coresvirsh dumpxml <vm> | grep topology— libvirt topology
ReferenceHow it works1 section · depth on demand
How it works
Anchor the same VM/guest operation from virtual device identity through hypervisor ownership to the exact physical CPU, memory, network or storage resource.
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
Correct core enumeration shows guest presentation, not pCPU reservation, locality or performance.
Affinity, pinning and detailed scheduling belong to CPU Virtualization.
and state what the evidence does not show.
In depth
Sockets, cores, threads — what the guest sees
The libvirt domain format sets topology with <cpu><topology sockets='1' dies='1' cores='4' threads='1'/></cpu>; Proxmox uses --sockets and --cores.
| Topology (vCPUs = 8) | Guest view | Typical reason |
|---|---|---|
| 1 socket × 8 cores | One 8-core CPU | Default choice; matches licensing per socket |
| 2 sockets × 4 cores | Two 4-core CPUs | Mirror a 2-NUMA-node host for large VMs |
| 8 sockets × 1 core | Eight single-core CPUs | Avoid: Windows client editions use only 1–2 sockets |
| 1 socket × 4 cores × 2 threads | SMT exposed | Only when vCPUs are pinned to host sibling threads |
The number of vCPUs is what consumes host CPU time; topology changes how the guest schedules and how software licensing counts.
NUMA alignment for large VMs
A VM with more vCPUs or memory than one host NUMA node should be NUMA-aware:
qm set 101 --sockets 2 --cores 8 --numa 1 --memory 131072
Matching guest sockets to host nodes lets the guest OS place threads near their memory. numactl --hardware on the host and lscpu in the guest show the mapping.
Sizing rule of thumb
- Start small (2–4 vCPUs) and scale on measured CPU usage; extra idle vCPUs still cost scheduling overhead and can increase co-scheduling delay.
- Never give one VM more vCPUs than the host has physical cores.
- Hot-plug (
--hotplug cpuwith--vcpusbelowcores × sockets) allows adding CPUs without reboot where the guest supports it.
Licensing checks
Many products license per socket or per core visible to the guest; changing topology can change compliance. Record the topology in the VM notes for licensed workloads.
Worked example
Cores per socket define how vCPUs are grouped. On VMware (since 6.5) cores per socket no longer determines vNUMA automatically; on KVM/Proxmox, --sockets/--cores shape the topology QEMU presents.
Example: an 8-vCPU VM on hosts with 2 × 16-core sockets → 1 socket × 8 cores (fits in one NUMA node). A 24-vCPU VM on the same host → 2 sockets × 12 cores, matching two NUMA nodes.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in VM Hardware → vCPU → Cores. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
VM Hardware → vCPU → Cores reference map
Fast VM-hardware boundaries for VM Hardware → vCPU → Cores.
| 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 |