Shared CXL memory comes with a software tax — a real four-server test found locks cost 3–5 µs each
UT Arlington and Intel measured software sync costs on a real four-host shared CXL memory pool, as vendors eye CXL for AI KV cache.
A recent study conducted by researchers at the University of Texas at Arlington and Intel examined the performance of four servers sharing a single pool of CXL (Cache-coherent Transactional Remote Memory) memory. The findings, presented at Supercomputer 2026 (SC26), revealed that the absence of cross-host cache coherence and atomic operations on a real four-host CXL shared-memory system results in significant lock costs.
These costs manifest as a 3-5µs delay for each lock, which occurs every time servers access the same data. The study used four 86-core Intel Xeon 6787P servers, each equipped with 256GB of DRAM, connected via PCIe 5.0 to a single CXL memory box. Notably, the setup did not exhibit synchronized CPU caches or hardware atomics between servers, necessitating the use of software mechanisms like Lamport’s fast mutex for locks.
The researchers discovered that the lock acquisition penalty was approximately ten times higher than local hardware spin locks. Additionally, there was a visibility cost of about 1µs for one-way cross-host visibility, which was slower than an RDMA write on the 400Gb/s InfiniBand link. While a local compare-and-swap took around 100 nanoseconds, a lock's median was 3.7µs when uncontested, but increased to 132µs at the 95th percentile when multiple servers competed for the same lock.
To illustrate the impact, the researchers ran a breadth-first search (BFS) benchmark, a standard graph algorithm, on the configured servers. Surprisingly, the four-server configuration did not yield any performance benefits compared to a single server, and in fact, the runtime was slower by approximately 35%. On the other hand, some workloads, such as hash tables with independent buckets and per-host allocators, demonstrated almost linear scaling when additional hosts were added to the system.
However, other workloads, like triangle counting, experienced a more than 50% reduction in runtime when scaling from one to four hosts. The results highlight the limitations of shared CXL memory systems and the need to address the associated lock costs and visibility delays to fully realize the potential benefits of this technology.
Rewritten by urgent.news; may contain errors — check the original.
Source: tomshardware.com