groundy
Infrastructure & Runtime

ObjectCache Moves KV Reuse to S3-Class Storage: Why Layerwise Retrieval Beats Full-Prefix Cache Hits

ObjectCache retrieves KV cache per-layer from S3, adding 5.6% TTFT at 64K context but 56-75 ms at 4K. Long-context deployments where DRAM is the bottleneck benefit most.

Published Updated 10 references
On this page5 sections

A single Llama 3.1 70B request at 128K context consumes roughly 42.9 GB of KV cache at BF16, according to Spheron’s optimization guide. Eight concurrent users push that past 343 GB, exceeding model weights by 2.4×. ObjectCache responds to this capacity wall by retrieving KV cache layer-by-layer from S3-class object storage, adding only 5.6% time-to-first-token (TTFT) overhead at 64K context, the paper reports, on a 100 Gbps RoCE cluster in its Llama 3.1 8B evaluation. The approach works at long contexts. At short ones, the calculus flips.

The 343 GB problem

GQA and FP8 quantization compress the per-request ceiling, not the aggregate. FP8 halves the cache for a 32K context at 8 users back to ~42.9 GB, per Spheron’s analysis, but the scaling law remains linear in both context length and concurrency. Double the users or double the context and the cache doubles.

The dominant open-source answer has been to tier the cache: keep hot prefixes in GPU memory, warm data in CPU DRAM, cold data on disk. LMCache implements this strategy inside vLLM, reporting 2.3–14× higher query processing rate at the same TTFT than the strongest baseline across five evaluated models, 1.9–8.1× smaller TTFT under low QPS on its document-analysis workload, and 1.5–1.8× lower mean TTFT than vLLM’s native prefill-decode disaggregation. Its own measurements also flag a cost that matters for tiering decisions: loading KV from a remote backend is slower than loading from CPU memory, and that loading delay can surpass the prefill it replaces when the input context is short or the model is small.

FlexKV, a distributed KV store from Tencent and NVIDIA, distributes KV blocks across engine instances via a CPU-backed store, and vLLM ships a FlexKV connector (FlexKVConnectorV1) alongside its built-in --enable-prefix-caching flag. The tier kept growing through 2026: FlexKV added distributed reuse over the Mooncake Transfer Engine in January and made the Store itself a distributed remote-tier backend in July, LMCache gained a native Mooncake Store adapter in April, vLLM featured the Mooncake Store as a cross-instance KV cache engine in May, and TensorRT-LLM merged a native Store connector in October, per Mooncake’s ecosystem page. LMCache’s paper evaluates three scenarios, CPU-memory offloading (capped at 500 GB in its evaluation), a centralized storage server, and prefill-decode disaggregation, and none of the three is an object-storage tier; Redis and disk backends appear in Spheron’s deployment notes rather than in the paper’s evaluation. ObjectCache’s bet is not merely that KV can live in S3, it is that the S3 request itself can be taught to serve it fast enough for the serving path.

How ObjectCache retrieves KV from object storage

The core idea: store KV tensors in S3-compatible object storage and fetch them per-layer during inference, rather than loading the entire matched prefix into memory before generation begins. The non-obvious part is the protocol co-design.

ObjectCache keeps each request’s KV as fine-grained, hash-addressed chunks rather than one monolithic blob, then extends the S3 GET with a descriptor that names the matched chunks, the model’s layer layout, the delivery order, and an RDMA target on the serving node. The storage server reads that descriptor, gathers the scattered chunk ranges, assembles one layer-major payload at a time, and pushes each layer directly into GPU-adjacent memory over RDMA, per the paper. Plain S3 semantics would charge one request per chunk per layer; the server-side gather collapses that into one assembled payload per layer, which matters when a 70B model brings roughly 80 layers to every hit. This is not a stock S3 client talking to a stock bucket. The prototype routes requests through a modified Ceph RGW v18.2.7 gateway to a DAOS v2.7.102 storage server, with a modified LMCache v0.4.2 and NIXL v1.0.0 on the serving node, running vLLM v0.19.0.

The whole design rests on one inequality: per-layer fetch time has to stay below per-layer compute time. The compute doing the masking is prefill of the uncached suffix, which proceeds layer by layer: while the GPU computes layer N over the miss tokens, the fetch for layer N+1 is already in flight. When each layer’s transfer finishes before the GPU needs it, the round trip is fully hidden and the only visible cost is filling the first layer. That inequality is why, the paper reports, the 4K penalty is a flat 56–75 ms while the 64K penalty is a 5.6% ratio: at 64K there is enough per-layer compute to mask the transfer, and at 4K there is not, so fixed costs such as RDMA session setup, first-layer transfer and control-plane exchange show through on every short request.

