arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.00323cs.DS
收藏

用Sentinels提高非易失性存储器B ~+树的搜索性能

Boosting the Search Performance of B+-tree for Non-volatile Memory with Sentinels

Chongnan Ye, Chundong Wang

摘要:

下一代非易失性存储器(NVM)由于兼具DRAM的字节寻址能力和磁盘的持久性,正作为一种新的存储器层次大步迈进计算机系统。研究人员和实践者已经考虑通过将NVM放置在存储器总线上以供CPU直接加载和存储数据来构建持久性存储器。结果,已经为NVM开发了高速缓存友好的数据结构。其中之一是流行的B+树。最先进的NVM B+树主要集中在写操作(插入和删除)的优化上。然而,搜索对于B+树来说是至关重要的。不仅搜索密集型工作负载受益于优化的搜索,而且插入和删除也依赖于前面的搜索操作来进行。在本文中,我们仔细研究了一个排序的B+树节点,跨越连续的缓存线。这样的高速缓存行表现出单调增加的趋势,并且可以通过估计关键字落入的范围来加速跨它们搜索目标关键字。为此,我们构造了一个探测哨兵阵列,其中哨兵代表B+树节点的每个缓存行。检查Sentinel阵列可避免扫描不必要的缓存行,从而显著减少搜索的缓存未命中。定量评估表明,使用哨兵阵列提高了最先进的NVM B+树的搜索性能高达48.4%,而维护哨兵阵列的成本很低。

英文摘要:

The next-generation non-volatile memory (NVM) is striding into computer systems as a new tier as it incorporates both DRAM's byte-addressability and disk's persistency. Researchers and practitioners have considered building persistent memory by placing NVM on the memory bus for CPU to directly load and store data. As a result, cache-friendly data structures have been developed for NVM. One of them is the prevalent B+-tree. State-of-the-art in-NVM B+-trees mainly focus on the optimization of write operations (insertion and deletion). However, search is of vital importance for B+-tree. Not only search-intensive workloads benefit from an optimized search, but insertion and deletion also rely on a preceding search operation to proceed. In this paper, we attentively study a sorted B+-tree node that spans over contiguous cache lines. Such cache lines exhibit a monotonically increasing trend and searching a target key across them can be accelerated by estimating a range the key falls into. To do so, we construct a probing Sentinel Array in which a sentinel stands for each cache line of B+-tree node. Checking the Sentinel Array avoids scanning unnecessary cache lines and hence significantly reduces cache misses for a search. A quantitative evaluation shows that using Sentinel Arrays boosts the search performance of state-of-the-art in-NVM B+-trees by up to 48.4% while the cost of maintaining of Sentinel Array is low.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