A server with two processors has two memory controllers, and a core on one chip can reach the other chip's memory only over an interconnect. Whether the operating system admits that difference defines two models of multiprocessing, each with a different idea of what a thread should do.

SMP presents every core with a single flat view of memory and hides the distance, while NUMA exposes that distance so software can keep a thread and its data on the same chip.

Part One: The useful fiction

Under symmetric multiprocessing, the scheduler treats all cores as equivalent and all memory as equally accessible. This is a wonderfully simple model: any thread can run anywhere, and the operating system balances load without worrying about which chip owns which bank of RAM. For small machines it is almost true, because the distance between cores is small.
As sockets multiply, the fiction becomes expensive. Accessing remote memory is slower and consumes interconnect bandwidth that another thread might need. A scheduler that ignores this can migrate a thread to an idle core and make the program slower, because the thread now reaches all its data across the chip boundary.

A remote NUMA access can take roughly one and a half to two times as long as a local one, and once the interconnect saturates the penalty grows for every core on the socket, not just the one that moved.

Part Two: What software must now know

NUMA-aware systems expose a topology of nodes, each with local memory and cores. Software can bind a thread to a node and allocate its memory there, so the common path stays local. Databases were among the first to adopt this, assigning worker threads to nodes and partitioning data so most queries never cross the interconnect.
The cost is rigidity. A carefully pinned process does not adapt when load shifts, and a bad placement can be worse than the naive one the scheduler would have chosen. Automatic NUMA balancing tries to recover the convenience by watching page faults and migrating memory toward the threads that use it, but this adds its own overhead and works best for stable workloads.

This is not only a data-centre concern. A modern workstation with a high core count can show the same effect when a video export spawns threads across both chiplets and the scratch buffers sit on only one of them. Pinning the export can shave minutes off a long job.

Servers dominate the market for NUMA-aware software, a market tied to the tens of billions of dollars spent on data-centre processors each year. As chiplet designs put more distance between cores inside a single socket, the same reasoning is moving down into ordinary desktops.

NUMA does not make memory faster; it stops software from pretending distance does not exist, and that honesty pays only when the application knows enough to use it.

The usual advice is to measure before pinning. On a lightly loaded machine the automatic balancer is often good enough, and hand-tuned placement can grow stale as the workload changes.
The deeper lesson is that multicore programming is increasingly about data placement rather than core count. Adding threads is easy; keeping their memory close is the hard part.

The history explains the default. When multiprocessor servers were rare, hiding the memory topology was the right call: almost all memory was equally far away, so a flat model cost nothing and simplified everything. NUMA appeared only when the physical reality changed enough that pretending otherwise became more expensive than exposing it.

Programmers feel the effect most in data structures that are written by one thread and read by many. If the allocation lands on the wrong node, every reader pays the remote penalty for the life of the object. Careful designs allocate on the node that will use the data, or replicate read-mostly structures so each socket has a local copy.

Virtualisation adds another wrinkle. A virtual machine may believe it has one socket while the hypervisor places its virtual CPUs across physical chips, so a guest that optimises locally can still suffer remotely. Modern hypervisors expose topology to help, but the guest and host must cooperate for placement to work, which is why cloud tuning is a shared responsibility.

SOL: HCqPmPJM3NVtS6YrmVaTZYnuP8XZ2PFgQZKT94VK1LkS
Creating this takes real effort — thank you for the support.