
软件学报 ISSN 1000-9825, CODEN RUXUEW E-mail: jos@iscas.ac.cn
Journal of Software, 2022,33(3):832−848 [doi: 10.13328/j.cnki.jos.006456] http://www.jos.org.cn
©中国科学院软件研究所版权所有. Tel: +86-10-62562563
面向非易失内存的异构索引
∗
刘睿诚
1,2
,
张俊晨
1,2
,
罗永平
1,2
,
金培权
1,2
1
(中国科学技术大学 计算机科学与技术学院, 安徽 合肥 230026)
2
(中国科学院电磁空间信息重点实验室(中国科学技术大学), 安徽 合肥 230026)
通信作者: 金培权, E-mail: jpq@ustc.edu.cn
摘 要: 非易失内存(non-volatile memory, NVM)为数据存储与管理带来新的机遇, 但同时也要求已有的索引结构
针对 NVM 的特性进行重新设计. 围绕 NVM 的存取特性, 重点研究了树形索引在 NVM 上的访问、持久化、范围
查询等操作的性能优化, 并提出了一种上下两层结构的异构索引 HART. 该索引结合了 B+树与 Radix 树的特点,
同时利用了 Radix 结点搜索快以及 B+树范围查询性能好的优点. 对整体架构进行了精心设计, 改进了 Radix 树的
路径压缩策略, 设计了 NVM 写友好的结点结构, 并将 Radix 树叶结点集中存储和链接. 同时在仿真 NVM 设备以
及傲腾真实 NVM 平台上进行了实验, 对比了 HART 的不同衍生变种的性能, 并与多个 NVM 索引进行了对比. 结
果表明, HART 的写性能和点查询性能优于现有的类 B+树索引, 范围查询性能优于基于 Radix 的 WOART 索引, 具
有较好的综合性能.
关键词: 非易失内存; 索引; 两层结构; 读写优化; AR T 树
中图法分类号: TP311
中文引用格式: 刘睿诚, 张俊晨, 罗永平, 金培权. 面向非易失内存的异构索引. 软件学报, 2022, 33(3): 832–848.
http://www.jos.org.cn/1000-9825/6456.htm
英文引用格式: Liu RC, Zhang JC, Luo YP, Jin PQ. Heterogeneous Index for Non-Volatile Memory. Ruan Jian Xue Bao/ Journal of
Software, 2022, 3 3(3): 832−848 (in Chinese). http://www.jos.org.cn/1000-9825/6456.htm
Heterogeneous Index for No n-volatile Memory
LIU Rui-Cheng
1,2
, ZHANG Jun-Chen
1,2
, LUO Yong-Ping
1,2
, JIN Pei-Quan
1,2
1
(School of Computer Science and Technology, Univ ersity of S cience and Technology of China, Hefei 230026 , China)
2
(Key Laboratory of Electromagnetic Space Information (University of Sci ence and Technology of China), Chinese Academy of Sciences,
Hefei 230026, China)
Abstra ct : Non-vol atile memory (NVM) introduces new opportuniti es to data storage and management, but it also requires existing indices
to be revisited according to the properties of NVM. This study, based on the access characteristics of NVM, focuses on the performance
optimization of the access, persist ence, r ange query, and other operations of tr ee indexes on NVM. A two-layer h eterogeneous index called
HART is presented. HART takes advantage of the high range query performance of the B+-tree and the fast node search speed of the
Radix tree. The index structure is redesigned and the strategy of path compression for the Radix tree is improved. Moreover, a
write-efficient node is proposed for NVM and the Radix leaf nodes together with a link are stored. The experiments are conducted on both
simulated NVM and real Intel Optane persistent memory modules and different variants of HART are compared to several existing NVM
indices. The results show that HART achieves better performance for point queries and writes than existing B+tree-like indices. In
addition, it outperforms the existing Radix-tree-based WOART index in range query performance. As a result, HART can deliver high
overall performance.
∗ 基金项目: 国家自然科学基金(62072419)
刘睿诚和张俊晨在本文工作中有同等贡献.
本文由“数据库系统新型技术”专题特约编辑李国良教授、于戈教授、杨俊教授和范举教授推荐.
收稿时间: 2021-0 6-30; 修改时间: 2021-07-31; 采用时间: 2021-09-13; jos 在线出版时间: 2021-10-21
评论