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.
More on Storage & Memory
How do you list disks, partitions and filesystems?IntermediateMBR vs GPT partition tables?IntermediateWalk through adding a new disk and mounting it permanently.IntermediateExplain the six fields of an /etc/fstab line.IntermediateWhy use UUIDs and `nofail` in fstab?IntermediateWhat does a bad fstab entry do, and how do you recover?Advanced