Document Type

Article

Source Publication Title

The 18th ACM International Systems and Storage Conference

DOI

https://dl.acm.org/doi/10.1145/3757347.3759136

Abstract

Log Structured Merge Tree (LSM-Tree) is the core data structure that powers many modern key-value storage engines for its high write throughput property. To enable high speed writes, LSM-Tree ingests updates in an out-of-place manner and organizes key-value items into multiple levels of exponentially increasing capacities. To service fast data access, LSM-Tree frequently performs compaction operation, where data between two consecutive levels is sort-merged and written down to the lower level in granularity of SSTable. This compaction operation is known to cause high write amplification, which is the main threat to the LSM-tree’s design objective of achieving high write performance. To tackle high write amplification of compactions in LSMTree, we propose a new compaction approach called Collapsed, which capitalizes on the skewed nature of key density within a level. Breaking away from the conventional approach of bounding compaction between two levels, Collapsed compaction enables data to be moved across multiple levels at once, avoiding unnecessary rewrites. Using index keys of SSTables, Collapsed compaction determines the amount of data that will be written to a level and identifies the ideal last level to which a compaction will be performed. We have implemented a prototype of Collapsed into RocksDB named CollapseDB. Experimental results show that compared to state-of-the-art LSM-trees, CollapseDB can significantly lower write amplification, up to 40% compared to RocksDB.

Publication Date

9-8-2025

Language

English

License

Creative Commons Attribution 4.0 International License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Share

COinS
 
 

To view the content in your browser, please download Adobe Reader or, alternately,
you may Download the file to your hard drive.

NOTE: The latest versions of Adobe Reader do not support viewing PDF files within Firefox on Mac OS and if you are using a modern (Intel) Mac, there is no official plugin for viewing PDF files within the browser window.