Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Cores

Direct 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.

When to use this

Use it when designing or validating sockets/cores layout while keeping total vCPU count and guest/application expectations consistent.

First 30 seconds

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.

Operational verification

config → guest topology

Evidence · next step

Check host scheduler/NUMA data and workload scaling.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware
Scope / prerequisiteUse it when designing or validating sockets/cores layout while keeping total vCPU count and guest/application expectati…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • lscpu | grep -E 'Socket|Core|Thread' — guest topology
  • qm config <vmid> | grep cores — Proxmox cores
  • virsh 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 viewTypical reason
1 socket × 8 coresOne 8-core CPUDefault choice; matches licensing per socket
2 sockets × 4 coresTwo 4-core CPUsMirror a 2-NUMA-node host for large VMs
8 sockets × 1 coreEight single-core CPUsAvoid: Windows client editions use only 1–2 sockets
1 socket × 4 cores × 2 threadsSMT exposedOnly 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 cpu with --vcpus below cores × 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

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%
Terminology layer

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.

Aliases that resolve here
virtual coresvm cpu corescores per socket vm
Embedded reference data

Quick lookup tables

VM Hardware → vCPU → Cores reference map

Fast VM-hardware boundaries for VM Hardware → vCPU → Cores.

BoundaryMeaningEvidence limit
Virtual coreCore in guest topologyNot guaranteed physical core
Core per socketTopology groupingCan change without vCPU total change
pCPU coreHost execution resourceScheduled separately
WorkloadConsumes CPU parallelismScaling must be measured
Confirmation

Confirm action

Continue?