Lune

SIGMOD2025顶会

Rethinking The Compaction Policies in LSM-trees

Hengrui Wang, Jiansheng Qiu, Fangzhou Yuan, Huanchen Zhang

摘要

Log-structured merge-trees (LSM-trees) are widely used to construct key-value stores. They periodically compact overlapping sorted runs to reduce the read amplification. Prior research on compaction policies has focused on the trade-off between write amplification (WA) and read amplification (RA). In this paper, we propose to treat the compaction operation in LSM-trees as a computational and I/O-bandwidth investment for improving the system's future query throughput, and thus rethink the compaction policy designs. A typical LSM-tree application handles a steady but moderate write stream and prioritizes resources for top-level flushes of small sorted runs to avoid data loss due to write stalls. The goal of the compaction policy, therefore, is to maintain an optimal number of sorted runs to maximize average query throughput. Because compaction and read operations compete for the CPU and I/O resources from the same pool, we must perform a joint optimization to determine the appropriate timing and aggressiveness of the compaction. We introduce a three-level model of an LSM-tree and propose EcoTune, an algorithm based on dynamic programming to find the optimal compaction policy according to workload characterizations. Our evaluation on RocksDB shows that EcoTune improves the average query throughput by 1.5x to 3x over the leveling policy and by up to 2.5x over the lazy-leveling policy on workloads with range/point query ratios.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic Workloads 引用了 Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic Workloads 引用了 FPGA-Accelerated Compactions for LSM-based Key-Value Store
  • ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic Workloads 引用了 Constructing and Analyzing the LSM Compaction Design Space
  • Pome: Parallelizing I/Os and Computations for Efficient LSM-tree-based Data Storage 引用了 FPGA-Accelerated Compactions for LSM-based Key-Value Store
  • Swan: Hybrid MVCC Management for Efficient Transaction Processing in LSM-Tree-Based Key-Value Stores 引用了 Constructing and Analyzing the LSM Compaction Design Space
  • Constructing and Analyzing the LSM Compaction Design Space 引用了 Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • How to Write to SSDs 引用了 ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic Workloads
  • How to Write to SSDs 引用了 Constructing and Analyzing the LSM Compaction Design Space
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. How to Write to SSDsBohyun Lee, Tobias Ziegler, Viktor LeisVLDB 2026 · 2 次引用
  2. ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic WorkloadsJunfeng Liu, Haoxuan Xie, Siqiang LuoVLDB 2026
  3. Pome: Parallelizing I/Os and Computations for Efficient LSM-tree-based Data StorageYanpeng Hu, Li Zhu, Lei Jia, Chundong WangHPDC 2026
  4. Swan: Hybrid MVCC Management for Efficient Transaction Processing in LSM-Tree-Based Key-Value StoresYang Guo, Jin Xue, Zili ShaoVLDB 2026
  5. Nezha: A Key-Value Separated Distributed Store with Optimized Raft IntegrationYangyang Wang, Yucong Dong, Ziqian Cheng, Zichen XuICDE 2026

它引用的 Paper27

  1. Benchmarking Learned IndexesRyan Marcus, Andreas Kipf, Alexander van Renen, Mihail Stoian 等VLDB 2021 · 185 次引用
  2. Evolution of Development Priorities in Key-value Stores Serving Large-scale Applications: The RocksDB ExperienceSiying Dong, Andrew Kryczka, Yanqin Jin, Michael StummFAST 2021 · 110 次引用
  3. FPGA-Accelerated Compactions for LSM-based Key-Value StoreTeng Zhang, Jianying Wang, Xuntao Cheng, Hao Xu 等FAST 2020 · 99 次引用
  4. Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value StoresSiqiang Luo, Subarna Chatterjee, Rafael Ketsetsidis, Niv Dayan 等SIGMOD 2020 · 91 次引用
  5. Constructing and Analyzing the LSM Compaction Design SpaceSubhadeep Sarkar, Dimitris Staratzis, Zichen Zhu, Manos AthanassoulisVLDB 2021 · 73 次引用

相关 Paper

  1. Autumn: A Scalable Read Optimized LSM-Tree Based Key-Value Stores with Fast Point and Range ReadsFuheng Zhao, Zach Miller, Leron Reznikov, Divyakant Agrawal 等ICDE 2025 · 2 次引用
  2. Endure: A Robust Tuning Paradigm for LSM Trees Under Workload UncertaintyAndy Huynh, Harshal A. Chaudhari, Evimaria Terzi, Manos AthanassoulisVLDB 2022 · 28 次引用
  3. Disco: A Compact Index for LSM-treesWenshao Zhong, Chen Chen, Xingbo Wu, Jakob ErikssonSIGMOD 2025 · 2 次引用
  4. Reducing Write Amplification of LSM-Tree with Block-Grained CompactionXiaoliang Wang, Peiquan Jin, Bei Hua, Hai Long 等ICDE 2022 · 26 次引用
  5. Rangereduce: Query-Driven LSM CompactionsShubham Kaushik, Manos Athanassoulis, Subhadeep SarkarICDE 2026
黄昏的海面,两侧是细线勾勒的悬崖