Use this when a VM's memory sits on a different NUMA node than its vCPUs, causing slower access.
NUMA · Memory Virtualization
Memory NUMA placement keeps a VM's memory on the same NUMA node as the cores running its vCPUs. VMs larger than one node should get vNUMA, and tools like numastat or esxtop show how much memory is remote.
1. Keep VM memory on the node of its vCPUs.
2. Remote memory access adds latency.
3. Large VMs use vNUMA.
4. Check node imbalance.
5. Use automatic NUMA balancing or explicit policy.
vCPUs on node → memory on same node
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
- Ignoring NUMA placement for large VMs.
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.
- Remote memory adds latency.
- Large VMs need vNUMA.
- Migration can break locality temporarily.
numastat -m— per-node memorynumactl -H— nodes and free memoryvirsh numatune <vm>— VM policy
ReferenceWhy it matters1 section · depth on demand
In depth
In memory virtualization, NUMA placement is one of several decisions the hypervisor makes when mapping guest memory to physical RAM. The hypervisor keeps a nested page mapping (EPT/NPT) from guest physical to host physical addresses, and tries to back each VM from the NUMA node where its vCPUs run.
| Mechanism | NUMA impact |
|---|---|
| Second-level address translation (EPT/NPT) | Fast mapping; large pages reduce TLB misses |
| Huge pages (2 MB/1 GB) | Fewer TLB misses; must be available on the right node |
| Ballooning / swapping | Reclaims memory regardless of locality |
| Memory reservations | Guarantee memory, help keep placement stable |
grep -i huge /proc/meminfo
cat /sys/devices/system/node/node*/meminfo | grep -E 'MemTotal|MemFree'
For large or latency-sensitive VMs, combine memory reservations, huge pages and NUMA-aligned sizing.
ReferenceImportant terms & boundaries1 section · depth on demand
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 Memory Virtualization → NUMA. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%