Pidoku

Memory-Centric and Disaggregated Futures

Module 24 Lesson 24.i 1h Difficulty 4/5

Prerequisites 2.e, 4.e, 7.e, 7.k, 14.k, 24.c


Before you start: words you need#

WordPlain meaning
Memory hierarchyThe ladder of storage from fastest and smallest (registers, SRAM) to slowest and largest (SSD, remote storage) (3.b).
Coherent linkA CPU–GPU connection where both sides see one shared memory without explicit copies, at high bandwidth. NVIDIA’s NVLink-C2C is one.
LPDDR5XLow-power DRAM used beside NVIDIA’s Grace and Vera CPUs; much larger than HBM, much slower.
CXLCompute Express Link: a standard for attaching extra memory to servers over PCIe wiring, including memory shared by several servers (“pooling”).
HBF (high bandwidth flash)A proposed stacked-flash memory that sits like HBM but holds far more, read-mostly. Not yet shipping.
PIM (processing in memory)Putting simple arithmetic units inside memory chips, so data is used where it lives.
Co-packaged optics (CPO)Optical transceivers built into the switch or chip package, replacing pluggable modules, to save power on long links.
DisaggregationSplitting resources that are normally fused (prefill and decode, attention and experts, memory and compute) so each can be sized separately.

1. What is it?#

This lesson pulls the module together around one thesis: inference is a memory problem.

  • Decode is bandwidth-bound (2.e).
  • Memory capacity limits concurrency (12.f).
  • Quantization saves bytes (13.b); batching shares each byte across users (2.d).
  • MoE trades capacity for quality (14.g); disaggregation is about where KV lives (14.j).

So the hardware and system designs that move fewer bytes, or keep them closer, should win. This lesson surveys those designs and labels how real each one is.

DirectionStatus, November 2026
Bigger, faster HBM (HBM4 in Rubin)ESTABLISHED: shipping 2026
Coherent CPU memory as a KV and weight tier (Grace, Vera)ESTABLISHED hardware; software catching up
SRAM decode machines beside GPUs (Groq 3 LPX, Cerebras)ESTABLISHED product, early in deployment (7.k)
Phase-specialised GPUs (Rubin CPX for prefill)SPECULATIVE: off NVIDIA’s public roadmap; revival only in analyst reports
CXL memory pools for KVEMERGING: research prototypes and demos
High bandwidth flashSPECULATIVE: open spec published August 2026; samples announced for 2027
Processing in memorySPECULATIVE for data centres: demos, no named deployments
Co-packaged optics in AI networksEMERGING: first deployments in 2026

Facts checked on 13 November 2026.


2. Why does it matter?#

Compute has grown faster than memory bandwidth for decades, and agents and long contexts made memory capacity the other wall (1.f). If you know which memory technologies are shipping and which are slides, you can plan a KV tier, a fleet purchase or a software design without betting on something that is still five years away.


3. Simple analogy#

A kitchen. HBM is the counter: tiny, everything within reach. CPU memory over a coherent link is a fridge right beside you. CXL is a shared pantry down the hall. SSD is the basement. The question for every ingredient (weights, KV blocks) is which shelf it lives on, and whether fetching it is quicker than making it again. PIM is putting a small cutting board inside the fridge. Disaggregation is building separate kitchens for starters and mains.


4. Tiny example: one 50k-token prefix#

A 70B-class model’s KV cache for 50,000 tokens at FP8 is about 8.2 GB. Recomputing it takes about 2.5 s on its GPUs. Bringing it back takes about 0.01 s from CPU memory over Vera Rubin’s NVLink-C2C, 0.15 s over PCIe Gen5, and 1.2 s from a single NVMe drive. Loading wins everywhere for one request. What changes is how many such prefixes per second each link can deliver when hundreds of agents come back at once. Section 6 prints both.


5. Technical explanation#

The hierarchy is getting longer#

TierSize per node (2026)Usable bandwidth to the GPUStatus
On-chip SRAMMBs per GPU; ~500 MB per Groq LP30tens to hundreds of TB/sESTABLISHED
HBM4 (Rubin)288 GB per GPU~22 TB/sESTABLISHED
CPU LPDDR5X over NVLink-C2C (Vera)up to 1.5 TB per CPU1.8 TB/s quoted per link (assume ~half per direction)ESTABLISHED
CPU DDR over PCIe Gen5 / Gen61–4 TB~55 / ~110 GB/s per x16ESTABLISHED
CXL memory poolTBs, shared across hosts~50 GB/s per x16 link, aggregatableEMERGING
Remote memory over RDMAeffectively unlimited~45–50 GB/s per 400 Gb/s NICESTABLISHED
Local NVMe10–100 TB~7 GB/s per driveESTABLISHED
High bandwidth flashup to 512 GB per stack (spec)0.4–3.0 TB/s per stack (spec grades)SPECULATIVE

