Pcornel
Virtualization · VM Hardware › Memory

NUMA

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

Back to the Topic

Answer

Large VMs can span host NUMA nodes. Hypervisors may present virtual NUMA topology so the guest scheduler and memory manager can make locality-aware decisions.

Remember

  • NUMA means memory access latency/bandwidth depends on CPU-to-memory locality.
  • Guest NUMA topology can be virtualized and need not exactly equal host topology.
  • Cross-node placement can increase remote memory access.
  • CPU and memory placement should be considered together.

First checks

  • numactl -H — host NUMA nodes
  • virsh numatune <vm> — VM NUMA policy
  • Get-VMHostNumaNode — Hyper-V NUMA nodes

Verify in this order

vCPU + memory placement → local/remote access

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 → Memory → NUMA reference map

BoundaryMeaningEvidence limit
Host NUMAPhysical CPU/memory locality domainsBacking topology
VM sizevCPU/RAM footprintMay span nodes
vNUMAGuest-visible locality topologyVirtual presentation
Remote accessCPU accesses non-local memoryPerformance-sensitive

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

Confirmation

Confirm action

Continue?