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

在基于SSD的键值存储中使用微秒延迟内存作为内存索引和缓存的分析与评估

Analysis and Evaluation of Using Microsecond-Latency Memory for In-Memory Indices and Caches in SSD-Based Key-Value Stores

Kioxia Corporation(铠侠公司);Fixstars Corporation(菲克斯塔斯公司)
Yosuke Bando, Akinobu Mita, Kazuhiro Hiwada, Shintaro Sano, Tomoya Suzuki, Yu Nakanishi, Kazutaka Tomida, Hirotsugu Kajihara, Akiyuki Kaneko, Daisuke Taki, Yuki… 展开作者

Yosuke Bando, Akinobu Mita, Kazuhiro Hiwada, Shintaro Sano, Tomoya Suzuki, Yu Nakanishi, Kazutaka Tomida, Hirotsugu Kajihara, Akiyuki Kaneko, Daisuke Taki, Yukimasa Miyamoto, Tomokazu Yoshida, Tatsuo Shiozawa

AI总结:

本文分析微秒延迟内存对基于SSD的键值存储吞吐量的影响,发现IO与软件预取的相互作用能显著提升内存延迟容忍度,无需新技术即可在5微秒延迟下实现接近DRAM的吞吐量,为降低主机DRAM成本提供了高性价比替代方案。

摘要:

当键值(KV)存储使用SSD存储大量数据项时,通常还需要遍历包括索引和缓存在内的大型内存数据结构,以减少IO。本文考虑将此类数据结构的大部分从昂贵的主机DRAM卸载到延迟在微秒级的二级内存中,其延迟比目前可用的DIMM挂载或CXL内存设备长一个数量级。尽管新兴的微秒延迟内存成本可能远低于DRAM,但如果简单直接地使用,它会显著减慢基于SSD的KV存储。本文分析并评估了微秒级内存延迟对KV操作吞吐量的影响。我们的分析发现,从用户级线程对长延迟内存进行软件预取这一著名的延迟隐藏技术是有效的。我们分析的新颖之处在于对预取和IO之间的相互作用如何影响性能进行了建模,由此我们推导出了一个方程,很好地解释了由于长内存延迟导致的吞吐量下降。该模型告诉我们,IO的存在显著增强了对内存延迟的容忍度,从而得出一个发现:基于SSD的KV存储可以被设计成具有延迟容忍性,而无需为微秒延迟内存设计新技术。为了证实这一点,我们设计了一个微基准测试,并修改了现有的基于SSD的KV存储,使其从用户级线程发出预取,并在将大部分内存数据结构放置在具有可调微秒延迟的基于FPGA的内存上时运行它们。结果表明,它们的KV操作吞吐量可以用我们的模型很好地解释,并且修改后的KV存储在内存延迟高达5微秒时仍能实现接近DRAM的吞吐量。这表明基于SSD的KV存储有可能使用微秒延迟内存作为主机DRAM的高性价比替代方案。

英文摘要:

When key-value (KV) stores use SSDs for storing a large number of items, oftentimes they also require large in-memory data structures including indices and caches to be traversed to reduce IOs. This paper considers offloading most of such data structures from the costly host DRAM to secondary memory whose latency is in the microsecond range, an order of magnitude longer than those of currently available DIMM-mounted or CXL memory devices. While emerging microsecond-latency memory is likely to cost much less than DRAM, it can significantly slow down SSD-based KV stores if naively employed. This paper analyzes and evaluates the impact of microsecond-level memory latency on the KV operation throughput. Our analysis finds that a well-known latency-hiding technique of software prefetching for long-latency memory from user-level threads is effective. The novelty of our analysis lies in modeling how the interplay between prefetching and IO affects performance, from which we derive an equation that well explains the throughput degradation due to long memory latency. The model tells us that the presence of IO significantly enhances the tolerance to memory latency, leading to a finding that SSD-based KV stores can be made latency-tolerant without devising new techniques for microsecond-latency memory. To confirm this, we design a microbenchmark as well as modify existing SSD-based KV stores so that they issue prefetches from user-level threads, and run them while placing most of in-memory data structures on FPGA-based memory with adjustable microsecond latency. The results demonstrate that their KV operation throughputs can be well explained by our model, and the modified KV stores achieve near-DRAM throughputs for up to a memory latency of 5 microseconds. This suggests the possibility that SSD-based KV stores can use microsecond-latency memory as a cost-effective alternative to the host DRAM.

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

↑