ObjectCache orders storage reads so data arrives in the sequence the GPU consumes it, overlapping transfer latency with compute across concurrent requests. On the benchmark cluster (100 Gbps RoCE with NIXL, a Ceph RGW gateway and DAOS behind it), this overlap holds the TTFT penalty at 64K context to 5.6% over an optimal local layerwise baseline. At 4K context the overhead is 56–75 ms, a flat penalty that dominates short-request latency budgets. The paper’s own mode selection concedes the point: payloads below a deployment threshold, about 512 MB on the prototype, are served chunkwise because aggregation overhead dominates, which places the 4K configurations on the chunkwise side of the dispatch rule.

The bandwidth scheduler matters as much as the storage medium. Under shared bandwidth caps, ObjectCache’s scheduler reduces added TTFT by 1.2–1.8× compared with equal bandwidth sharing, the same paper reports. Note where that scheduler lives: it is server-side policy, running on the modified storage server alongside the gather logic. For operators who can run that modified Ceph and DAOS path, the scheduler is the component worth evaluating first; a stock MinIO or unmodified RGW endpoint has nowhere to execute it.

Layerwise retrieval vs. full-prefix matching

The architectural distinction is narrower than it sounds, and it is not about matching. ObjectCache performs the same prefix matching as LMCache and FlexKV: it preserves the fine-grained, hash-addressed, radix-tree-indexed chunk layout those systems use, and a request reuses only the chunks its prefix actually matches, the paper states. What differs is delivery and placement. Chunkwise systems move matched blocks into memory before compute can start on any of them. ObjectCache’s storage server assembles matched chunks into layer-major payloads, so the GPU starts layer-0 compute while later layers are still transferring, and it does so from a capacity tier that scales independently of the serving cluster.

That changes the tradeoff space. Prefix caching pays off when workloads share prefixes, whatever tier serves them: repeated system prompts, shared retrieved documents in RAG. The object-storage tier wins when the retained prefix pool is what hurts, when long-lived reusable context outgrows what DRAM pools can economically hold and you would rather pay for object storage than for memory coupled to the compute deployment. The paper positions ObjectCache explicitly as a complement to hot tiers, not a replacement: GPU memory and DRAM pools keep the hottest prefixes, object storage holds the large, long-lived tail.

ObjectCache also lands in a serving world that has already accepted moving KV cache across the network. Prefill-decode disaggregation splits the compute-bound prefill phase and the memory-bound decode phase onto separate nodes and ships the KV between them, and LMCache’s own PD-disaggregation mode does the same across engines. Once KV is already a network-resident object rather than a GPU-local one, parking the cold tail of it on object storage is a smaller architectural step than it first sounds. What changes most is the cost model, not the data path: you trade interconnect bandwidth and a custom storage server for the DRAM you would otherwise overprovision.

KVLink attacks reuse from the other direction: precompute the KV cache for each document independently, then concatenate the cached documents at inference time instead of re-encoding shared context per query. On a Llama 3.1 8B and A100 setup it reports cutting latency by 96% for a 5,000-token input, and it argues the storage bill is tolerable because GPU time costs more than capacity: a 1,000-token document is about 5 KB as text but roughly 131 MB as KV cache for a Llama 3 8B model, the paper notes, against S3-standard storage at $0.023 per GB per month. The open question is quality under concatenation. Later measurements of exactly this regime, encoding chunks independently and composing the caches, find prefix-conditioned composition preserving only 47.2% of full-prefill answers on HotpotQA-500 and 37.8% on 2Wiki-500 before repair, measured on Qwen2.5-7B-Instruct, per SAFE-KV, and non-prefix reuse losing 19–100% of the context-dependent questions full prefill answers, per a 2026 repair-budget study. KVLink reports consistently outperforming baseline reuse approaches when combined with compression methods such as LLMLingua and AnLLMs, but validate against full prefill on your own corpus before trusting cached answers. The precompute-for-speed trade suits static document collections; multi-turn conversations, where context evolves per turn, get less from it.

KV-CAR compresses KV cache along the embedding dimension using lightweight per-layer autoencoders and reuses tensors across similar attention heads in adjacent layers, achieving up to 47.85% memory reduction on GPT-2 and TinyLLaMA. The compression approach is orthogonal to ObjectCache’s storage-tier approach; combining both is plausible but undemonstrated, and KV-CAR has only been evaluated on a 774M-parameter GPT-2 and a 1.1B TinyLlama.

StrategyStorage tierBest workload profileKey limitation
LMCacheCPU DRAM, disk/Redis, remote backendHigh-overlap prefixes: long system prompts, shared RAG documentsFast tiers are capacity bound; remote-backend loads can outlast short-context prefill
FlexKVDistributed CPU-backed KV storeMulti-instance vLLM sharing prefixesRequires dedicated KV infrastructure
ObjectCacheS3-class object storageLong-context (64K+), large retained prefix pools, cost-sensitive56–75 ms penalty at 4K; requires fast network
KVLinkPrecomputed per-document KVStatic document collections, RAG with known corpusConcatenation quality needs validation; not for evolving multi-turn context

Where object storage loses

