NUMA Topology & Memory Policy

NUMA architecture, memory node locality, numactl policies, and NUMA-aware tuning for latency-sensitive workloads.

Overview

NUMA (Non-Uniform Memory Access) is the memory architecture of modern multi-socket servers. Each processor socket has local RAM — access to local memory is ~60ns, access to RAM on another socket (via QPI/UPI interconnect) is ~120ns or higher.

Why NUMA Matters

A process pinned to CPU 0 that allocates memory on NUMA node 1 incurs remote memory latency on every access. At scale, this causes throughput degradation and latency spikes invisible to top/htop.

Key concepts

  • NUMA node
  • numastat
  • Topology Manager
  • Interleave policy

Interview questions

  • A Redis instance on a 2-socket server shows unexpectedly high latency at moderate load. How does NUMA factor in and how do you diagnose?

Sign up free to read the full topic

More Linux topics

Start free on Cariara · Coding problems · System design studio