Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

NUMA · Memory Virtualization

Direct answer

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.

When to use this

Use this when a VM's memory sits on a different NUMA node than its vCPUs, causing slower access.

First 30 seconds

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.

Operational verification

vCPUs on node → memory on same node

Context & applicabilityCommon mistakes · platform/version boundaries
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 this when a VM's memory sits on a different NUMA node than its vCPUs, causing slower access.
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.

4 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 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 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
  • Remote memory adds latency.
  • Large VMs need vNUMA.
  • Migration can break locality temporarily.
Key checks
  • numastat -m — per-node memory
  • numactl -H — nodes and free memory
  • virsh 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.

MechanismNUMA 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 / swappingReclaims memory regardless of locality
Memory reservationsGuarantee 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
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 Memory Virtualization → NUMA. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/docs.html · confidence 94%
Confirmation

Confirm action

Continue?