arXiv:2610.31169cs.OSOct 2026

Manuscript Offprint

arXiv:2610.31169

SARIA: Persistence-Aware KV Caching with Coordinated DRAM--SSD Reload for LLM Agents

Hui Li, Qihui Zhou, Xiao Yan, Shumeng Zhang, Zijie Dai, Zequn Gong, Mingcong Song, Guoping Long, Hongjie Si, James Cheng

Abstract

Multi-turn LLM agents usually reuse long context prefixes, making key value (KV) caching crucial for reducing prefill latency. SSDs provide a low-cost extension to limited DRAM capacity but introduce two key challenges. Eagerly persisting all KV cache blocks incurs substantial write traffic and rapidly consumes finite SSD endurance. Meanwhile, the small number of SSDs provisioned in typical GPU servers limits aggregate reload bandwidth, making SSD-resident KV cache much slower to retrieve than that in DRAM and inflating prefill latency.

We present SARIA (Selective Admission and Reload for Inference Acceleration), a KV caching system that jointly manages DRAM and SSD by exploiting the session-level temporal locality of LLM agents to reduce SSD writes and accelerate cache reload. On the write path, SARIA uses eviction and reuse history to selectively persist KV cache blocks that exhibit reuse opportunities beyond their DRAM residency, avoiding unnecessary writes for KV cache already hosted in DRAM. On the read path, SARIA promotes selected SSD-hit KV cache blocks from GPU memory into DRAM after prefill, allowing subsequent reuse within the same session to reduce SSD read traffic while limiting DRAM contention. A transfer coordinator paces DRAM reads while SSD transfers are active, allowing both paths to make progress and efficiently share GPU ingress bandwidth.

We implement SARIA on LMCache MP and evaluate it using workloads from TraceLab and WEKA, covering both full-attention and hybrid-attention models. The results show that SARIA reduces SSD writes by 57.1–58.9% compared with popular full duplicate caching and the mean time to first token (TTFT) by 42.3–79.7% over DRAM-only caching.

1 Introduction

Agentic LLM services are turning the key value (KV) cache from ephemeral, per-request state into reusable serving state that spans multiple interaction turns. System prompts, tool

Figure

Figure 1: P90 cache hit rate and estimated SSD lifetime for GLM-5.2 (1 DWPD) as SSD capacity varies (labels denote token slots, e.g., 1.5M). SARIA (right) can extend SSD lifetime relative to full duplicate caching (left) at the same capacity by trading cache hit rate for longer lifetime.

schemas, repository instructions, and conversation history often constitute long prefixes that recur throughout an agent session. Retaining the KV cache of these prefixes allows subsequent requests to avoid repeated prefill computation, reducing time to first token (TTFT) [9,20,32,39,43]. However, GPU HBM and host DRAM provide limited capacity at high cost, making it difficult to retain all reusable KV cache blocks.

SSDs offer a storage tier with larger capacity and lower cost. Existing systems such as Mooncake [22] and LM-Cache [3] have already extended KV cache hierarchies from host DRAM to SSDs. Meanwhile, I/O technologies such as GPUDirect Storage (GDS) [18] enable direct SSD-to-GPU data transfer at high efficiency. With sufficient SSD parallelism and an optimized I/O stack, recent work shows that SSD-based KV caching can approach DRAM performance [23]. These advances highlight the potential of SSD-based KV caching but two challenges need to be tackled when deploying SSD caching on typical GPU servers.

Challenge 1: Finite SSD endurance. SSDs can only sustain a finite cumulative write volume before exhausting their rated endurance budget [16]. Existing systems duplicate all newly generated KV blocks from DRAM to SSD, which we call full duplicate caching. As such, write traffic scales with the model's KV footprint and prefill throughput. For example, vLLM reports 12,963 prefill tokens/s per GPU for GLM-5.2 with 8K-token inputs on B300 GPUs [5]. At this rate, each GPU would generate approximately 1,145 MiB/s of KV writes, or 103.7 TB/day. A 4-TB SSD rated at one drive write per day (DWPD) would consume its five-year write budget in about 70 days of continuous operation.

Increasing SSD capacity provides a larger write budget, but the capacity needed for endurance can far exceed that needed for caching. For Figure 1, we replay 350 TraceLab sessions following the setup described in §5.1. Increasing the cache size from 3M token slots to 32M token slots (the capacity required for five-year endurance) only boosts cache hit rate from 82.0% to 84.8%. As such, using larger SSDs is not economical in terms of the performance gain.