A Vera Rubin NVL72 rack has about 20.7 TB of HBM4 and 54 TB of LPDDR5X on its CPUs. The coherent link turns that CPU memory from a swap tier into a real level of the hierarchy, which is what tiered KV caches and CPU expert offload need.

Disaggregation, generalised#

One pattern, applied over and over:

SplitWhyStatus
Prefill from decodeCompute-bound vs bandwidth-boundESTABLISHED (14.j)
KV from computeKV is data with its own lifecycleESTABLISHED in engines (24.c)
Encoder from language modelMultimodal encoders scale differentlyEMERGING (24.h)
Attention from expertsKV-heavy vs weight-heavyEMERGING (24.f)
Decode on different siliconSRAM machines decode faster per userESTABLISHED product (7.k)
Memory from computeMemory-to-compute ratio varies by workloadEMERGING (CXL)

A monolithic GPU fixes the ratio of compute, capacity and bandwidth. Workloads need different ratios. The counter-argument has not gone away: every split adds a link, and links are slower than what they replace. Splits pay only when the link is fast enough and the load is high enough.

NVIDIA’s own path shows the trade in action. It announced Rubin CPX (a GDDR7 prefill chip) in September 2025, dropped it from the public roadmap by March 2026 while adding Groq 3 LPX as a decode accelerator, and a September 2026 analyst report claims an HBM4-based CPX may return in 2027; other sources call that unconfirmed (7.e).

CXL memory pools#

CXL lets several servers share a memory pool. For inference: a large shared KV tier, or a place for cold weights. Alibaba’s Beluga (late 2025) put KV in a CXL pool integrated with vLLM and reported up to 4.8x throughput over an RDMA-based Mooncake baseline. Industry demos exist; multi-rack production pooling is a 2026–27 target, not a fact. The comparison baselines are RDMA and SSD, not a well-tuned GPU-only setup.

High bandwidth flash#

HBF is stacked NAND flash beside the accelerator, read-mostly, with vendor targets of 8–16x HBM’s capacity at similar read bandwidth. That suits model weights, which are read every token and rarely written. In August 2026 Sandisk and SK hynix published the first HBF specification through the Open Compute Project: 8-high and 16-high stacks of up to 512 GB, three bandwidth grades from 0.4 to 3.0 TB/s per stack, attached over UCIe; Google and Tenstorrent joined the work. A press report from the same month says the first die taped out and inference product samples are planned for 2027. A published spec is real progress, but it is still SPECULATIVE: vendor claims, no silicon in customers’ hands. Write endurance and latency are open questions.

Processing in memory#

Decode is mostly matrix-vector multiply: read a weight, multiply once, discard. That is the ideal PIM workload. SK hynix showed AiM chips and an AiMX card running an LLM demo in 2026; Samsung’s PIM plans point at AI PCs, with mass production “as early as 2027” in a trade report. The obstacles are unchanged: a programming model, little room for logic on DRAM dies, attention not being a simple matrix-vector product, and cost. Still SPECULATIVE for data centres, and still the best-matched idea on paper.

Optics#

Co-packaged optics cut the power of long links. NVIDIA’s Quantum-X Photonics InfiniBand switches (144 ports of 800 Gb/s, liquid-cooled) began shipping to early partners in 2026, with Spectrum-X Photonics Ethernet following; Broadcom and Lightmatter showed CPO switches too. Deployments are still early and few. For inference this matters at scale-out: disaggregation and cluster-wide KV stores are network-bound, and CPO makes more bandwidth affordable in power. EMERGING.


6. Under the hood: load or recompute, tier by tier#

Go
// tiers.go — bring a cached 50k-token prefix back to the GPU, or recompute it?
package main

import "fmt"

