CXL

Also known as: Compute Express Link

On this page 7

CXL (Compute Express Link) is an open, cache-coherent interconnect standard that runs over the PCI Express physical layer and lets CPUs, accelerators and memory expansion devices share memory with low latency. In computer memory and server hardware, CXL is the main technology for adding capacity and bandwidth beyond the DIMM slots of a processor, and for pooling memory across several hosts.

The specification is maintained by the CXL Consortium, founded in 2019 by major processor, server and cloud vendors. Competing efforts such as Gen-Z and OpenCAPI were later folded into it, which made CXL the industry’s common path toward composable, disaggregated memory.

How CXL carries memory traffic over PCIe

CXL works by reusing the PCIe physical layer and adding its own transaction protocols on top. A CXL-capable slot negotiates at link training whether the attached device speaks plain PCIe or CXL, so the same physical slot and cabling serve both. Once CXL mode is active, three sub-protocols are multiplexed over the link.

The key difference from ordinary PCIe is hardware cache coherency. A PCIe device must copy data through DMA buffers, while a CXL device can cache host memory, or expose its own memory, under the same coherency rules as the CPU cores. Software sees CXL memory as plain load/store addressable memory, not as a storage or I/O device.

ProtocolPurposeDirection of access
CXL.ioDiscovery, configuration, interrupts, DMAEquivalent to PCIe transactions
CXL.cacheDevice caches host memory coherentlyDevice to host memory
CXL.memHost reads and writes device-attached memoryHost to device memory
The three CXL sub-protocols

CXL device types and their uses

The specification defines three device types, distinguished by which sub-protocols they implement. CXL.io is mandatory for all of them, because it handles enumeration and management.

For the memory subsystem, Type 3 devices matter most. A Type 3 memory expander contains its own memory controller and DRAM, typically DDR4 or DDR5, and presents that capacity to the host. Operating systems usually expose it as a CPU-less NUMA node, so applications can use it without modification.

Device typeProtocols usedTypical deviceMain benefit
Type 1CXL.io and CXL.cacheSmartNIC or accelerator without local memoryCoherent access to host memory
Type 2CXL.io, CXL.cache and CXL.memGPU or FPGA with on-board memoryShared coherent memory in both directions
Type 3CXL.io and CXL.memMemory expander or memory poolExtra capacity and bandwidth
CXL device types

CXL specification versions

Each CXL generation adds topology and sharing features on top of a faster PCIe base. CXL 1.1 supports only direct attachment to one host. CXL 2.0 introduced switching and memory pooling, so one memory device can be partitioned among several servers, plus link encryption. CXL 3.0 moved to the PCIe 6.0 physical layer at 64 GT/s and added multi-level switching, fabric topologies and true memory sharing between hosts.

VersionPCIe baseRaw rate per laneKey capability
CXL 1.0 and 1.1PCIe 5.032 GT/sDirect-attached devices
CXL 2.0PCIe 5.032 GT/sSingle-level switching, memory pooling, IDE security
CXL 3.0PCIe 6.064 GT/sFabrics, multi-level switching, memory sharing
CXL 3.1 and 3.2PCIe 6.x64 GT/sFabric management, security and RAS refinements
Main CXL versions

Platform support lags the specification. The first server processors with CXL arrived in 2022 and 2023, supporting CXL 1.1 with selected 2.0 features, so real deployments today are mostly direct-attached Type 3 expanders.

CXL memory compared with other memory options

CXL memory sits between local DRAM and remote or storage-based tiers. An x16 CXL link on PCIe 5.0 offers roughly 64 GB/s per direction, comparable to one or two DDR5 channels. The cost is latency: a load from a direct-attached expander typically takes about 170-250 ns, versus roughly 80-120 ns for local DRAM, which is similar to a hop to another socket in a NUMA system.

Memory tierTypical load latencyCapacity scalingAttachment
Local DDR5 DIMM80-120 nsLimited by channels and slotsIntegrated memory controller
HBMSimilar to DRAM, far higher bandwidthFixed at manufactureOn-package stacks
Remote NUMA node130-200 nsOther socket’s slotsInter-socket link
CXL direct-attached170-250 nsAdd cards or E3.S modulesCXL link from root port
CXL through a switchRoughly 250-400 ns or moreShared pool across hostsCXL 2.0 or 3.x switch
NVMe SSDTens of microsecondsVery largePCIe block storage
Where CXL memory fits in the hierarchy

These figures vary with the controller design, platform and whether a switch is involved, so they should be treated as ranges, not guarantees.

Deploying CXL memory and its limitations

The strongest use cases are capacity-bound workloads: in-memory databases, large caches, virtual machine hosts and analytics jobs that run out of DIMM slots before they run out of bandwidth. Memory tiering in the operating system or hypervisor places hot pages in local DRAM and colder pages in CXL memory, which reduces the performance penalty.

  • Latency-sensitive workloads can slow down noticeably if hot data lands on CXL memory without tiering.
  • Firmware and BIOS support must be enabled; some platforms expose CXL memory only as special-purpose memory by default.
  • Pooling and sharing require switches and fabric managers, which are still maturing.
  • Reliability features such as error reporting and hot removal depend on the device and platform implementation.
  • Cost per gigabyte includes the controller and module form factor, so CXL is not automatically cheaper than larger DIMMs.

A common economic argument is reusing older DDR4 modules behind a CXL controller in DDR5 servers, which stretches existing inventory while adding capacity.

Understanding it simply

A processor normally keeps its working data in memory sticks plugged directly next to it, and there are only so many slots. CXL lets a server add more memory through the same kind of slot used for graphics and network cards, and the processor treats that memory almost like its own.

Think of a desk with a few drawers and a rolling cabinet beside it. The cabinet holds more, but reaching into it takes a little longer. CXL memory is that cabinet: more room, slightly slower access, and in newer versions a cabinet several desks can share.

Applied in practice

An infrastructure team runs an in-memory database on dual-socket servers whose 24 DIMM slots are already full with 64 GB DDR5 modules, giving 1.5 TB per server. Data growth means the database needs about 2 TB per node, and buying servers with larger, more expensive modules would require replacing all existing memory.

Instead, the team installs two CXL Type 3 memory expanders, each holding 256 GB, in PCIe 5.0 x16 slots. Linux exposes the added capacity as two CPU-less NUMA nodes, and kernel memory tiering keeps frequently accessed index pages in local DRAM. Benchmarks show query throughput within about 5-10 percent of an all-DIMM configuration, while the dataset now fits entirely in memory and disk reads disappear. The team avoids a full memory replacement and postpones buying additional servers.