Virtualization · VM Hardware › Memory
NUMA
Cheat sheet · https://pcornel.dk/topic.php?topic=3460
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 nodesvirsh numatune <vm>— VM NUMA policyGet-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Host NUMA | Physical CPU/memory locality domains | Backing topology |
| VM size | vCPU/RAM footprint | May span nodes |
| vNUMA | Guest-visible locality topology | Virtual presentation |
| Remote access | CPU accesses non-local memory | Performance-sensitive |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3460