ThanosKV: A Holistic Approach to Utilize NVM for LSM-tree based Key- Value Stores

Guangxun Zhao, Hojin Shin, Seehwan Yoo, Seong-je Cho, Jongmoo Choi · 2024

The advent of byte-addressable NVM (Non-Volatile Memory) gives an opportunity to offer data persistence with low latency. This paper designs a novel LSM-tree (Log Structured Merge-tree) based KVS (key-value store), called ThanosKV, that exploits both the non-volatility and byte-addressability of NVM in a holistic manner. By making use of non-volatility, ThanosKV separates levels of LSM-tree into two: hot and cold. In order to mitigate the notorious write stall problem of traditional KVSs, hot levels are maintained in NVM, while managing cold levels in SSD (Solid State Drive). This separation allows to devise of a hybrid compaction mechanism, applying leveled compaction for levels in SSD and double-tiered compaction for levels in NVM, which enables to enhancement of compaction efficiency. By utilizing byte-addressability, ThanosKV introduces an index structure in NVM to improve the lookup latency of key-value pairs in SSD. ThanosKV also conducts a performance-space analysis to determine how much NVM space is allocated for the index while using the remaining for the hot levels. We implement ThanosKV and evaluate its effectiveness by comparing it with two state-of-the-art KVSs, MatrixKV and NoveLSM. Evaluation results show that ThanosKV improves performance by up to 6.8x in write latency and 5.4x in read latency.

Read the paper · More papers on PaperTik