The 56–75 ms added TTFT at 4K context is the constraint that matters for most production chat workloads. Suppose your p99 TTFT budget is 200 ms and prefill without caching already consumes 150 ms of it: adding the worst-case 75 ms of object-store latency lands you at 225 ms, 25 ms past the budget. At 64K context the percentage penalty shrinks to 5.6% because the baseline TTFT is large enough to amortize the fixed transfer cost, but the absolute latency still grows.

For operators on standard TCP networks or commodity S3, the 100 Gbps RoCE results are aspirational. The paper’s own sensitivity runs cap the S3-backed paths at 10 Gbps and find layerwise loading absorbs the cut except in transfer-bound corners: at 87.5% hit rate the required overlap throughput reaches 7.4 GB/s at 4K and 3.1 GB/s at 64K, and those configurations take the largest TTFT hit. The bandwidth scheduler mitigates contention, but the absolute throughput requirement does not disappear.

There is a subtler cost the percentages hide. Because the gather logic lives in the storage server, ObjectCache is S3-compatible at the API surface but not S3-portable in practice. Point it at AWS S3, or any endpoint that cannot run the descriptor-driven gather and RDMA push, and you are back to plain S3 semantics, per-chunk or range GETs over HTTP, where the per-layer overlap that makes the scheme work disappears. The object-storage framing oversells the portability; what the paper demonstrates is a custom protocol running on a modified Ceph RGW gateway and a DAOS server over an RDMA fabric.

Chunk granularity is the other knob with no free setting. Fine chunks preserve radix-tree branch points, so requests that diverge mid-block still reuse their shared head; the paper’s appendix estimates that coarsening from 16-token to 512-token chunks wastes about 1,500 GPU hours per day at 1K QPS for Llama 8B at 64K context through redundant recompute. Coarse chunks cut per-object work instead, and that work is real: Range, a KV-cache storage engine for vLLM and LMCache, measures the same 6 GiB restore taking 2.1 s as 192 objects but 3.0 s as 6,144 objects, because every layer of the storage path charges per logical object while the bytes stay the same. ObjectCache’s server-side aggregation is one answer to that bill; it is not free, which is why small payloads fall back to chunkwise delivery.

The hit-rate question is the part most likely to bite. The paper sweeps hit rate as a controlled variable (12.5%, 50%, 87.5%) rather than measuring what production traffic yields, and its own future-work list names concurrent clients, long-running prefix churn and failures as unvalidated. A near-unbounded capacity tier should retain more prefixes than a DRAM pool forced to evict, but that advantage is an implication of the design, not a benchmarked result.

What to deploy now

For self-hosted vLLM operators, the decision splits along three axes: context length, the size of the retained prefix pool relative to your DRAM budget, and latency budget.

Short-context chat (4K and below). Stay on LMCache or vLLM’s built-in prefix caching. The 56–75 ms TTFT penalty from object storage is disproportionate at these lengths, and LMCache’s headline result, 2.3–14× higher query processing rate at the same TTFT across five evaluated models, comes from CPU-memory offloading rather than a slower tier.

Long-context RAG (32K–128K) with shared prefixes. LMCache or FlexKV in distributed mode. The prefix overlap in RAG workloads (shared system prompt, shared retrieved chunks) plays to their architecture, and LMCache’s remote-backend mode reports 1.3–3× inference-throughput improvement across QPS levels on a long-context benchmark, exactly the regime where CPU memory alone stops being enough.

Long-context (64K+) with prefix pools that outgrow DRAM, cost-constrained. ObjectCache is the early candidate, with caveats. You need fast network fabric (the paper benchmarks at 100 Gbps RoCE) and a latency budget that tolerates single-digit percentage TTFT overhead. If both hold, S3-class storage at commodity prices beats provisioning hundreds of gigabytes of DRAM per inference node.

Static document collections. KVLink’s precompute-and-concatenate approach is worth evaluating. The 96% latency reduction for 5,000-token inputs is compelling, and per-document caches turn repeat queries into pure loads. It does not solve the multi-turn problem, and concatenation quality should be verified against full prefill on your corpus, but for batch RAG over a fixed corpus it may outperform all caching strategies.

None of these options are mutually exclusive. A practical deployment might use LMCache for hot prefixes in DRAM, ObjectCache for long-context overflow to S3, and KVLink for precomputed document caches. The missing piece is a unified connector that tiers across all three. vLLM’s May 2026 integration of the Mooncake Store moved toward cross-instance KV sharing, and by October 2026 TensorRT-LLM, FlexKV, LMDeploy and LMCache had all shipped Store connectors. Those integrations pool CPU, DRAM and SSD. None of the connectors documented on Mooncake’s ecosystem page reaches S3-class object storage or precomputed per-document caches, so the three-way tier remains something you assemble yourself.

References

Follow the links in the article for context. The supporting material is collected here for further reading.

  1. Prefix Caching FlexKV - vLLMdocs.vllm.aiAccessed

Join the discussion

Share a useful perspective or ask a question about this article.

Discussion guidelinesComments privacy