Abstract
As data centers adopt Compute Express Link (CXL) to integrate diverse memory media, managing the resulting hardware heterogeneity becomes a critical challenge. This paper introduces HeteroBox, an FPGA-based emulation platform that enables high-fidelity testing of CXL memory hierarchies with programmable latency and bandwidth. Building on this, the authors propose HeteroMem, a device-side management system that transparently migrates "hot" data to fast memory tiers. By offloading management logic to the CXL device or switch, HeteroMem eliminates CPU overhead and achieves performance gains of up to 16.2% across memory-intensive workloads.
Introduction
The rapid growth of data-intensive applications has led to increased demand for memory capacity, pushing the industry toward CXL-based memory expansion using media like PCM or ReRAM. However, this shift introduces two primary hurdles: an evaluation gap, where existing software simulators are too slow and NUMA-based emulation lacks accuracy, and management overhead, where software-driven tiering (e.g., via the OS) consumes significant CPU cycles and lacks the resolution needed for efficient data placement.
Methods
HeteroBox: The Emulation Platform
HeteroBox addresses the evaluation gap by utilizing a CXL-enabled FPGA (Intel Agilex) to intercept memory requests. It applies programmable delays and bandwidth throttling to mimic various CXL device "personalities." This allows a single physical FPGA to emulate complex topologies, such as a system with local DRAM and multiple remote CXL endpoints with varying performance characteristics.
HeteroMem: Device-Side Management
HeteroMem is a hardware logic layer designed to reside on the CXL device or switch. It consists of three core components:
- Remapping Unit: Translates Host Physical Addresses (hPA) to Device Physical Addresses (dPA), enabling transparent data movement without CPU intervention.
- Profiling Unit: Employs a space-efficient Count-Min Sketch to identify "hot" pages and a ping-pong bitmap for "cold" page detection in fast memory.
- Migration Unit: Executes data movement between tiers. By operating on the device side, it leverages internal FPGA bandwidth, avoiding congestion on the primary CXL link.
Evaluation and Results
The system was evaluated using an Intel 4th Gen Xeon CPU connected to an Intel Agilex FPGA. Benchmarks included memory-intensive workloads such as GUPS, Silo, Btree, XSBench, and graph processing (BC, PR).
Key Performance Insights
HeteroMem demonstrates significant advantages over traditional software-managed tiering. By moving intelligence to the hardware, the system achieves 12.9x higher migration bandwidth than CPU-managed methods. This efficiency translates to real-world performance: HeteroMem improved application speed by 5.1% to 16.2% compared to state-of-the-art solutions like TPP and NeoMem. Notably, in the Betweenness Centrality (BC) benchmark, HeteroMem achieved a 32.7% speedup over NeoMem.
Conclusion
HeteroMem proves that device-side management is a viable path for handling memory heterogeneity in CXL systems. By providing transparency to the OS and utilizing probabilistic profiling, it avoids the massive CPU taxes associated with software scanners. Future work will explore supporting larger page granularities and scaling the architecture for large-scale CXL 3.0 memory fabrics.
Summary updated