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

利用内置的透明压缩功能缩小现代存储硬件上B树与LSM树写入放大的差距

Closing the B-tree vs. LSM-tree Write Amplification Gap on Modern Storage Hardware with Built-in Transparent Compression

Yifan Qiao, Xubin Chen, Ning Zheng, Jiangpeng Li, Yang Liu, Tong Zhang

摘要:

本文研究了B树的设计,它可以充分利用现代存储硬件与内置的【形】透明压缩。近年来,日志结构的合并树(LSM树)作为B树的一种替代,引起了人们极大的兴趣。目前的共识是,与B树相比,LSM树在存储空间效率和写入放大方面具有明显的优势。本文认为,人们应该重新审视这一信念后,内置的【形】透明压缩存储硬件的到来。高级存储设备~(例如,全闪存阵列)和新兴的计算存储驱动器执行基于硬件的无损数据压缩,对OS和用户应用程序透明。除了直接减少B树和LSM树之间的物理存储成本差异之外,这种现代存储硬件还带来了创新B树实现的新机会,以便大大减少其写入放大。作为探索潜力的第一步,本文提出了三种简单的设计技术(即,确定性页面阴影、局部页面修改日志记录和稀疏重做日志记录),其可以利用这样的现代存储硬件来显著减少B树写入放大。我们实现了这些设计技术,并进行了实验上的商业存储驱动器与内置的【形】透明压缩。结果表明,所提出的设计技术可以减少超过10倍的B树写放大。与RocksDB(一种基于LSM树的流行键值存储)相比,实现的B树可以实现类似甚至更小的写入放大和物理存储空间使用。

英文摘要:

This paper studies the design of B-tree that can take full advantage of modern storage hardware with built-in transparent compression. Recent years have witnessed significant interest in applying log-structured merge tree (LSM-tree) as an alternative to B-tree. The current consensus is that, compared with B-tree, LSM-tree has distinct advantages in terms of storage space efficiency and write amplification. This paper argues that one should revisit this belief upon the arrival of storage hardware with built-in transparent compression. Advanced storage appliances~(e.g., all-flash array) and emerging computational storage drives perform hardware-based lossless data compression, transparent to OS and user applications. Beyond straightforwardly reducing the physical storage cost difference between B-tree and LSM-tree, such modern storage hardware brings new opportunities to innovate B-tree implementation in order to largely reduce its write amplification. As the first step to explore the potential, this paper presents three simple design techniques (i.e., deterministic page shadowing, localized page modification logging, and sparse redo logging) that can leverage such modern storage hardware to significantly reduce the B-tree write amplification. We implemented these design techniques and carried out experiments on a commercial storage drive with built-in transparent compression. The results show that the proposed design techniques can reduce the B-tree write amplification by over 10x. Compared with RocksDB (a popular key-value store built upon LSM-tree), the implemented B-tree can achieve similar or even smaller write amplification and physical storage space usage.

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

↑