FlatLSM: Write-Optimized LSM-Tree for PM-Based KV Stores

被引:4
|
作者
He, Kewen [1 ]
An, Yujie [1 ]
Luo, Yijing [1 ]
Liu, Xiaoguang [1 ]
Wang, Gang [1 ]
机构
[1] Nankai Univ, 38 Tongyan Rd, Tianjin 300350, Peoples R China
关键词
Persistent memory; key-value stores; LSM-Tree; MEMORY;
D O I
10.1145/3579855
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The Log-Structured Merge Tree (LSM-Tree) is widely used in key-value (KV) stores because of its excwrite performance. But LSM-Tree-based KV stores still have the overhead of write-ahead log and write stall caused by slow L-0 flush and L-0-L-1 compaction. New byte-addressable, persistent memory (PM) devices bring an opportunity to improve the write performance of LSM-Tree. Previous studies on PM-based LSM-Tree have not fully exploited PM's "dual role" of main memory and external storage. In this article, we analyze two strategies of memtables based on PM and the reasons write stall problems occur in the first place. Inspired by the analysis result, we propose FlatLSM, a specially designed flat LSM-Tree for non-volatile memory based KV stores. First, we propose PMTable with separated index and data. The PM Log utilizes the Buffer Log to store KVs of size less than 256B. Second, to solve the write stall problem, FlatLSM merges the volatile memtables and the persistent L-0 into large PMTables, which can reduce the depth of LSM-Tree and concentrate I/O bandwidth on L-0-L-1 compaction. To mitigate write stall caused by flushing large PMTables to SSD, we propose a parallel flush/compaction algorithm based on KV separation. We implemented FlatLSM based on RocksDB and evaluated its performance on Intel's latest PM device, the Intel Optane DC PMM with the state-of-the-art PM-based LSM-Tree KV stores, FlatLSM improves the throughput 5.2x on random write workload and 2.55x on YCSB-A.
引用
收藏
页数:26
相关论文
共 50 条
  • [1] TriangleKV: Reducing Write Stalls and Write Amplification in LSM-Tree Based KV Stores With Triangle Container in NVM
    Ding, Chen
    Yao, Ting
    Jiang, Hong
    Cui, Qiu
    Tang, Liu
    Zhang, Yiwen
    Wan, Jiguang
    Tan, Zhihu
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2022, 33 (12) : 4339 - 4352
  • [2] MatrixKV: Reducing Write Stalls and Write Amplification in LSM-tree Based KV Stores with a Matrix Container in NVM
    Yao, Ting
    Zhang, Yiwen
    Wan, Jiguang
    Cui, Qiu
    Tang, Liu
    Jiang, Hong
    Xie, Changsheng
    He, Xubin
    PROCEEDINGS OF THE 2020 USENIX ANNUAL TECHNICAL CONFERENCE, 2020, : 17 - 31
  • [3] A Priority and Fairness Mixed Compaction Scheduling Mechanism for LSM-tree Based KV-Stores
    Chen, Lidong
    Yue, Yinliang
    Wang, Haobo
    Wu, Jianhua
    ALGORITHMS AND ARCHITECTURES FOR PARALLEL PROCESSING, ICA3PP 2018, PT I, 2018, 11334 : 89 - 105
  • [4] Studies on LSM-tree Based NoSQL Key-Value Stores
    Xu, Ming
    Xu, Xianbin
    Zheng, Fang
    Yin, Mengjia
    2016 3RD INTERNATIONAL CONFERENCE ON ECONOMIC, BUSINESS MANAGEMENT AND EDUCATIONAL INNOVATION (EBMEI 2016), PT 2, 2016, 55 : 726 - 730
  • [5] Optimization of LSM-Tree for Key-Value Stores
    Wu S.
    Xie J.
    Wang Y.
    Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2020, 57 (11): : 2432 - 2441
  • [6] BoLT: Barrier-optimized LSM-Tree
    Kim, Dongui
    Park, Chanyeol
    Lee, Sang-Won
    Nam, Beomseok
    PROCEEDINGS OF THE 2020 21ST INTERNATIONAL MIDDLEWARE CONFERENCE (MIDDLEWARE '20), 2020, : 119 - 133
  • [7] A storage computing architecture with multiple NDP devices for accelerating compaction performance in LSM-tree based KV stores
    Sun, Hui
    Wang, Qiang
    Yue, Yin Liang
    Zhao, Yuhong
    Fu, Song
    JOURNAL OF SYSTEMS ARCHITECTURE, 2022, 130
  • [8] MUTANT: Balancing Storage Cost and Latency in LSM-Tree Data Stores
    Yoon, Hobin
    Yang, Juncheng
    Kristjansson, Sveinn Fannar
    Sigurdarson, Steinn E.
    Vigfusson, Ymir
    Gavrilovska, Ada
    PROCEEDINGS OF THE 2018 ACM SYMPOSIUM ON CLOUD COMPUTING (SOCC '18), 2018, : 162 - 173
  • [9] Building Write-Optimized Tree Indexes on Disaggregated Memory
    Wang, Qing
    Lu, Youyou
    Shu, Jiwu
    SIGMOD RECORD, 2023, 52 (01) : 45 - 52
  • [10] ThanosKV: A Holistic Approach to Utilize NVM for LSM-tree based Key-Value Stores
    Zhao, Guangxun
    Shin, Hojin
    Yoo, Seehwan
    Cho, Seong-je
    Choi, Jongmoo
    2024 IEEE INTERNATIONAL CONFERENCE ON BIG DATA AND SMART COMPUTING, IEEE BIGCOMP 2024, 2024, : 143 - 150