MyWAL: performance optimization by removing redundant input/output stack in key-value store

Xiao ZHANG, Mengyu LI, Michael NGULUBE, Yonghao CHEN, Yiping ZHAO

PDF(7765 KB)
PDF(7765 KB)
Front. Inform. Technol. Electron. Eng ›› 2023, Vol. 24 ›› Issue (7) : 980-993. DOI: 10.1631/FITEE.2200496
Orginal Article
Orginal Article

MyWAL: performance optimization by removing redundant input/output stack in key-value store

Author information +
History +

Abstract

Based on a log-structured merge (LSM) tree, the key-value (KV) storage system can provide high reading performance and optimize random writing performance. It is widely used in modern data storage systems like e-commerce, online analytics, and real-time communication. An LSM tree stores new KV data in the memory and flushes to disk in batches. To prevent data loss in memory if there is an unexpected crash, RocksDB appends updating data in the write-ahead log (WAL) before updating the memory. However, synchronous WAL significantly reduces writing performance. In this paper, we present a new WAL mechanism named MyWAL. It directly manages raw devices (or partitions) instead of saving data on a traditional file system. These can avoid useless metadata updating and write data sequentially on disks. Experimental results show that MyWAL can significantly improve the data writing performance of RocksDB compared to the traditional WAL for small KV data on solid-state disks (SSDs), as much as five to eight times faster. On non-volatile memory express soild-state drives (NVMe SSDs) and non-volatile memory (NVM), MyWAL can improve data writing performance by 10%–30%. Furthermore, the results of YCSB (Yahoo! Cloud Serving Benchmark) show that the latency decreased by 50% compared with SpanDB.

Keywords

Key-value (KV) store / Log-structured merge (LSM) tree / Non-volatile memory (NVM) / Non-volatile memory express soild-state drive (NVMe SSD) / Write-ahead log (WAL)

Cite this article

Download citation ▾
Xiao ZHANG, Mengyu LI, Michael NGULUBE, Yonghao CHEN, Yiping ZHAO. MyWAL: performance optimization by removing redundant input/output stack in key-value store. Front. Inform. Technol. Electron. Eng, 2023, 24(7): 980‒993 https://doi.org/10.1631/FITEE.2200496

RIGHTS & PERMISSIONS

2023 Zhejiang University Press
PDF(7765 KB)

Accesses

Citations

Detail

Sections
Recommended

/