Home / Learn / Chiplets and Memory / What Is CXL (Compute Express Link)?
On this page
The problem it addressesWhere it came fromHow it relates to PCI ExpressThe three protocolsThree types of deviceMain usesHow the standard has developedBenefitsLimitationsCXL in AI systemsCXL and other interconnectsCommon questionsRelated guidesWhat Is CXL (Compute Express Link)?
CXL, short for Compute Express Link, is an open standard for connecting processors to memory, accelerators and other devices at high speed and low latency. It runs over the same physical connections as PCI Express and adds protocols that let a processor treat a connected device’s memory much like its own. Its best-known use is expanding and pooling memory: adding capacity beyond what a server’s memory slots allow and sharing it among servers.
The problem it addresses
Servers have long connected memory directly to the processor through dedicated memory channels. That arrangement is fast and inflexible.
- Limited capacity. A processor has a fixed number of memory channels and slots.
- Stranded memory. Each server’s memory belongs to that server. If one server’s memory sits idle while another runs short, nothing can be done.
- Cost. Memory is one of the most expensive parts of a server, and much of it is underused.
- Accelerators need closer access. Devices such as accelerators benefit from sharing memory with the processor efficiently.
CXL provides a standard way to attach memory and devices that is more flexible than direct memory channels and much faster than ordinary input and output.
Where it came from
CXL was introduced in 2019, initially developed by Intel and then handed to an industry consortium. The consortium now includes essentially all the major processor, memory and system companies. Earlier competing efforts in the same area were merged into it, leaving CXL as the industry’s common standard.
How it relates to PCI Express
CXL uses the PCI Express physical layer: the same electrical signalling and connectors. When a device is plugged in, the processor and device negotiate whether to speak plain PCI Express or CXL.
This reuse is a large part of why CXL has been adopted. Existing infrastructure works, and new generations of CXL follow new generations of PCI Express to higher speeds.
The three protocols
CXL defines three protocols that share a link.
| Protocol | Purpose |
|---|---|
| CXL.io | Device discovery, configuration and ordinary input and output. Functionally the same as PCI Express. |
| CXL.cache | Lets a device access and cache the host processor’s memory with low latency |
| CXL.mem | Lets the host processor access memory located on the device |
CXL.cache and CXL.mem are what distinguish CXL. They use a lighter, faster path than ordinary input and output, so that access feels close to that of normal memory.
Three types of device
| Type | Description | Protocols used | Example |
|---|---|---|---|
| Type 1 | Accelerator without its own memory for the host to use | CXL.io, CXL.cache | Smart network interface |
| Type 2 | Accelerator with its own memory | CXL.io, CXL.cache, CXL.mem | GPU or other accelerator |
| Type 3 | Memory device | CXL.io, CXL.mem | Memory expansion module |
Type 3 devices are the most widely deployed so far.
Main uses
Memory expansion. A CXL memory module adds capacity to a server beyond its normal slots. This helps workloads that need very large amounts of memory.
Memory pooling. A shared pool of memory is connected to several servers through a CXL switch. Memory is assigned to whichever server needs it and reassigned as needs change. Less memory sits idle.
Memory tiering. CXL-attached memory is somewhat slower than directly attached memory. Systems treat it as a second tier: frequently used data stays in the fastest memory, and less-used data moves to the CXL tier.
Memory sharing. Later versions allow several servers to access the same region of memory at once.
Accelerator attachment. Accelerators can share memory with the processor coherently, which avoids copying data back and forth.
How the standard has developed
| Version | Year | Main additions |
|---|---|---|
| 1.0 and 1.1 | 2019 | Direct connection between a processor and a device |
| 2.0 | 2020 | Switching, memory pooling, support for persistent memory, link encryption |
| 3.0 and 3.x | 2022 onward | Double the speed, multi-level switching, fabrics, memory sharing, peer-to-peer access |
| 4.0 | 2025 | A further doubling of speed, following PCI Express 7.0 |
Benefits
- More memory per server.
- Better utilization. Pooling reduces the amount that must be bought.
- Lower cost. Including the option to reuse older, cheaper memory types on a CXL device.
- Flexibility. Memory and compute can be scaled separately.
- An open standard with broad industry support.
Limitations
- Added latency. Access through CXL is slower than through a direct memory channel, by an amount comparable to reaching memory attached to another processor socket. Through switches it is slower still.
- Software support. Operating systems and applications need to manage tiered and pooled memory sensibly.
- Ecosystem maturity. Memory expansion is available. Pooling and fabrics are at earlier stages.
- Reliability. A shared memory pool is a shared point of failure.
- Cost of switches and controllers.
CXL in AI systems
AI workloads place heavy demands on memory.
- Large memory footprints for data preparation, vector databases and in-memory analytics that support AI applications.
- A tier for model state. In language model inference, the cached state of conversations is large and often idle. A CXL tier can hold it more cheaply than accelerator memory, with faster retrieval than storage.
- Sharing data between processors and accelerators without copying.
CXL does not replace the high-bandwidth memory attached directly to AI accelerators. That memory is far faster and serves the accelerator’s own computation. CXL adds capacity at the system level.
CXL and other interconnects
CXL connects processors to memory and devices within a server or rack. It is distinct from the networks that connect servers to each other, and from the standards designed specifically to link AI accelerators. These address different parts of a system and are used together.
Common questions
What does CXL stand for?
Compute Express Link.
Is CXL the same as PCIe?
No. CXL uses the PCI Express physical layer and adds its own protocols for memory access and caching. A CXL port can also operate as a standard PCI Express port.
What is CXL mainly used for?
Expanding the memory available to a server and, increasingly, pooling memory so it can be shared among several servers.