NUMA Placement and Remote Memory Cost

Compare local and remote memory placement for a repeated access pattern and account for the cost of moving data between nodes.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Physical location influences access time
  2. Migration needs enough future reuse to pay for itself

Physical location influences access time

On a nonuniform memory access system, a processor can often use memory attached to another socket, but the path can have different latency and bandwidth. Allocation policy may choose pages near the thread that initializes them. A program initializing all arrays from one worker and later distributing computation can then concentrate memory in one node unintentionally.

Migration needs enough future reuse to pay for itself

Suppose moving a region saves \(\Delta\) time per later access and costs \(C\) under a simplified nonoverlapping model. More than \(C/\Delta\) accesses are needed to offset movement when \(\Delta>0\). Real throughput also depends on contention and whether traffic overlaps computation. Cache locality can reduce how many accesses reach memory at all. Heterogeneous memory extends the model to several tiers and interconnects.[1][2]

References

  1. Linux Kernel Documentation, NUMA Memory Policy ↩
  2. Vijay Nagarajan et al., A Primer on Memory Consistency and Cache Coherence ↩