Use this when large VMs perform unevenly, or when sizing VMs to fit within a host's NUMA nodes.
NUMA · CPU Virtualization
NUMA (non-uniform memory access) splits a host into nodes, each with its own cores and local memory. VMs perform best when their vCPUs and memory fit inside one node, because remote memory access is slower.
1. Keep a VM's vCPUs and memory on one NUMA node.
2. Large VMs span nodes — expose vNUMA.
3. Check per-node memory usage.
4. Disable NUMA spanning on Hyper-V for strict locality (careful).
5. Monitor remote memory access.
VM placement → node-local memory
Context & applicabilityCommon mistakes · platform/version boundaries
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 Effective-state and workload closure Verify boundary
Compare guest utilization with host ready/steal/run-queue and NUMA placement over the same interval, then rerun the original latency/throughput workload.
Step 2 Verification path Verify boundary
Exercise one safe negative or boundary case implied by unsupported CPU flag, NUMA mismatch, overcommit pressure, ballooning surprise, IOMMU group conflict, driver mismatch, hot-add limitation or device reset failure.
Step 3 Common mistakes Narrow the fault
- VMs larger than one NUMA node without vNUMA awareness.
Step 4 Where it fails Narrow the fault
Walk host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use and stop where observed state diverges.
Common failure classes are unsupported CPU flag, NUMA mismatch, overcommit pressure, ballooning surprise, IOMMU group conflict, driver mismatch, hot-add limitation or device reset failure. Also consider stale management inventory, asynchronous task overlap, host capability mismatch, guest-agent/driver lag, CPU feature masking, NUMA pressure, backing-store latency, bridge/VLAN mismatch, MTU mismatch, snapshot chains, lock ownership and partial cluster membership.
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.
- VM larger than a node pays remote memory cost.
- Socket/core layout should mirror physical nodes.
- NUMA balancing moves memory over time.
numactl -H— host NUMA layoutnumastat -c qemu-kvm— per-VM memory per nodeGet-VMHostNumaNode— Hyper-V NUMA
ReferenceWhy it matters1 section · depth on demand
In depth
In CPU virtualization, NUMA (Non-Uniform Memory Access) matters because each physical CPU socket has its own local memory; accessing memory attached to another socket is slower. The hypervisor tries to keep a VM's vCPUs and memory on the same NUMA node.
| VM size | Behaviour |
|---|---|
| Fits in one NUMA node | Scheduled locally — best performance |
| Larger than one node | Spans nodes; vNUMA exposes the topology to the guest |
| Odd vCPU/socket layout | Can mislead the guest scheduler |
Sizing guidance: keep VMs within one NUMA node's cores and memory where possible; for larger VMs, match virtual sockets/cores to the physical layout and let the hypervisor present vNUMA. Avoid enabling CPU hot-add on large VMs on platforms where it disables vNUMA.
numactl --hardware
lscpu | grep -i numa
virsh numatune app01
ReferenceImportant terms & boundaries2 sections · depth on demand
Known-good, transitional and broken reference
NUMA — comparative operational reference for CPU Virtualization → NUMA. What it does not show: a healthy VM object or completed management job does not show the guest workload or physical backing path is healthy Next check: move one step toward the original workload using Compare guest utilization with host ready/steal/run-queue and NUMA placement over the same interval, then rerun the original latency/throughput workload.
Mechanics
Follow the path in order: host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use.
Important negative cases include unsupported CPU flag, NUMA mismatch, overcommit pressure, ballooning surprise, IOMMU group conflict, driver mismatch, hot-add limitation or device reset failure.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Host capabilities, cluster compatibility, guest drivers, virtual hardware versions, NUMA/CPU topology, backing storage, network switching and asynchronous task completion can converge at different times.
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 → NUMA. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%