A Case for Space Compaction of B-Tree Nodes on Flash Storage

被引:1
作者
Lee, Bo-Hyun [1 ]
An, Mijin [1 ]
Lee, Sang-Won [1 ]
机构
[1] Sungkyunkwan Univ, Suwon 16419, Gyeonggi Do, South Korea
基金
新加坡国家研究基金会;
关键词
Indexes; Flash memories; Compaction; Throughput; Databases; Benchmark testing; Performance evaluation; B-tree; flash storage; space amplification; space compaction; write amplification;
D O I
10.1109/ACCESS.2023.3267084
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
It is well known that the in-use space in B-tree nodes is only two-thirds, on average. Such low space utilization is detrimental to flash storage in terms of cost as well as performance. In particular, as the database grows, the logical space waste in B-tree nodes will exacerbate the physical write amplification inside flash devices, worsening the write performance and eventually degrading transaction throughput. To address this problem, we propose two space compaction techniques for B-tree nodes: space reservation and data redistribution. The space reservation technique dynamically reserves the free space per index to prevent node split caused by future updates. Meanwhile, data redistribution redistributes records to a neighboring node before the split occurs. Experimental results using MySQL show that our approach can reduce the in-use database space by up to 40%, doubling the throughput. In addition, our approach outperforms MyRocks with less space. Our experimental results confirm that space compaction techniques obsolete on hard disks are very rewarding on flash storage.
引用
收藏
页码:38149 / 38156
页数:8
相关论文
共 13 条
  • [1] Armstrong T., 2013, PROC ACM SIGMOD INT, P1185, DOI DOI 10.1145/2463676.2465296
  • [2] Dong S., 2017, PROC CIDR, P3
  • [3] Foote R., 2022, IND BLOCK SPLITS
  • [4] github, 2022, MARIADB SERV
  • [5] Jannink J., 1995, SIGMOD Record, V24, P33, DOI 10.1145/202660.202666
  • [6] 2R: Efficiently Isolating Cold Pages in Flash Storages
    Kang, Minji
    Choi, Soyee
    Oh, Gihwan
    Lee, Sang-Won
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2020, 13 (11): : 2004 - 2017
  • [7] Maelbrancke R., 1995, SIGMOD Record, V24, P5, DOI 10.1145/211990.211999
  • [8] myrocks, 2015, MYROCKS FAC OP SOURC
  • [9] MySQL, 2021, about us
  • [10] Freezing Frozen Pages with Multi-Stream SSDs
    Park, Hyun-Woo
    Choi, Soyee
    An, Mijin
    Lee, Sang-Won
    [J]. 15TH INTERNATIONAL WORKSHOP ON DATA MANAGEMENT ON NEW HARDWARE (DAMON 2019), 2019,