arXiv:2610.21241cs.OSOct 2026

Manuscript Offprint

arXiv:2610.21241

Range: Decoupling KV-Cache Reuse Granularity from Storage Work

Dingsen Shi, Jiahao Zhang, Liqiang Lv, Boming Huang, Yanbo Dai, Ying He, Donger Chen, Harry Fu, Wang Feng, Song Fu

Abstract

LLM serving reuses cached key-value (KV) state to skip pre-fill, and growing contexts push that state past GPU HBM and CPU DRAM onto NVMe SSDs, placing prefix restore on the critical path of time-to-first-token (TTFT). We find that on a well-configured host-issued path the SSD is not the bottleneck: restoring the same 6 GiB of KV takes 2.1 s as 192 objects but 3.0 s as 6,144 objects, and more under layerwise loading, because every layer of the storage stack—lookup, allocation, I/O submission, GPU delivery, store, index—charges per logical object while the bytes stay the same. This cost grows with the KV footprint: longer contexts, deeper models under layerwise loading, and tensor parallelism each multiply the object count. Prior systems move this per-object work from the CPU to the GPU; the work remains per object.

This paper presents Range, a KV-cache storage engine for vLLM and LMCache built on one principle: every cost on the storage path scales with bytes or physical batches, never with logical objects. Range tickets replace per-key lookup and ownership with token metadata and physical leases; byte stripes make the on-media layout independent of reuse granularity; completion-owned GPU transfer banks batch delivery and extraction and release each layer to attention as it lands. Range keeps the kernel cuFile path and changes four lines of vLLM. On a fixed 6 GiB restore, Range's median TTFT stays at 1.79–1.80 s across a 32× range of object counts and under layerwise delivery, within 70 ms of the prefix already being resident in GPU memory, while tuned in-process LMCache rises from 2.12 s to 3.01 s. Range improves on the fastest multiprocess DRAM-bounced path by 0.44 s at coarse granularity while moving no payload through host memory, and holds layerwise reuse at the cost of coarse-grained reuse, where the best stock path takes 2.24 s.

1 Introduction

Prefix caching has become a standard optimization in LLM serving: the key-value (KV) state computed for a prompt prefix is kept and reused, so a request that shares that prefix skips its prefill and pays only for its new tokens [8, 9, 26, 30]. The benefit is bounded by how much KV a server can retain. As context windows and concurrency grow, KV footprints exhaust GPU HBM, then CPU DRAM, and serving stacks add NVMe SSDs as the next tier to keep hours of conversation and agent state reusable [5, 12, 19, 20, 28]. Once KV lives on SSD, restoring a cached prefix sits on the critical path of time to first token (TTFT): the request cannot start until its prefix is back in GPU memory.

The received view is that SSD-backed KV reuse is slow because of the path between the SSD and the GPU. Tutti attributes the slowdown to the fragmented, page-based layout of GPU memory, which turns a restore into many small I/Os, and to the CPU that must initiate each of them, and concludes that host-issued I/O—even with GPUDirect Storage—is the bottleneck [20]. Its answer, following BaM and GeminiFS, moves I/O issuance and completion onto the GPU [2, 20–22]. LMCache's multiprocess tier takes the opposite route: it keeps issuance on the host, moves it into a native worker pool that prefetches at scheduling time, and stages every byte through a pinned DRAM slab on its way to the GPU [12].

We find that on a well-configured host-issued path the SSD is not the bottleneck, and neither is the processor that issues the I/O. Restoring the same 6 GiB prefix through tuned in-process LMCache over cuFile takes 2.124 s when the prefix is cached as 192 objects and 3.012 s as 6,144 objects; under real layerwise loading, which is how a serving engine creates fine granularity, it takes 2.664 s (Figure 1). The bytes are identical. What changes is the number of logical objects, and every layer of the storage stack—lookup, allocation, I/O submission, GPU delivery, store submission, index maintenance—charges per object. This cost grows with the KV footprint itself: longer contexts add objects, layerwise loading multiplies them by the number of layers, and tensor parallelism multiplies them again. A 128K-token prefix on an 80-layer model under layerwise loading with eight-way tensor parallelism is over 300,000 objects for one request. Because the stock cost is per object while the media cost is per byte, the gap between them widens.

Figure

Figure 1: Client time to first token for the fixed-payload object-count sweep: the same cached prefix restores 6 GiB, with logical granularity varied independently of layerwise delivery. Open marks are individual requests; filled marks and ranges show the median and observed minimum and maximum for complete cells. Stock fs* is the multiprocess filesystem path at 192–3,072 objects and O_DIRECT at the finer points; missing multiprocess cells are fixture failures, and a separate rerun marker follows the repair. The HBM-resident control uses the same request.

with the KV footprint: in our measurements, doubling the payload at a fixed object size doubles the stock path’s host-side time, while the media time grows only with the bytes. Moving the per-object work to the GPU, as GPU-issued designs do, leaves it per object; hiding it behind a DRAM stage, as the multiprocess tier does, pays for it in host memory bandwidth and pinned capacity and still has no layerwise path.

This paper presents Range, a KV-cache storage engine for vLLM and LMCache built on one principle: every cost on the storage path scales with bytes or physical batches, never with logical objects. A logical object names a reusable unit of the prefix; a physical byte batch moves its payload. Range keeps the first for what it is good for—deciding where a partial hit ends—and removes it from everything else. Three mechanisms carry that representation end to end:

• Range tickets (§3) replace per-key lookup and ownership with token metadata, physical-pack generations, and request leases. Restoring per-key indexing costs 23 ms at 32 MiB objects and 911 ms under layerwise loading.

• Physical byte stripes store KV in fixed-size stripes inside 1 GiB packs, so the on-media layout and the number of native I/O calls are independent of reuse granularity: a 6 GiB restore is 192 stripe reads at every object count, and a 2016 MiB suffix store is 64 native writes.

• Completion-owned transfer banks batch GPU delivery and direct GPU extraction through eight 32 MiB banks that retain ownership until their consumers finish, and release each layer to attention as it lands. Replacing layer-ready delivery with a whole-prefix barrier costs roughly 250 ms at every point.

Range is implemented as an LMCache storage backend and vLLM connector (§3.6). It keeps the kernel cuFile path, changes four lines of vLLM, and leaves the model, the KV representation, and attention untouched. We evaluate it on a fixed 6 GiB restore across a 32× range of logical object counts and real layerwise delivery, against tuned in-process cuFile, direct I/O, the multiprocess filesystem tier, recompute, and a control in which the prefix is already resident in GPU memory (§4–§5). Range’s median TTFT stays at 1.788–1.803 s at every point, within 47–68 ms of the resident-prefix control, while stock in-process paths rise from 2.124 s to 3.012 s. At coarse granularity it improves on the multiprocess filesystem path by 438 ms while moving no payload through host memory; under layerwise loading it is 447 ms faster than the best stock path (direct I/O) and 876 ms faster than in-process cuFile.

This paper makes the following contributions:

• A diagnosis of SSD-backed KV reuse in which the cost is per logical object rather than per byte or per issuing processor—and therefore grows with context length, model depth under layerwise loading, and tensor parallelism—together with a fixed-payload sweep that isolates it.

• Range tickets, physical byte stripes, and completion-owned transfer banks: a storage representation that keeps lookup, I/O, delivery, store, and lifetime management per byte or per batch.

• An implementation in LMCache and vLLM, and an evaluation showing that fixed-payload KV reuse becomes insensitive to object count—so that Range’s cost, unlike the stock path’s, does not grow as finer granularity, deeper models, or larger contexts multiply the object count—with the cost of each mechanism attributed by ablation.

References (23)