NUMA (non-uniform memory access)

NUMA means that in a server with more than one processor, each processor reaches its own memory faster than the memory attached to the other one.

In plain words

In a two-socket server, each processor has its own memory modules attached directly. A program running on processor A can use processor B's memory too, but the request must cross the link between the two processors, and that takes longer and has less bandwidth than local memory. The memory is therefore not uniform in speed: hence the name.

The group of cores plus the memory attached to them is called a NUMA node. Operating systems and hypervisors know about it, and they try to keep a program's threads and its memory in the same node. Problems arise when a program or a virtual machine is larger than one node, for example a virtual machine given more vCPUs or more memory than one processor holds. Its threads then reach remote memory often, and it can run noticeably slower than the same machine on a single socket.

Some processors divide further. AMD EPYC processors can be set to present one, two or four nodes per socket, and the setting changes the balance between delay and bandwidth. Databases and virtualization platforms publish guidance on the right setting.

The simple design rule is to keep memory balanced across the sockets, size virtual machines to fit in one node where you can, and consider a single-socket server when a workload fits, because it largely avoids the question (some processors can still present more than one node per socket).

Why it matters when you buy a server

NUMA is one reason a one-socket server with many cores can beat a two-socket server for some workloads, and why memory must be equal on both sockets. If a licence is priced per core, an extra socket also raises the licence bill, so the choice is worth a short discussion before the quotation.

Keep reading

Sources: AMD EPYC tuning guides (NUMA nodes per socket); Intel documentation on sub-NUMA clustering; Operating system and hypervisor NUMA documentation.

Related terms

Tell us what the server must run.

An engineer checks the configuration against the manufacturer's specifications and replies with a formal quotation.