Optimizing Tree-structure Indexes for CXL-based Heterogeneous Memory with SINLK

Haoru Zhao, Mingkai Dong, Fangnuo Wu, Haibo ChenarXiv 2025 · DOI

Abstract

Compute Express Link (CXL) is emerging as a critical technology for expanding memory capacity in modern data centers. However, the resulting heterogeneous memory (HM) environment, consisting of fast local DRAM and slower CXL-attached memory, poses challenges for performance-sensitive data structures like tree-based indexes. This paper presents SINLK, a tree-aware data placement scheme that optimizes index performance by managing data at node-level granularity and enforcing structural awareness. Evaluation shows that SINLK achieves up to a 71% throughput boost and an 81% reduction in tail latency over existing page-level tiering solutions.

Introduction: The CXL Performance Gap

Modern data centers increasingly utilize Compute Express Link (CXL) to create a unified, cache-coherent address space across local and remote memory resources. This creates a Heterogeneous Memory (HM) hierarchy where "fast" local DRAM coexists with "slow" CXL-attached memory.

CXL Architecture and Performance Gap

As shown in Figure 4, while CXL provides capacity expansion, it introduces a significant performance gap: CXL memory typically exhibits approximately 2x the latency and only 60% of the bandwidth of local DRAM. Existing system-level tiering strategies, such as MEMTIS, often fail to optimize tree-structured indexes due to two primary issues:

  1. Granularity Mismatch: Page-level management (typically 4KB) is too coarse for tree nodes, which are often much smaller. This leads to inefficient use of fast memory when "hot" and "cold" nodes share the same page.
  2. Structural Ignorance: Standard schemes treat data objects independently. In a tree, access follows paths; a single slow node in an access path can bottleneck the entire traversal, even if subsequent nodes are in fast memory.

SINLK: Tree-Aware Data Placement

To address these challenges, the authors propose SINLK, which introduces several key innovations:

  • Node-Grained Placement: SINLK manages data at the unit of the tree node, leveraging CXL’s byte-addressable nature to avoid the inefficiencies of page-level migration.
  • Leaf-Centric Access Tracking: To minimize critical-path overhead, SINLK tracks access frequency only at leaf nodes. Since every successful search terminates at a leaf, leaf hotness serves as an efficient proxy for the hotness of the entire access path.
  • Single-Boundary Structure: SINLK enforces a principle where if a node is placed in fast memory, all its ancestors must also reside in fast memory. This ensures that fast memory resources are utilized where they provide the most cumulative benefit to path traversal.
  • Hyper Watermark Mechanism: A background coordinator monitors real-time memory usage and dynamically adjusts migration parameters to prevent performance spikes during bursty workloads.

Evaluation and Results

The researchers evaluated SINLK using synthetic microbenchmarks and standard macrobenchmarks like the Yahoo! Cloud Serving Benchmark (YCSB), integrating it into high-performance indexes such as Masstree and ART.

P99 Latency across YCSB Workloads

As illustrated in Figure 6, SINLK-optimized indexes significantly reduce tail latency across various YCSB workloads. Key findings include:

  • Throughput: SINLK outperformed default Linux tiering by 50%–82% and state-of-the-art solutions like MEMTIS by up to 71%.
  • Latency: P99 latency was reduced by up to 81% in real-world Alibaba trace workloads.
  • Adaptability: The system can identify new hot paths and recover full performance within 17 seconds after a workload shift.
  • Efficiency: Background management tasks are lightweight, consuming less than 0.3% of total CPU runtime.

Conclusion

SINLK demonstrates that "tree-awareness" is essential for optimizing index performance in CXL-based heterogeneous memory environments. By aligning data placement with the hierarchical nature of trees and managing memory at node-level granularity, SINLK provides substantial performance gains with minimal code modifications. Future work includes extending the design to multi-tier hierarchies and utilizing hardware features like Intel PEBS for even lower overhead tracking.

Summary updated

BibTeX
@misc{zhao2025optimizing,
  author = {Haoru Zhao and Mingkai Dong and Fangnuo Wu and Haibo Chen},
  title = {{Optimizing Tree-structure Indexes for CXL-based Heterogeneous Memory with SINLK}},
  year = {2025},
  eprint = {2507.18559},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.18559},
}
Figure