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 条
  • [31] WOBTree: a write-optimized B+-tree for non-volatile memory
    Haitao WANG
    Zhanhuai LI
    Xiao ZHANG
    Xiaonan ZHAO
    Song JIANG
    Frontiers of Computer Science, 2021, (05) : 13 - 27
  • [32] Sherman: A Write-Optimized Distributed B+Tree Index on Disaggregated Memory
    Wang, Qing
    Lu, Youyou
    Shu, Jiwu
    PROCEEDINGS OF THE 2022 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA (SIGMOD '22), 2022, : 1033 - 1048
  • [33] WOBTree: a write-optimized B+-tree for non-volatile memory
    Haitao Wang
    Zhanhuai Li
    Xiao Zhang
    Xiaonan Zhao
    Song Jiang
    Frontiers of Computer Science, 2021, 15
  • [34] A Scalable and Write-Optimized Disaggregated B+-Tree With Adaptive Cache Assistance
    An, Hang
    Wang, Fang
    Feng, Dan
    Zou, Xiaomin
    Liu, Zefeng
    Zhang, Jianshun
    IEEE TRANSACTIONS ON CLOUD COMPUTING, 2024, 12 (04) : 1074 - 1087
  • [35] TrieKV: Managing Values After KV Separation to Optimize Scan Performance in LSM-Tree
    Yao, Zekun
    Song, Yang
    Yue, Yinliang
    Liu, Jinzhou
    Fan, Zhixin
    WEB AND BIG DATA, PT III, APWEB-WAIM 2023, 2024, 14333 : 402 - 416
  • [36] Watt: A Write-Optimized RRAM-Based Accelerator for Attention
    Zhang, Xuan
    Song, Zhuoran
    Li, Xing
    He, Zhezhi
    Jing, Naifeng
    Jiang, Li
    Liang, Xiaoyao
    EURO-PAR 2024: PARALLEL PROCESSING, PART II, EURO-PAR 2024, 2024, 14802 : 107 - 120
  • [37] AB-Tree: A Write-optimized Adaptive Index Structure on Solid State Disk
    Jiang, Zhiwen
    Wu, Yongji
    Zhang, Yong
    Li, Chao
    Xing, Chunxiao
    2014 11TH WEB INFORMATION SYSTEM AND APPLICATION CONFERENCE (WISA), 2014, : 188 - 193
  • [38] L2SM: a query-optimized linked LSM-tree for HTAP workloads
    Feng, Xiaoyue
    Wei, Dashan
    Guo, Chaopeng
    Song, Jie
    FRONTIERS OF COMPUTER SCIENCE, 2025, 19 (07)
  • [39] Adaptive Lower-Level Driven Compaction to Optimize LSM-Tree Key-Value Stores
    Chai, Yunpeng
    Chai, Yanfeng
    Wang, Xin
    Wei, Haocheng
    Wang, Yangyang
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2022, 34 (06) : 2595 - 2609
  • [40] WOPE: A write-optimized and parallel-efficient B plus -tree for persistent memory ☆
    He, Xianyu
    Zhang, Runyu
    Tian, Pengpeng
    Zhou, Lening
    Lian, Min
    Yang, Chaoshu
    JOURNAL OF SYSTEMS ARCHITECTURE, 2024, 153