func main() {
	const (
		tokens      = 50_000
		kvBytes     = 163_840  // per token: 70B-class model, 80 layers, 8 KV heads, head 128, FP8
		prefillTokS = 20_000.0 // assumed recompute speed for this prefix on its GPUs
	)
	gb := float64(tokens*kvBytes) / 1e9
	recompute := tokens / prefillTokS
	fmt.Printf("prefix KV = %.1f GB, recompute = %.2f s\n\n", gb, recompute)

	tiers := []struct {
		name string
		gbs  float64 // usable one-way bandwidth, GB/s (assumed)
	}{
		{"CPU memory over NVLink-C2C (Vera Rubin)", 900},
		{"CPU memory over NVLink-C2C (Grace Hopper)", 450},
		{"CPU memory over PCIe Gen6 x16", 110},
		{"CPU memory over PCIe Gen5 x16", 55},
		{"CXL memory pool (one x16 link)", 50},
		{"remote node over one 400 Gb/s RDMA NIC", 45},
		{"local NVMe (4 drives)", 25},
		{"local NVMe (1 drive)", 7},
	}
	for _, t := range tiers {
		load := gb / t.gbs
		verdict := "load"
		if load > recompute {
			verdict = "recompute"
		}
		fmt.Printf("%-42s %6.2f s  → %-9s  link feeds %6.1f such prefixes/s\n",
			t.name, load, verdict, t.gbs/gb)
	}
}

Output:

prefix KV = 8.2 GB, recompute = 2.50 s

CPU memory over NVLink-C2C (Vera Rubin)      0.01 s  → load       link feeds  109.9 such prefixes/s
CPU memory over NVLink-C2C (Grace Hopper)    0.02 s  → load       link feeds   54.9 such prefixes/s
CPU memory over PCIe Gen6 x16                0.07 s  → load       link feeds   13.4 such prefixes/s
CPU memory over PCIe Gen5 x16                0.15 s  → load       link feeds    6.7 such prefixes/s
CXL memory pool (one x16 link)               0.16 s  → load       link feeds    6.1 such prefixes/s
remote node over one 400 Gb/s RDMA NIC       0.18 s  → load       link feeds    5.5 such prefixes/s
local NVMe (4 drives)                        0.33 s  → load       link feeds    3.1 such prefixes/s
local NVMe (1 drive)                         1.17 s  → load       link feeds    0.9 such prefixes/s

How to read it:

  • For one request, loading beats recomputing on every tier. That is why KV tiering became an engine feature.
  • Under load, the right column decides. An agent fleet returning 20 long sessions per second overwhelms PCIe Gen5 and one NIC, but not a coherent link. That is the storage-bandwidth wall that DualPath (24.c) attacks by using more machines’ links at once.
  • The bandwidths are assumptions; Vera’s 1.8 TB/s is a quoted per-link figure and the per-direction share is assumed here. Measure your own links.

7. Performance implications#

  • The cheapest byte is the one you do not move: compression (24.c, 24.d) and sparse reads (24.b) come before new tiers.
  • Coherent CPU memory makes “fetch” nearly always beat “recompute” for KV; PCIe and network tiers win per request and lose under burst load.
  • Every disaggregation step trades link bandwidth for flexibility; check the link first.

8. Production implications#

  • Plan on what ships: HBM4, coherent CPU memory, RDMA and NVMe tiers, SRAM decode tiers via clouds. Treat CXL pools, HBF and PIM as things to prototype, not to depend on.
  • Size KV tiers by bandwidth under burst, not just capacity.
  • Watch the software, not just the silicon. A new tier is useful only when engines and KV connectors (19.b) support it.

9. Common mistakes#

  1. Planning a fleet around a roadmap item (Rubin CPX, HBF, CXL pools) as if it had shipped.
  2. Sizing a KV tier by capacity alone.
  3. Assuming every disaggregation is a win, ignoring the link and the load.
  4. Comparing CXL or SSD results against weak baselines and calling it a speedup.
  5. Forgetting that on-GPU compression and sparsity often beat any new tier.

10. Hands-on exercise#

  1. Run tiers.go. Change the model to DeepSeek-V4-style compressed attention, about 10 KiB per token at long context (use 10,240 bytes). Which tiers still matter?
  2. Suppose 64 agent sessions of 50k tokens resume within one second on one node. Which tiers can feed them? How many PCIe Gen5 links would you need?
  3. For a Vera Rubin NVL72 rack (about 20.7 TB HBM4, 54 TB LPDDR5X), estimate how many 128k-token sessions of a GQA-8, FP8 model (96 KiB per token) could be kept warm in each tier.
  4. Pick one SPECULATIVE item from section 1 and list what evidence would move it to EMERGING.
  5. Write your own ranked list of what would change inference most in three years. Date it, and revisit it.

11. Interview questions#

  1. Why is inference fundamentally a memory problem?
  2. What does a coherent CPU–GPU link change about KV tiering and expert offload?
  3. Disaggregation, generalised: what is the pattern and what is the counter-argument?
  4. Why is LLM decode a good match for processing in memory, and why has PIM not taken over?
  5. What would high bandwidth flash be good for, and what would worry you about it?
  6. How do you tell a roadmap item from a product when planning hardware?

12. Further reading#

Checked on 13 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in