Heterogeneous Memory Architecture
Heterogeneous memory makes the cost of an access depend on placement. A migration decision should compare expected future savings with the cost of moving a page.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 3
- Reading time
- 1 min
In this article3 chapters
Distance is not one number
NUMA exposes memory attached to different sockets or nodes. Near memory often has lower latency, while several nodes can supply more aggregate bandwidth when traffic is spread appropriately. With a CXL memory expansion device, the topology can include an additional capacity tier. The operating system needs to know which tier a page occupies and which threads use it. Cache coherence and the address interface do not make performance uniform.
NUMA placement gives a concrete example of why moving data must pay back its copy cost. Cache-line reuse changes the number of operations that actually reach the slower region.
A simple decision rule for migration
Let \(L_f\) and \(L_s\) be average access costs for a fast and a slow tier under a given load. Let \(M\) include copying a page and updating placement metadata. If there will be \(n\) accesses before the page becomes cold or moves again, migration pays in this simple model when
\[ n(L_s-L_f)>M. \]
A fast tier with a capacity constraint also has an opportunity cost. Promoting one page can displace another. Counters used to infer temperature are noisy, and a rule that reacts too quickly can move pages repeatedly without enough accesses to amortize copying.
Software and hardware choose different levers
Page allocation policies influence locality, while interleaving can trade latency for bandwidth. Memory-controller queues, prefetching and concurrent requests change measured costs. The choice of page size affects both tracking overhead and wasted movement of cold data. Architecture and policy must agree on what coherence entails and how failures appear. Compare cache coherence, disaggregated memory, and tail latency in scheduling.[1][2]