NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Full-System Simulation Framework for CXL-Based SSD Memory System

Yaohui Wang, Zicong Wang, Fanfeng Meng, Yanjing Wang, Yang Ou, Lizhou Wu, Wentao Hong, Xuran Ge, Jijun CaoarXiv 2025 · DOI

Abstract

Modern data-intensive workloads, such as Large Language Models (LLMs), are increasingly constrained by the "memory wall," where DRAM capacity and cost cannot keep pace with demand. Memory disaggregation via the Compute Express Link (CXL) protocol offers a solution by allowing Solid State Drives (SSDs) to act as extended system memory. However, the significant latency gap between DRAM and flash storage poses a major challenge. This paper presents CXL-SSD-Sim, the first open-source full-system simulation framework designed to model CXL-based SSD memory systems. By integrating a DRAM cache layer, the framework demonstrates a path toward cost-effective, high-capacity memory expansion with performance levels approaching traditional memory tiers.

Introduction

The demand for terabyte-scale memory in AI and big data applications has outstripped the capabilities of standard DRAM. While memory disaggregation—decoupling memory resources from the CPU—is a promising architectural shift, utilizing SSDs as extended memory introduces two primary hurdles. First, the latency discrepancy is vast: SSDs operate in microseconds, whereas DRAM operates in nanoseconds. Second, the lack of mature tooling for CXL technology makes physical prototyping expensive and simulation difficult. Existing simulators often rely on simplified models that fail to capture the intricate interactions between processors, memory networks, and storage hardware.

Methodology: The CXL-SSD-Sim Framework

To address these challenges, we developed CXL-SSD-Sim by bridging two established simulation environments: gem5 for full-system CPU and memory simulation, and SimpleSSD for high-fidelity storage modeling.

The framework incorporates several key technical components:

  • CXL.mem Protocol Parsing: A custom layer intercepts CPU load/store instructions and translates them into 64-byte CXL flits.
  • Home Agent Bridge: Implemented within gem5, this component manages address mapping and protocol conversion between the system bus and the CXL device.
  • DRAM Cache Layer: A configurable DRAM cache within the CXL device mitigates SSD latency and manages the granularity mismatch between 64-byte CPU cache lines and 4KB SSD pages.
  • Custom Kernel Driver: A Linux-level driver enables the operating system to treat the CXL-SSD as a standard memory resource via interfaces like mmap.

The overall architecture of the CXL-SSD-Sim framework is depicted in Figure 1.

Key Insights: Addressing Granularity and Latency

A central challenge in using SSDs as memory is the "granularity mismatch." CPUs communicate in 64-byte cache lines, while SSDs operate on 4KB pages. Without an intermediary cache, a single memory update would trigger a massive read-write amplification, severely degrading performance.

Our findings indicate that a DRAM cache is mandatory for CXL-SSD systems. A raw CXL-SSD without caching exhibits a latency of approximately 3900ns, making it unusable for general memory tasks. However, integrating an LRU-managed DRAM cache reduces latency to approximately 380ns, bringing it within the range of CXL-based DRAM (350ns-380ns). Furthermore, in workloads with high temporal locality, such as key-value stores, the choice of caching policy is critical. Our evaluations show that the Least Recently Used (LRU) policy consistently outperforms FIFO or 2Q strategies.

Experimental Results

The framework was evaluated using synthetic benchmarks (STREAM, membench) and real-world applications (Viper key-value store). We compared five device configurations: local DRAM, CXL-DRAM, Persistent Memory (PMEM), CXL-SSD without cache, and CXL-SSD with an LRU cache.

Bandwidth Performance

As shown in Figure 2, the CXL-SSD with an LRU cache achieved approximately 65% of local DRAM bandwidth across various STREAM kernels (Copy, Scale, Add, Triad). This performance level confirms that cached CXL-SSDs are a viable tier for capacity expansion in memory-constrained environments.

Normalized bandwidth comparison across different memory devices.

Latency and Throughput

Latency tests revealed that the cached CXL-SSD (381ns) is competitive with PMEM (355ns). In throughput tests using the Viper key-value store, the cached CXL-SSD outperformed the non-cached version by 7 to 10 times. However, performance remains sensitive to data granularity; as key-value pair sizes increased from 216B to 532B, throughput dropped by 20-30% due to increased cache miss rates.

Limitations and Future Directions

While CXL-SSD-Sim provides a robust foundation for research, several areas remain for future exploration. The "cache miss penalty" remains significant, as a miss incurs full microsecond-level SSD latency, potentially stalling the CPU. Additionally, the long-term endurance and wear-leveling implications of using SSDs as volatile memory require further quantification. Future work should also focus on optimizing the Linux kernel's memory management to be "CXL-aware," enabling more intelligent page migration between local DRAM and CXL-SSD tiers based on access patterns.

Summary updated

BibTeX
@misc{wang2025full,
  author = {Yaohui Wang and Zicong Wang and Fanfeng Meng and Yanjing Wang and Yang Ou and Lizhou Wu and Wentao Hong and Xuran Ge and Jijun Cao},
  title = {{A Full-System Simulation Framework for CXL-Based SSD Memory System}},
  year = {2025},
  eprint = {2501.02524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.02524},
}
Figure