Interview Prep/Linux/Storage & Memory

What is NUMA and why does it matter?

AdvancedConceptStorage & Memory
Answer

On multi-socket servers each CPU socket has its own local memory; accessing another socket's memory is slower. The kernel tries to allocate locally, but a process can end up with remote memory, or one node can run out while another has plenty, triggering reclaim or swap.

numactl --hardware
numastat -p $(pgrep -o mysqld)
numactl --cpunodebind=0 --membind=0 ./app

Large-cloud instances with multiple NUMA nodes need this for latency-sensitive databases.

All Linux questions Roadmap: Linux

More on Storage & Memory