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

面向基于LSM树的键值存储的主机-SSD协同写入加速器

A Host-SSD Collaborative Write Accelerator for LSM-Tree-Based Key-Value Stores

KiHwan Kim, Hyunsun Chung, Seonghoon Ahn, Junhyeok Park, Safdar Jamil, Hongsu Byun, Myungcheol Lee, Jinchun Choi, Youngjae Kim

AI总结:

提出软硬件协同框架KVACCEL,利用双接口SSD和设备内LSM写缓冲消除LSM键值存储的压缩写停顿,在写密集负载下较ADOC最高提升1.17倍。

摘要:

基于日志结构合并(LSM)树的键值存储(KVS)因其在写密集环境中的高性能而被广泛采用,但它们常因压缩期间的写入停顿而遭遇性能下降。先前的解决方案,例如调节I/O流量或使用多个压缩线程,可能导致吞吐量意外下降或增加主机CPU使用率,而使用FPGA、GPU和DPU以缩短压缩持续时间的基于硬件的方法会带来额外硬件成本。在本研究中,我们提出KVACCEL,这是一种新颖的软硬件协同设计框架,通过利用双接口SSD消除写入停顿。KVACCEL分配逻辑NAND闪存空间以同时支持块接口和键值接口,并在写入停顿期间将键值接口用作临时写缓冲区。该策略显著减少了写入停顿,优化了资源使用,并通过实现带有基于迭代器的范围扫描机制的设备内基于LSM的写缓冲区,确保主机与设备之间的一致性。我们的广泛评估表明,对于写密集工作负载,KVACCEL在吞吐量和性能与CPU利用率效率方面比ADOC最高高出1.17倍。对于读写混合工作负载,两者表现出相当的性能。

英文摘要:

Log-Structured Merge (LSM) tree-based Key-Value Stores (KVSs) are widely adopted for their high performance in write-intensive environments, but they often face performance degradation due to write stalls during compaction. Prior solutions, such as regulating I/O traffic or using multiple compaction threads, can cause unexpected drops in throughput or increase host CPU usage, while hardware-based approaches using FPGA, GPU, and DPU aimed at reducing compaction duration introduce additional hardware costs. In this study, we propose KVACCEL, a novel hardware-software co-design framework that eliminates write stalls by leveraging a dual-interface SSD. KVACCEL allocates logical NAND flash space to support both block and key-value interfaces, using the key-value interface as a temporary write buffer during write stalls. This strategy significantly reduces write stalls, optimizes resource usage, and ensures consistency between the host and device by implementing an in-device LSM-based write buffer with an iterator-based range scan mechanism. Our extensive evaluation shows that for write-intensive workloads, KVACCEL outperforms ADOC by up to 1.17x in terms of throughput and performance-to-CPU-utilization efficiency. For mixed read-write workloads, both demonstrate comparable performance.

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

↑