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.
| Protocol | Purpose | Direction of access |
|---|---|---|
| CXL.io | Discovery, configuration, interrupts, DMA | Equivalent to PCIe transactions |
| CXL.cache | Device caches host memory coherently | Device to host memory |
| CXL.mem | Host reads and writes device-attached memory | Host to device memory |
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 type | Protocols used | Typical device | Main benefit |
|---|---|---|---|
| Type 1 | CXL.io and CXL.cache | SmartNIC or accelerator without local memory | Coherent access to host memory |
| Type 2 | CXL.io, CXL.cache and CXL.mem | GPU or FPGA with on-board memory | Shared coherent memory in both directions |
| Type 3 | CXL.io and CXL.mem | Memory expander or memory pool | Extra capacity and bandwidth |
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.
| Version | PCIe base | Raw rate per lane | Key capability |
|---|---|---|---|
| CXL 1.0 and 1.1 | PCIe 5.0 | 32 GT/s | Direct-attached devices |
| CXL 2.0 | PCIe 5.0 | 32 GT/s | Single-level switching, memory pooling, IDE security |
| CXL 3.0 | PCIe 6.0 | 64 GT/s | Fabrics, multi-level switching, memory sharing |
| CXL 3.1 and 3.2 | PCIe 6.x | 64 GT/s | Fabric management, security and RAS refinements |
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 tier | Typical load latency | Capacity scaling | Attachment |
|---|---|---|---|
| Local DDR5 DIMM | 80-120 ns | Limited by channels and slots | Integrated memory controller |
| HBM | Similar to DRAM, far higher bandwidth | Fixed at manufacture | On-package stacks |
| Remote NUMA node | 130-200 ns | Other socket’s slots | Inter-socket link |
| CXL direct-attached | 170-250 ns | Add cards or E3.S modules | CXL link from root port |
| CXL through a switch | Roughly 250-400 ns or more | Shared pool across hosts | CXL 2.0 or 3.x switch |
| NVMe SSD | Tens of microseconds | Very large | PCIe block storage |
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.