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

表征LLM服务系统中LMCache的KV缓存SSD卸载的可预测性-延迟权衡

Characterizing Predictability-Latency Trade-offs of KV-Cache SSD Offloading in LMCache for LLM Serving Systems

University of North Texas(北德克萨斯大学);Initio Corporation(Initio公司)

Ying He, Dingsen Shi, Yanbo Dai, Donger Chen, Harry Fu, Chris Tsu, Wang Feng, Song Fu

AI总结:

本文研究LMCache的KV缓存SSD卸载,对比两个版本部署的存储行为,发现去重仅对完全重复工作负载降写入,O_DIRECT增延迟,核心是可预测性与平均延迟的权衡。

摘要:

KV缓存卸载被广泛用于扩展LLM服务的GPU内存,但其存储行为尚未在块设备层面得到表征。本文通过现实多会话工作负载研究LMCache,这些工作负载涵盖相同上下文/不同上下文、相同提示/不同提示,每个工作负载包含100多个无状态请求。我们的比较是观测性而非因子性的,对比两个可实现的部署快照:带缓冲I/O的LMCache 0.3.0与内核页缓存,以及带前缀感知去重和O_DIRECT的LMCache 0.3.16。关键发现如下:第一,传统栈在所有四个工作负载的SSD层几乎无读取操作,但flush_ram实验表明这依赖于页缓存的热度:一旦缓存被驱逐,同一路径会在683ms内产生约1GB的顺序读取。第二,去重仅对完全重复的工作负载带来显著的写入减少:一组写入从1.62GB缩减至11.75MB,其余三组则保持在2-5GB范围内。第三,O_DIRECT将隐藏的双峰读取成本转化为显式且稳定的成本:在某组中,预热的TTFT从27ms升至93ms,因为99个预热请求每个都从SSD重新读取相同的约12MB部分块。因此主要结论并非“更新的更好”,而是一种系统权衡:可预测性与平均情况延迟之间的权衡。

英文摘要:

KV-cache offload is widely used to stretch GPU memory for LLM serving, but its storage behavior has not been characterized at the block-device level. In this paper, we study LMCache through realworld multi-session workloads that span same/different context x same/different prompt, using over 100 stateless requests per workload. Our comparison is observational rather than factorial: it contrasts two realizable deployment snapshots -- LMCache 0.3.0 with buffered I/O and the kernel page cache, and LMCache 0.3.16 with prefix-aware deduplication and O_DIRECT. Key findings define the paper. First, the legacy stack appears almost read-free at the SSD layer in all four workloads, but a flush_ram experiment shows that this is conditional on page-cache warmth: once the cache is evicted, the same path issues about 1 GB of sequential reads in 683 ms. Second, deduplication delivers a dramatic write reduction only for the exact-repeat workload: one set collapses from 1.62 GB to 11.75 MB of writes, while the other three sets remain in the 2-5 GB range. Third, O_DIRECT converts a hidden and bimodal read cost into an explicit and stable one: on one set, warm TTFT rises from 27 ms to 93 ms because each of the 99 warm requests re-reads the same ~12 MB partial chunk from SSD. The main conclusion is therefore not "newer is better," but a system trade-off: predictability versus average-case latency.

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

↑