Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

NUMA · CPU Virtualization

Direct answer

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.

When to use this

Use this when large VMs perform unevenly, or when sizing VMs to fit within a host's NUMA nodes.

First 30 seconds

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.

Operational verification

VM placement → node-local memory

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 large VMs perform unevenly, or when sizing VMs to fit within a host's NUMA nodes.
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
  • 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 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
  • VM larger than a node pays remote memory cost.
  • Socket/core layout should mirror physical nodes.
  • NUMA balancing moves memory over time.
Key checks
  • numactl -H — host NUMA layout
  • numastat -c qemu-kvm — per-VM memory per node
  • Get-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 sizeBehaviour
Fits in one NUMA nodeScheduled locally — best performance
Larger than one nodeSpans nodes; vNUMA exposes the topology to the guest
Odd vCPU/socket layoutCan 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.

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 CPU 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?