使用 SINLK 优化基于 CXL 的异构内存中的树结构索引
Optimizing Tree-structure Indexes for CXL-based Heterogeneous Memory with SINLK
AI总结:
本文提出 CXL 原生、节点粒度的 SINLK 数据放置方案,通过匹配树结构特征与 CXL-HM 特性优化 B+tree 和 radix tree,显著提升吞吐并降低尾延迟。
摘要:
在快速内存(即 CPU 直连 DRAM)与慢速内存(例如远程 NUMA 内存、RDMA 连接内存、持久内存(PM))共存的异构内存(HM)上,优化树结构索引(例如 B+tree)的放置,对于在享受内存扩展的同时获得高性能至关重要。如今,基于 CXL 的异构内存(CXL-HM)因其高效率和内存语义而正在兴起。以往面向 HM 的树结构索引放置方案无法有效提升 CXL-HM 上的性能,因为它们不能适应硬件特性和语义的变化。此外,现有 CXL-HM 的页级数据放置方案由于树节点与页之间的粒度不匹配,对树结构索引并不高效。在本文中,我们主张采用一种 CXL 原生化、感知树结构的数据放置方案,以优化 CXL-HM 上的树结构索引。我们的关键洞察是,树结构索引在 CXL-HM 上的放置应当使树的固有特性与 CXL-HM 的特性相匹配。我们提出了 SINLK,这是一种面向 CXL-HM 上树结构索引、感知树结构且以节点为粒度的数据放置方案。借助 SINLK,开发者可以轻松地将现有树结构索引适配到 CXL-HM。我们已将 B+tree 和 radix tree 与 SINLK 集成,以证明其有效性。评估表明,在 YCSB 和真实工作负载中,与最先进的数据放置方案(例如 MEMTIS)以及经过 HM 优化的树结构索引相比,SINLK 将吞吐量最高提升 71%,并将 P99 延迟最高降低 81%。
英文摘要:
On heterogeneous memory (HM) where fast memory (i.e., CPU-attached DRAM) and slow memory (e.g., remote NUMA memory, RDMA-connected memory, Persistent Memory (PM)) coexist, optimizing the placement of tree-structure indexes (e.g., B+tree) is crucial to achieving high performance while enjoying memory expansion. Nowadays, CXL-based heterogeneous memory (CXL-HM) is emerging due to its high efficiency and memory semantics. Prior tree-structure index placement schemes for HM cannot effectively boost performance on CXL-HM, as they fail to adapt to the changes in hardware characteristics and semantics. Additionally, existing CXL-HM page-level data placement schemes are not efficient for tree-structure indexes due to the granularity mismatch between the tree nodes and the page. In this paper, we argue for a CXL native, tree-structure aware data placement scheme to optimize tree-structure indexes on CXL-HM. Our key insight is that the placement of tree-structure indexes on CXL-HM should match the tree's inherent characteristics with CXL-HM features. We present SINLK, a tree-structure aware, node-grained data placement scheme for tree-structure indexes on CXL-HM. With SINLK, developers can easily adapt existing tree-structure indexes to CXL-HM. We have integrated the B+tree and radix tree with SINLK to demonstrate its effectiveness. Evaluations show that SINLK improves throughput by up to 71% and reduces P99 latency by up to 81% compared with state-of-the-art data placement schemes (e.g., MEMTIS) and HM-optimized tree-structure indexes in YCSB and real-world workloads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。