Challenge 2: Limited SSD parallelism. The number of SSDs on GPU servers is usually too small to match GPU ingress bandwidth. For example, AWS's p5.48xlarge provides 8 H100 GPUs and 8 local NVMe devices [1], whereas at least 4 x4 PCIe SSDs are needed to match one x16 GPU link at the same PCIe generation [18]. Adding more drives consumes bays and PCIe resources and increases cost. With limited device parallelism, SSD bandwidth remains a bottleneck when reloading the cached prefixes.

Existing SSD-based KV cache systems adopt two reload paths. The first fetches SSD-resident KV cache directly into GPU memory via GDS [8, 19]. Since this path bypasses DRAM, DRAM copies are not created for SSD hits, a behavior we refer to as zero promotion. Repeated SSD hits therefore remain bound by SSD bandwidth. The second path loads SSD-resident KV cache into DRAM before transferring it to the GPU [28]. These systems retain all reloaded blocks in DRAM for subsequent reuse, which we refer to as full promotion. Although these copies reduce subsequent SSD reads, the promoted KV cache blocks compete with other active sessions for DRAM.

Our System SARIA. To tackle the two challenges, we present SARIA (Selective Admission and Reload for Inference Acceleration), a DRAM–SSD KV caching system for agent workloads. The central idea is to guide SSD persistence and promotion using session reuse history. SARIA's persistence-aware SSD admission preserves KV cache blocks whose reuse extends beyond DRAM residency, while lazy partial DRAM promotion and coordinated multi-source reload combine GDS reads with DRAM replicas to accelerate subsequent reloads. Together, they reduce SSD writes and reload latency under limited SSD capacity and parallelism.

To account for finite SSD endurance, SARIA uses repeated DRAM evictions as evidence that a block needs SSD persistence. This is because requests within the same session often reuse KV cache blocks while they remain in DRAM, but contention from other active sessions or long inter-request intervals can evict these blocks before they are reused. Therefore, repeatedly evicted KV cache blocks have high potential for reuse after DRAM eviction. We also persist exceptionally popular KV cache blocks (based on their reuse counts) before they are evicted. SARIA allows users to trade off SSD write volume against cache coverage by configuring eviction and reuse-count thresholds ( §4.2§4.2). SARIA further designs unified context metadata to support both classical full-attention models and emerging hybrid-attention models and plans valid prefix reloads from both DRAM and SSD ( §4.3§4.3).

To tackle limited SSD parallelism, SARIA combines direct GDS reloads with lazy partial promotion to accelerate subsequent cache reuse. After a request reloads SSD-hit KV cache into GPU memory through GDS and completes prefill, lazy promotion copies some SSD-hit blocks from HBM into DRAM. We choose a promotion ratio so that DRAM and SSD can fully utilize the GPU's ingress bandwidth while avoiding DRAM capacity competition. Subsequent requests can then reload different portions of the KV cache from DRAM and SSD concurrently to reduce SSD traffic ( §4.4§4.4).

Loading KV cache concurrently from both DRAM and SSD requires careful coordination for good performance. We observe that DRAM transfers can consume most of the GPU ingress bandwidth and leave a long SSD-only completion tail. As such, SARIA’s coordinator paces DRAM transfers while GDS is active and only restores full DRAM bandwidth after SSD transfer finishes. To fully utilize GPU ingress bandwidth, SARIA also uses the residual GPU ingress bandwidth to serve DRAM reloads for other requests ( §4.5§4.5).

We implement SARIA on LMCache MP and evaluate it using TraceLab and WEKA workloads, covering full-attention and hybrid models and single- and dual-SSD configurations. The results show that the selective admission of SARIA reduces SSD write volume by 57.1–58.9% compared with the full duplicate baseline. The mean TTFT is also reduced by 42.3–79.7% over DRAM-only caching. The ablation study shows that partial promotion, tier overlap, and coordination together reduce the cache reload time by 26.7–31.9% for requests in the slowest quartile.

To summarize, we make the following contributions:

  • We identify short SSD endurance from eager persistence and limited reload bandwidth from insufficient SSD parallelism as two key challenges for SSD-based KV caching.

  • We design SARIA with Persistence-Aware SSD Admission, which uses eviction and reuse history to reduce SSD writes while preserving cache beyond DRAM residency. To mitigate limited SSD parallelism, SARIA combines direct GDS reloads with partial DRAM promotion and coordinated multi-source transfers to reduce reload latency.

  • We evaluate SARIA across full-attention and hybrid models under varying cache pressure and SSD configurations, quantifying its write–performance trade-off and the benefits

Figure

Figure 2: KV cache data path comparison among DRAM staging (w/o GDS), GDS, and SARIA. SARIA selectively persists KV cache to SSD and enables direct reloads from both DRAM and SSD. Orange and black arrows denote offload and reload paths, respectively.

of its reload mechanisms through end-to-end experiments and ablations.

References (25)