Pcornel
Virtualization · VM Hardware › vCPU

Cores

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

Back to the Topic

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 topology
  • qm config <vmid> | grep cores — Proxmox cores
  • virsh 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

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3449

Confirmation

Confirm action

Continue?