Shared CXL memory pools come with steep software tax that could stall multi-server scaling

Shared CXL memory pools come with steep software tax that could stall multi-server scaling

Agents also add to the demand . Earlier in the conference, a workshop talk by Argonne National Laboratory and RIT researchers, based on public AI serving traces, showed that a “session calls again ~2 min later, once its tools return: a 160 GiB recency cache keeps 1% of its context,” needing the GPU to recompute the rest, or about 99%. Recomputation is significantly slower and more demanding, and memory is needed to cache more.

That makes it a capacity problem more than a speed problem. “Memory capacity is becoming a dominant factor. Memory latencies have not been seen as a primary problem yet,” Mailthody said. An agent’s context only has to survive a gap of a couple of minutes. It’s also ideal for any KV cache solution to be as inexpensive as possible, and given that a 128GB DIMM costs more than four times that of a 64GB DIMM last year. According to Intel’s Anil Godbole on SC26’s CXL panel, being able to add capacity past the DIMM slot limit — including reusing DDR4 — bolsters the case for CXL even further.

It doesn’t hurt that the KV cache handoff is write-once, read-many, which is the type of pattern that actually scaled in testing, although UT Arlington did not specifically test KV cache. Researchers behind OCEAN, a CXL emulator, backed this idea in the same paper session as UT Arlington, saying that software coherence is fine for read-heavy work, with hardware essential as writes climb. Its abstract reports that hardware coherence, at least in emulation, can give an 11x improvement at full coverage on Tigon database workloads.

Limitations still exist, which is why SK hynix, for one, is relying on “novel locking and coherence protocols” for its design. Hardware isn’t quite there yet, and Back-Invalidate might “be pretty costly,” Du said, suggesting that both hardware and software coherence may be required.

Micron, which built prototype KV cache sharing into Nvidia’s Dynamo, noted two primary failure cases in a CXL Consortium presentation last month: where the writer’s data never reaches the pool, and where the reader never sees the updates. The first can be fixed by producers flushing before blocks are published, so unflushed blocks can never be found. The second is fixed with a consumer flush, that is, invalidation of their cached lines, before reading. These are the fixes and costs that UT Arlington was measuring.

Micron cut its flushing cost by flushing each slot only once, which works because KV cache is content-addressed — a slot in the pool that hasn’t changed stays coherent after its first flush. Micron’s presentation also notes that neither failure causes a crash. Instead, the read returns plausible-looking data, and the output is wrong in subtle ways, with the wrong tokens on some requests under cache pressure.

Working against CXL as a solution is the fact that the memory pooling only reaches within a rack today, Godbole said; it doesn’t span a full data center. Marvell and Penguin Solutions, in collaboration and in addition to others like Lightelligence, have shown or announced memory expansion and pooling over optical links, which could stretch pooling past a single rack. CXL is also “not the protocol to ferry such big data,” Godbole added, as it’s built for smaller reads and writes, 64 bytes at a time, closer to how a CPU uses RAM. For bulk transfers, he said, RDMA is more efficient.

A research system called Beluga, in a paper published on arXiv a year ago, had KV cache in “a commercial CXL switch-based memory pool” with time to first token cut by 89.6% and throughput raised 7.35x compared with an RDMA-based setup once its cache was filled. This suggests some optimization could improve the usefulness of the technology, too.

CXL is clearly a hit or miss with how it is actually used being a main concern, with “a gap between the [CXL] spec and the implementation from different vendors,” according to UT Arlington’s Jia Rao. SK hynix’s second-generation CMM-DDR5, at 256GB and using CXL 3.2, has only been shown, and the device its KV cache design uses to select what to send is still what the company’s Younghoon Min called a “research prototype.” These are early times, and the enterprise landscape is simultaneously changing quickly.

On paper, shared CXL pools do fit the KV handoff idea, but until a commercial switch ships with confirmed coherence across servers, the best we have is KV cache numbers from vendor demos and research prototypes. Back-Invalidate should cut the software overhead UT Arlington measured, but Du expects it to add delays of its own; production systems would likely need a combination of hardware coherence and software approaches like Micron’s.

Shane Downing Social Links Navigation Contributing Writer Shane Downing is a Contributing Writer for Tom’s Hardware, covering consumer storage, PC hardware, and AI.

Key considerations

  • Investor positioning can change fast
  • Volatility remains possible near catalysts
  • Macro rates and liquidity can dominate flows

Reference reading

More on this site

Informational only. No financial advice. Do your own research.

Leave a Comment