Pcornel
Hardware · Server Architecture

NUMA

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

Back to the Topic

Answer

NUMA (Non-Uniform Memory Access) means memory and devices are attached to specific CPUs or CPU regions (nodes); a core reaches local memory faster than memory on another node.

Remember

One node per socket by default; BIOS options (Intel SNC, AMD NPS) can split a socket into more nodes. Keep threads, memory and the NIC/NVMe they use on the same node. Remote access works — it is just slower and uses the inter-socket link.

First checks

  • numactl --hardware — nodes, CPUs, memory and distance matrix.
  • numastat -p <pid> — where a process's memory actually lives.
  • lscpu | grep NUMA — CPU ranges per node.
  • cat /sys/class/net/<if>/device/numa_node — node of a NIC.

Verify in this order

BIOS NUMA mode (SNC/NPS) → nodes with local memory and devices → OS scheduler and allocator → process placement → local or remote access

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

Confirmation

Confirm action

Continue?