# Shared CXL memory across 4 servers costs 3-5 µs per lock

> **TL;DR:** Four Intel Xeon 6787P servers sharing one CXL box pay roughly 3-5 µs per shared-data lock, about an order of magnitude more than a local lock BFS takes 0.74 seconds on 4 machines, slower than the 0.55 seconds on a single machine, while a hash table scales almost linearly with machine count The researchers have not received confirmation from the vendor that their platform supports CXL 3.0 Back-Invalidate KV cache figures from SK hynix and Micron come only from demos so far, and no commercial switch has been confirmed to keep caches coherent across servers

- Original: https://migovi.com/en/cxl-memory-dung-chung-chi-phi-phan-mem/
- Author: [nth88](https://migovi.com/en/author/nth88/)
- Published: 2026-11-24T19:19:09+07:00
- Categories: AI, News, Technology
- Source: [Tom's Hardware](https://www.tomshardware.com/pc-components/dram/shared-cxl-memory-pools-come-with-steep-software-tax-that-could-stall-multi-server-scaling-ut-arlington-shares-real-world-test-that-measured-four-servers-sharing-the-same-pool-at-sc26)

---

Because CXL does not yet keep caches coherent across machines, software has to carry that burden. Some workloads even run slower with more servers, though AI KV cache still has a case.

## Testing on real hardware

Several vendors are pitching shared CXL memory as a home for AI KV cache, but few have measured what it costs when multiple servers read and write the same memory pool. Researchers from the University of Texas at Arlington and Intel did exactly that on real hardware and presented the results at Supercomputer 2026 (SC26). The system consists of 4 Intel Xeon 6787P servers, each with 86 cores and 256 GB of DRAM, connected over PCIe 5.0 to a single CXL memory box. According to the team's Peiran Du, the switch they used is the only commercial product they could buy, and it is what limits the system to 4 servers.

The sticking point is that this platform has no cache coherence between hosts and no hardware atomic operations across servers. Software therefore has to handle both. A writer must flush its cached copy out to the memory pool and wait for the flush to complete, while a reader must discard stale cached copies before reading. Locks are built from ordinary reads and writes, for example with Lamport's fast mutex algorithm. CXL 3.0 defines a hardware mechanism called Back-Invalidate, but the researchers have not received confirmation from the vendor that their platform supports it.

![Shared CXL memory hardware](https://migovi.com/wp-content/uploads/2026/11/cxl-memory-dung-chung-chi-phi-phan-mem-2.jpg)

## The price of locking data

A lock works like a traffic light for shared data: a machine that wants to modify something in the memory pool must acquire the lock first, and the others wait until it is released, so no two machines overwrite each other at the same time. Within a single server, the CPU handles this handoff in hardware in a fraction of a microsecond. Across servers, software has to do it. The measurements show each lock acquisition costs about 3-5 µs, roughly an order of magnitude more than a local spin lock, and that bill arrives every time 2 machines touch the same data.

In concrete terms, a local compare-and-swap takes about 100 ns, while a cross-server lock has a median of 3.7 µs without contention but reaches 132 µs at the 95th percentile when many machines fight over one lock. The latency for data written by one machine to become visible to another is 0.94 µs one way, lower than the 1.91 µs of an RDMA write over the system's own 400 Gb/s InfiniBand network, so the CXL link itself is not the culprit.

The cost shows up differently depending on the workload. Breadth-first search (BFS), a common benchmark, gains nothing from a second machine and runs slower on 4: 0.74 seconds versus 0.55 seconds on 1. Locks and barriers account for only about 3.5% of runtime. Most of the lost time comes from repeatedly pushing shared state out to the memory pool at every traversal level. By contrast, a hash table with independent buckets and a separate allocator for each machine scales throughput almost linearly as machines are added, and triangle counting in graphs cuts its runtime by more than half going from 1 to 4 machines.

## Why KV cache still draws CXL in

Those costs matter because shared CXL pools are emerging as a new home for KV cache, the record of conversation state an AI model keeps once it outgrows GPU memory and each server's DRAM. SK hynix has presented a design that moves KV cache between GPU servers through a shared memory pool, claiming a time to first token 2.6x faster than a conventional RDMA setup, P99 latency 3.0x lower, and throughput 1.9x higher. Micron demonstrated its Abaco reference design at the CXL Pavilion at SC26. It combines shared CXL memory for rack servers and GPUs, and the company says it delivers a 10-30x improvement on agentic AI workloads, with famfs support for applications such as NVIDIA's Dynamo.

![SK hynix CMM-DDR5 CXL memory module at OCP Global Summit 2026](https://migovi.com/wp-content/uploads/2026/11/cxl-memory-dung-chung-chi-phi-phan-mem-1.jpg)

*SK hynix CMM-DDR5 module (Photo: SK hynix)*

The need is real, even though KV cache per token is shrinking. NVIDIA Research's Vikram Sharma Mailthody said his analysis of open models on Hugging Face shows KV size per token falling by 50% every 12 months, a cumulative 78x reduction: a 128K context that needed about 64 GB 3 years ago now takes under 1 GB. Even so, context lengths are heading toward millions of tokens, so total demand keeps rising. Agents add to it, because a session is often called again after roughly 2 minutes when a tool returns its result. According to a presentation from Argonne National Laboratory and RIT based on public AI serving data, a 160 GiB buffer holds only 1% of the context, and the GPU has to recompute the other 99%.

That makes this more a capacity problem than a speed problem. As Mailthody put it, memory capacity is becoming the dominant factor, while memory latency is not yet seen as the main issue. Price plays a part too: last year a 128 GB DIMM cost more than 4 times as much as a 64 GB one, and Intel's Anil Godbole argues that adding capacity beyond DIMM slot limits, even by reusing DDR4, strengthens the case for CXL. The KV cache handoff pattern is write once, read many times, exactly the kind of workload that scaled well in testing, although UT Arlington did not measure KV cache directly. The team behind the OCEAN CXL emulator also argues that software cache coherence is sufficient for read-heavy workloads, while hardware becomes necessary as writes grow, with an 11x improvement on the Tigon database workload when hardware coherence is emulated.

Micron identifies 2 main failure modes: the writer's data never reaches the pool, or the reader never sees the update. The fix is for the writer to flush data before publishing a block, and for the reader to invalidate its own cache lines before reading. These are precisely the costs UT Arlington measured. Micron reduces the overhead by flushing each slot only once, since KV cache is content-addressed and any slot that has not changed stays consistent after the first flush. Notably, neither failure crashes the system. Instead, the returned data looks plausible but the result is subtly wrong, with some requests producing incorrect tokens when the cache is under pressure.

## Remaining limits

![CXL memory - Lightelligence PHOTOWAVE™ Optical PCIe/CXL Interconnect - OCP 3.0 SFF Card](https://migovi.com/wp-content/uploads/2026/11/cxl-memory-dung-chung-chi-phi-phan-mem-3.jpg)

*Lightelligence PHOTOWAVE™ Optical PCIe/CXL Interconnect - OCP 3.0 SFF Card*

Godbole also points out that CXL memory pools currently reach only within a single rack, not across a whole data center. Marvell, Penguin Solutions, and vendors such as Lightelligence have demonstrated or announced memory expansion and sharing over optical links, which could extend reach beyond one rack. CXL is also not a protocol built for moving large blocks of data. It works with small 64-byte reads and writes, closer to how a CPU uses RAM, so RDMA is more efficient for bulk transfers. On the other hand, the Beluga research system, published on arXiv a year ago, places KV cache in a pool built on a commercial CXL switch. It cut time to first token by 89.6% and raised throughput 7.35x over an RDMA setup once the cache was full, which suggests sensible optimization could still make the technology more useful.

What makes CXL hard to predict is how it is used in practice, because according to UT Arlington's Jia Rao there is a gap between the CXL specification and how vendors implement it. SK hynix's second-generation CMM-DDR5, with 256 GB of capacity and CXL 3.2, has only been demonstrated so far, and the device its KV cache design uses to pick which data to send is still a "research prototype" in Younghoon Min's words. Du expects Back-Invalidate to reduce the software overhead the team measured, but it adds latency of its own and could be fairly expensive. Real systems will therefore likely need to combine hardware coherence with software techniques such as the ones Micron is using.

**MIGOVI VIEWPOINT**

Migovi reads this benchmark as a reminder that polished demo numbers do not tell the whole story about the cost of many machines writing to one memory pool. Even a common graph benchmark runs slower when servers are added, and figures such as 2.6x or 10-30x are all self-reported by vendors for now. The idea of using CXL for KV cache still has solid grounds, since the write-once, read-many pattern fits what has scaled well and the real problem is capacity rather than speed. For readers in Vietnam, this mainly concerns organizations building large-scale AI systems: if you are weighing CXL, wait until a commercial switch is confirmed to support cache coherence across servers before committing to an investment, rather than relying on demo figures.

Source: [Tom's Hardware](https://www.tomshardware.com/pc-components/dram/shared-cxl-memory-pools-come-with-steep-software-tax-that-could-stall-multi-server-scaling-ut-arlington-shares-real-world-test-that-measured-four-servers-sharing-the-same-pool-at-sc26)
