A Novel Extensible Simulation Framework for CXL-Enabled Systems

Yuda An, Shushu Yi, Bo Mao, Qiao Li, Mingzhe Zhang, Ke Zhou, Nong Xiao, Guangyu Sun, Xiaolin Wang, Yingwei Luo, Jie ZhangarXiv 2024 · DOI

Introduction

Compute Express Link (CXL) is rapidly becoming the cornerstone of next-generation data center architectures, promising a unified, cache-coherent memory space across CPUs, GPUs, and memory expanders. However, the development of CXL-based systems is currently hindered by a significant "hardware gap." CXL 3.1 features, such as ultra-high scalability and port-based routing, are not yet widely available in physical hardware. Furthermore, existing simulation tools often fall short: remote NUMA nodes fail to capture protocol overheads, while standard simulators like gem5 or BookSim are typically too specialized to model full-scale, non-tree CXL fabrics effectively.

To address these challenges, researchers have introduced the Extensible Simulation Framework (ESF). ESF is an open-source tool designed to accurately model complex CXL 3.1 features with high fidelity, matching real-world hardware performance with error rates as low as 0.1%.

The ESF Architecture: Decoupled and Flexible

The core innovation of ESF lies in its two-layer, decoupled architecture, which separates the physical interconnect logic from the functional behavior of devices.

Interconnect and Device Layers

  1. Interconnect Layer: This layer manages the "where" of the simulation. By constructing a topology graph and utilizing Port-Based Routing (PBR), ESF can simulate arbitrary, non-tree connections. This is a critical advancement over traditional PCIe-centric simulators that are limited to tree-like structures.
  2. Device Layer: This layer handles the "what." It models specific CXL components such as switches and memory expanders. A standout feature is the Device Coherency Agent (DCOH), which implements customizable snoop filters to manage cache coherence directly on the device side, reflecting the Device-Managed Coherence (DMC) model of CXL.
The decoupled architecture of ESF, separating routing information in the Interconnect layer from functional components in the Device layer.

Extensibility through Integration

ESF is designed to be highly extensible, allowing it to integrate seamlessly with established simulation tools. This modularity enables researchers to leverage specialized logic for different system components:

  • gem5 Integration: ESF interfaces with gem5 to handle complex CPU and memory hierarchy logic.
  • DRAMsim3 and SimpleSSD: By wrapping these external objects, ESF can provide accurate timing for DRAM and high-performance storage within the CXL fabric.
Integration of ESF with gem5, DRAMsim3, and SimpleSSD through specialized wrappers and added simulation steps.

Key Insights from Simulation

The researchers used ESF to uncover several critical insights into CXL system performance:

  • Topologies and Scalability: Simulations demonstrated that traditional tree topologies become bottlenecks at the root port. In contrast, Spine-Leaf and Fully-Connected topologies provide significantly better scalability and predictable latency.
  • Snoop Filter Optimization: In DMC, the snoop filter's victim selection policy is vital. The study found that a Least Frequently Inserted (LFI) policy reduces invalidation counts by 15% compared to standard FIFO, as it better protects frequently accessed "hot" data.
  • PCIe 6.0 Full-Duplex Gains: ESF accurately models the simultaneous bidirectional data flow of PCIe 6.0. Mixing read and write requests can nearly double system bandwidth, a detail often overlooked by simpler NUMA-based emulation.

Performance and Validation

ESF was validated against a real-world CXL platform featuring an Intel Xeon Gold 6416H processor and a Montage MXC expander. The framework achieved an error rate between 0.1% and 10% for latency and bandwidth, far outperforming traditional emulation methods. Crucially, ESF maintains high performance; when integrated with gem5, it adds only about 2% simulation time overhead, compared to the 22% overhead seen with standard network models like Garnet.

Conclusion

The Extensible Simulation Framework (ESF) provides a much-needed high-fidelity tool for the CXL research community. By accurately modeling complex topologies and coherence protocols with minimal overhead, ESF enables the exploration of future data center architectures before hardware is commercially available. Future work will expand the framework to include deeper simulation of the CXL Fabric Manager (FM) for dynamic resource pooling.

The framework is available at https://github.com/pku-ccs/ESF.

Summary updated

BibTeX
@misc{an2024novel,
  author = {Yuda An and Shushu Yi and Bo Mao and Qiao Li and Mingzhe Zhang and Ke Zhou and Nong Xiao and Guangyu Sun and Xiaolin Wang and Yingwei Luo and Jie Zhang},
  title = {{A Novel Extensible Simulation Framework for CXL-Enabled Systems}},
  year = {2024},
  eprint = {2411.08312},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.08312},
}
Figure