Characterizing Predictability-Latency Trade-offs of KV-Cache SSD Offloading in LMCache for LLM Serving Systems
Ying He, Dingsen Shi, Yanbo Dai, Donger Chen, Harry Fu, Chris Tsu, Wang Feng, Song Fu
Abstract
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 ODIRECT. Key findings define the paper. First, the legacy stack appears almost read-free at the SSD layer in all four workloads, but a flushram 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, ODIRECT 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.
Create a lesson
Metadata
- Comments
- 6 pages, 3 figures, 3 tables
Related papers
From LLM Inference to Agentic Workloads: Characterization and Implications for Serving Systems
Shared title terminologycs.OSChaokun Chang, Yukun Zhou, Kaihua Fu et al.
The Storage View Of KV Cache: Characterizing Cache Behavior Across LLM Workloads
Shared title terminologycs.OSTalia Q. Chen, Daniel Waddington, Narangerelt Batsoyol et al.
MORTIS: Compiler-Guided KV-Cache Management for LLM Agent Programs
Shared title terminologycs.OSXiaoyu Ma, Jayanaka L. Dantanarayana, Savini Kashmira et al.
Rimuru: Unified Memory Management for Modern LLM Serving via Elastic Expert Offloading
Shared title terminologycs.OSZhiyuan Fang, Dingyang Li, Jianfeng Zhong et al.
Range: Decoupling KV-Cache Reuse Granularity from Storage Work
Shared title terminologycs.OSDingsen Shi, Jiahao Zhang, Liqiang Lv et al.
Dynamic Flow, Static Graph: KV Cache Reuse for Efficient LLM Serving on Mobile NPUs
Shared title terminologycs.OSZhengxiang Huang, Shengheng Chen, Chaoyue Niu et al.