The Storage View Of KV Cache: Characterizing Cache Behavior Across LLM Workloads
Talia Q. Chen, Daniel Waddington, Narangerelt Batsoyol, Vijay Chidambaram
Abstract
Modern LLM serving increasingly extends KV caches beyond GPU memory into host DRAM, SSDs, and remote storage, yet these stores remain largely governed by workload-agnostic policies such as LRU and fixed TTLs. We ask what execution context is needed by storage to make retention, reclamation, and placement decisions across heterogeneous workloads. We characterize KV-cache reuse, lifetime, and footprint at block granularity across 11 production and public traces spanning chat, API serving, RAG, coding agents, tool-using agents, and multi-lineage workflows. We examine reuse sources, recurrence timing and frequency, useful lifetimes, and storage consumption. Across workloads, KV state takes two recurring forms. Single-session state is reused within one execution: its footprint grows as sessions deepen and accumulates across concurrent sessions; it can remain useful through long idle periods but loses value at session completion. Multi-session state recurs across sessions of the same workload, outlives individual sessions, and spans hot prefixes and a large infrequent tail. While prior systems often exploit application-, agent-, or workflow-specific knowledge, our results suggest that three generic signals (a workload identifier, a session identifier, and session completion) expose much of the structure needed for KV-storage management. Trace-driven comparisons show that workload-specific recurrence estimates retain up to 22% more within-session hits and reduce dead state by up to 40%; a session completion signal eliminates the fundamental idle-time reclamation tradeoff for single-session state; and session-aware reuse classification identifies shared state 4-700x more selectively than request-level access counts. These results motivate a small cross-layer interface for workload-aware KV storage without application-specific semantics.
Create a lesson
Related papers
Callosal: Rethinking the Kernel Page Cache for Disaggregated Storage and Memory
Shared title terminologycs.OSJames McMahon, Amit Samanta, Seung-seob Lee et al.
Characterizing Predictability-Latency Trade-offs of KV-Cache SSD Offloading in LMCache for LLM Serving Systems
Shared title terminologycs.OSYing He, Dingsen Shi, Yanbo Dai et al.
Range: Decoupling KV-Cache Reuse Granularity from Storage Work
Shared title terminologycs.OSDingsen Shi, Jiahao Zhang, Liqiang Lv et al.
PredictIO: Decoupling Workload Prediction from OS-Controlled Storage Prefetching
Shared title terminologycs.OSJun Lu, Yancan Mao, Zhenya Ma et al.
From LLM Inference to Agentic Workloads: Characterization and Implications for Serving Systems
Shared title terminologycs.OSChaokun Chang, Yukun Zhou, Kaihua Fu et al.
TTL Approximations for a Family of CLOCK-Like Cache Replacement Policies
Shared title terminologycs.OSYirong Wang, Peter Desnoyers, Benny Van Houdt