Use this when a large VM spans NUMA nodes and the guest OS or application must place threads and memory locally.
vNUMA
vNUMA presents a NUMA topology inside the VM that mirrors the host's nodes, so a large guest OS and its applications can place threads and memory locally. Keep the vCPU and socket layout aligned with the physical nodes.
1. vNUMA exposes the host NUMA layout to large VMs.
2. Guest OS and apps (DBs) can then place memory well.
3. Match vNUMA to physical nodes.
4. Hot add can disable vNUMA.
5. Verify in guest.
host nodes → vNUMA cells → guest scheduler
Context & applicabilityCommon mistakes · platform/version boundaries
- Odd vCPU counts that do not divide evenly across NUMA nodes.
- CPU hot-add enabled, disabling vNUMA on vSphere.
- Memory larger than one node while vCPUs fit in one node — memory is then remote.
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 Checks Verify boundary
numactl --hardware # host topology
lscpu | grep -i numa # in the guest
coreinfo -n # Windows guest (Sysinternals)
The guest should see the same number of NUMA nodes the VM spans on the host. Hot-add CPU disables vNUMA on vSphere.
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.
- vNUMA exposes topology only above a vCPU threshold on some platforms.
- Hot-add CPU can disable vNUMA.
- Mismatched sockets/cores confuses the guest.
numactl -H— in guest: nodes visiblevirsh dumpxml <vm> | grep -A5 numa— guest NUMA cellsGet-VMProcessor <vm> | fl MaximumCountPerNumaNode— Hyper-V vNUMA
ReferenceWhy it matters1 section · depth on demand
When vNUMA matters
- VMs with more vCPUs or memory than one physical NUMA node (for example > 16 cores or > 256 GB on a two-socket host).
- NUMA-aware applications (SQL Server, Oracle, large JVMs).
Keep vCPU and memory sizes aligned to node boundaries, configure cores-per-socket to match the host, and avoid CPU hot-add, which disables vNUMA on vSphere. In the guest, lscpu or numactl --hardware (Linux) and Get-WmiObject Win32_Processor / Task Manager NUMA view show the topology.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
vNUMA exposes the host's NUMA layout to large VMs so the guest OS and applications (SQL Server, Oracle, JVMs) can keep threads and memory local. Crossing NUMA nodes costs memory latency (often 1.3–2× local).
Rules: keep a VM's vCPUs and memory within one NUMA node when possible (e.g. ≤ 16 vCPUs and ≤ 256 GB on a 2 × 16-core, 512 GB host); larger VMs should span nodes evenly and get vNUMA.
numactl --hardware # in guest: nodes and distances
numastat -p qemu # host: memory per NUMA node for VMs
qm set 120 --numa 1
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 CPU Virtualization → vNUMA. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%