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 条
  • [21] Write-Optimized B+ Tree Index Technology for Persistent Memory
    Ma, Rui-Xiang
    Wu, Fei
    Dong, Bu-Rong
    Zhang, Meng
    Li, Wei-Jun
    Xie, Chang-Sheng
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2021, 36 (05) : 1037 - 1050
  • [22] Write-Optimized B+ Tree Index Technology for Persistent Memory
    Rui-Xiang Ma
    Fei Wu
    Bu-Rong Dong
    Meng Zhang
    Wei-Jun Li
    Chang-Sheng Xie
    Journal of Computer Science and Technology, 2021, 36 : 1037 - 1050
  • [23] SEALDB: An Efficient LSM-tree Based KV Store on SMR Drives with Sets and Dynamic Bands
    Yao, Ting
    Tan, Zhihu
    Wan, Jiguang
    Huang, Ping
    Zhang, Yiwen
    Xie, Changsheng
    He, Xubin
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2019, 30 (11) : 2595 - 2607
  • [24] Read/write-optimized tree indexing for solid-state drives
    Jin, Peiquan
    Yang, Chengcheng
    Jensen, Christian S.
    Yang, Puyuan
    Yue, Lihua
    VLDB JOURNAL, 2016, 25 (05): : 695 - 717
  • [25] Read/write-optimized tree indexing for solid-state drives
    Peiquan Jin
    Chengcheng Yang
    Christian S. Jensen
    Puyuan Yang
    Lihua Yue
    The VLDB Journal, 2016, 25 : 695 - 717
  • [26] A Write-Optimized B-Tree Layer for NAND Flash Memory
    Gong, Xiaona
    Chen, Shuyu
    Lin, Mingwei
    Liu, Haozhang
    2011 7TH INTERNATIONAL CONFERENCE ON WIRELESS COMMUNICATIONS, NETWORKING AND MOBILE COMPUTING (WICOM), 2011,
  • [27] SifrDB: A Unified Solution for Write-Optimized Key-Value Stores in Large Datacenter
    Mei, Fei
    Cao, Qiang
    Jiang, Hong
    Li, Jingjun
    PROCEEDINGS OF THE 2018 ACM SYMPOSIUM ON CLOUD COMPUTING (SOCC '18), 2018, : 477 - 489
  • [28] Tidal-Tree-Mem: Toward Read-Intensive Key-Value Stores With Tidal Structure Based on LSM-Tree
    Ma, Chenlin
    Yang, Hao
    Wu, Shangyu
    Wang, Yi
    Mao, Rui
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2023, 42 (02) : 423 - 436
  • [29] TLBtree: A Read/Write-Optimized Tree Index for Non-Volatile Memory
    Luo, Yongping
    Jin, Peiquan
    Zhang, Qinglin
    Cheng, Bin
    2021 IEEE 37TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2021), 2021, : 1889 - 1894
  • [30] WOBTree: a write-optimized B plus -tree for non-volatile memory
    Wang, Haitao
    Li, Zhanhuai
    Zhang, Xiao
    Zhao, Xiaonan
    Jiang, Song
    FRONTIERS OF COMPUTER SCIENCE, 2021, 15 (05)