arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.15581cs.DB
收藏

vLSM:基于LSM的KV存储中的低尾延迟与I/O放大

vLSM: Low tail latency and I/O amplification in LSM-based KV stores

Giorgos Xanthakis, Antonios Katsarakis, Giorgos Saloustros, Angelos Bilas

AI总结:

vLSM通过减小压缩链宽度和长度,在不增加内存和I/O放大的前提下,显著降低LSM KV存储的尾延迟,写入P99延迟提升4.8倍,读取提升12.5倍。

摘要:

基于LSM的键值(KV)存储在当代数据基础设施中扮演着重要角色。然而,它们存在高达数秒的尾延迟问题,这使其对面向用户的应用程序吸引力不足。本文提出了压缩链的概念,并分析了压缩链如何影响尾延迟。随后,我们展示了现代设计如何通过牺牲I/O放大或需要大量内存来降低尾延迟。基于我们的分析,我们提出了vLSM,一种新的KV存储设计,在不牺牲内存或I/O放大的情况下显著改善尾延迟。vLSM通过使用小型SST并消除现代系统在L0层所需的层级压缩来减小压缩链宽度;同时通过采用大于常规的L1与L2之间的增长因子,并在L1层引入重叠感知的SST来缩短压缩链长度。我们在RocksDB中实现了vLSM,并使用db_bench和YCSB进行评估。我们的评估突显了内存需求、I/O放大与尾延迟之间的潜在权衡,以及vLSM相对于现有方法的优势。vLSM将写入的P99尾延迟提升最高达4.8倍,读取的P99尾延迟提升最高达12.5倍,累计写入停顿减少最高达60%,同时在同一内存预算下略微改善了I/O放大。

英文摘要:

LSM-based key-value (KV) stores are an important component in modern data infrastructures. However, they suffer from high tail latency, in the order of several seconds, making them less attractive for user-facing applications. In this paper, we introduce the notion of compaction chains and we analyse how they affect tail latency. Then, we show that modern designs reduce tail latency, by trading I/O amplification or require large amounts of memory. Based on our analysis, we present vLSM, a new KV store design that improves tail latency significantly without compromising on memory or I/O amplification. vLSM reduces (a) compaction chain width by using small SSTs and eliminating the tiering compaction required in L0 by modern systems and (b) compaction chain length by using a larger than typical growth factor between L1 and L2 and introducing overlap-aware SSTs in L1. We implement vLSM in RocksDB and evaluate it using db_bench and YCSB. Our evaluation highlights the underlying trade-off among memory requirements, I/O amplification, and tail latency, as well as the advantage of vLSM over current approaches. vLSM improves P99 tail latency by up to 4.8x for writes and by up to 12.5x for reads, reduces cumulative write stalls by up to 60% while also slightly improves I/O amplification at the same memory budget.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