Shared KV cache cuts TTFT in a small DeepSeek test; scale and transfer costs remain open
state: corroboratedheat: mediumuncertainty: mediumrelevance: mediumllm-serving disaggregated-inference kv-cacheShubh Mehta
What is this?
Shubh Mehta’s inferpd write-up documents eight experiments building disaggregated DeepSeek inference with LMCache MP, a shared host-memory KV store intended to let separate prefill and decode workers reuse common prompt prefixes. On DeepSeek V2-Lite, one prefiller and two decoders on 3× A100 reportedly delivered 8.5 of 10 requested requests/s with 0.52-second median TTFT; on V3.2 NVFP4 with 8× B200, sub-second TTFT held only to about 2 requests/s. These are the author’s deployment measurements, not evidence of production-scale economics; the planned cross-node load sweep was not run. Newer, separate arXiv research on remote KV tiers reports that remote hits can be slower than recomputing prompts and destabilize queues, while proposing sharding and asynchronous loading to address those issues. That study concerns a different model and setup, so it is relevant context—not a direct test or refutation of inferpd.
Why it matters
A useful, reproducible serving case study: a shared host-memory KV store let separate prefill and decode workers reuse prompt prefixes and cut median TTFT in the author’s V2-Lite test. But results varied sharply by model and hardware, and the deployment did not demonstrate the production-scale throughput or economics that would guide a rollout. Newer, separate research reinforces an important caveat: remote KV reuse can be slower than recomputing, and can hurt tail latency unless the data path and loading strategy are carefully engineered.
Current assessment
Shubh Mehta’s inferpd write-up describes eight experiments with disaggregated DeepSeek inference and LMCache MP, a shared host-memory KV store accessed by prefill and decode workers. The author reports that, with V2-Lite on 3× A100 (one prefiller, two decoders), the system delivered 8.5 of 10 requested requests/s at 0.52 s median TTFT; its measured ceiling was about 11 requests/s, below a stated production target of about 60. On V3.2 NVFP4 with 8× B200, sub-second TTFT held only to roughly 2 requests/s. The author presents the result as evidence that shared prefix caching is a workable architecture for prefix-heavy chat, not proof of production capacity. The planned cross-node sweep was not run because the rental provider lacked a private network between machines. A newer, separate arXiv paper (2610.21500, submitted 15 Oct 2026) studies remote KV caching for GLM-5.3 on B300s, not inferpd or DeepSeek. Its authors report remote hits slower than recomputation in one setup, severe queueing with synchronous loading, and improved results after sharding the store and adding asynchronous loading. This is relevant evidence that cache-transfer overhead and queueing can erase reuse benefits, but it does not directly validate or refute Mehta’s measurements. Useful takeaway: consider the shared-store pattern for workloads with substantial repeated prefixes, but benchmark the target model, prompt lengths, hit rate, network and storage path, tail latency, and concurrency before choosing it; available evidence does not establish its cost-effectiveness at production scale.
Measured heat
now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 1606h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
Evidence (3) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | From zero to disaggregated DeepSeek deploymentRetrieved article excerptOpen article · Retrieved 2026-09-20T18:22:56.205722+00:00 Problem
## What had to be solved
Self-hosted DeepSeek-class inference for real chat traffic: long prompts, heavy prefix reuse,
streaming API, TTFT matters more than end-to-end latency.
~80%
Prefix cache hits
~7.9k
Input tokens (P50)
~60
Peak QPS target
~2s
Prod TTFT P50 ballpark
What I tried
## Eight setups, in the order I actually ran them
Chat traffic reuses the same system prompt about 80% of the time. The question was how to stop
recomputing that prefix on every request. I started on the production-class model, burned money,
then dropped to a smaller model and compared three ways of moving the KV cache between GPUs.
Shorthand: **1P2D** means 1 GPU does prefill (read the prompt) and 2 GPUs do decode
(stream tokens). **LMCache MP** is a shared KV store in host RAM that every GPU talks to,
instead of handing cache privately from one GPU to another.
| What I tried | Model and GPUs | How KV moved | What happened |
| --- | --- | --- | --- |
| BF16 baseline | DeepSeek V3.2 on 8× H200 | All 8 GPUs used for tensor parallelism. No split between prefill and decode on one node. | The model ran, but the cluster was too expensive (~$60/hr class) to iterate on daily. |
| Classic LMCache P/D | DeepSeek V2-Lite on A100s | Prefiller pushed KV to the decoder per request, using LMCache’s built-in P/D connector. | Worked in smoke tests. Decoder ran out of memory under real concurrency. |
| NIXL P/D | V2-Lite on 2× A100 1 prefiller + 1 decoder | GPU-to-GPU KV handoff over NVLink/UCX. Each request copies cache privately to its decoder. | First stable split. Fast for a single request, but later chats could not reuse that prefix. |
| NIXL scale-out | V2-Lite on A100s 2 prefillers + 2 decoders | Same GPU-to-GPU handoff, more workers. | Throughput went up. Still no shared prefix cache across requests. |
| Shared L1 | V2-Lite on A100s 1 prefiller + 1 decoder | One central LMCache multiprocess server. Prefiller writes prefix KV once; decoder reads it back. | Prefix reuse started working. This is the architecture that matched the 80% hit rate. |
| Best V2-Lite run | V2-Lite on 3× A100 1 prefiller + 2 decoders | Same shared LMCache store, extra decode GPUs so token streaming can scale independently. | Asked 10 req/s, delivered 8.5. TTFT P50 0.52s vs ~2s in production. The headline result. |
| Production-class model | V3.2 NVFP4 on 8× B200 1 prefiller + 1 decoder | Same shared LMCache store, now on the real model and Blackwell GPUs. | The path works end to end. Sub-second TTFT only held to ~2 req/s, not the V2-Lite curve. |
| Cross-node scale-out | V3.2 NVFP4 on two 8× B200 rentals 1 prefiller + 3 decoders | Same design, split across two machines so decode can grow past one node. | Runbook is done. The provider had no private network between rentals, so the sweep never ran. |
What worked
## Shared L1 via LMCache MP + ZMQ
One **central** LMCache Multiprocess server (ZMQ port 6000) as a shared L1 KV layer in host RAM.
Every prefiller and decoder uses `LMCacheMPConnector` against the *same* store.
Prefiller writes prefix KV once; later requests with the same prefix skip full prefill.
Disagg proxy :9000
Prefiller :8100
Decoders :8200+
LMCache MP · shared L1 KV · ZMQ :6000
Results
## Asked vs delivered
Best V2-Lite stack: 1 prefiller + 2 decoders on 3× A100, shared LMCache store.
Production wanted ~2s time-to-first-token and ~60 req/s. Here is what that stack actually did.
0.52s
TTFT P50 when asked for 10 req/s
vs ~2s production ballpark
8.5 / 10
Req/s delivered vs asked
Sustained at the headline point
~11 / 60
Ceiling vs peak target
Saturates well below 60 QPS
Measured on **DeepSeek V2-Lite** (3× A100), not a production-class model.
On **V3.2 NVFP4** (8× B200) the same architecture held sub-second TTFT only to ~2 req/s.
This proves a *shared L1 KV layer is the right shape* for prefix-heavy chat, not production capacity.
### Could it keep up?
Gold: load we requested. Blue: load the stack actually served. After 10 they split:
served stalls near 11.\* That is this box’s ceiling, not 60.
### How long until the first token?
Wait time in seconds, not speed. Lower is better. Green: typical request (median).
Red: slow tail. Dashed lines: production (~2s / ~3.5s). At 10 requested, median is 0.52s.
\* One 1P2D box (3 GPUs). ~11 req/s is that hardware ceiling, not a failed design.
More QPS means more replicas at about 1:2 to 1:3 prefill:decode, e.g. 3 prefiller + 6 decoder GPUs.
Cost
## Total GPU spend
~$1,205
RunPod + Vast.ai (spot rentals)
Insights
## What I would do again
Small first
V2-Lite on cheap A100 before V3.2 on B200
Move fast
Experiments per week beat perfect plans
Shrink it
One request, one role, one path, then scale up
Technical depth
## Everything else is in the repo
Full write-ups, sweep tables, per-phase runbooks, and the resource bibliography.
- [Deep-dive index ↗](https://github.com/shubhmehta3121/inferpd/blob/master/docs/deep-dives/README.md)
- [Engineering phases & architecture ↗](https://github.com/shubhmehta3121/inferpd/blob/master/docs/deep-dives/BUILD.md)
- [Full benchmark tables ↗](https://github.com/shubhmehta3121/inferpd/blob/master/docs/deep-dives/RESULTS.md)
- [Cost breakdown ↗](https://github.com/shubhmehta3121/inferpd/blob/master/docs/deep-dives/COSTS.md)
- [Extended lessons ↗](https://github.com/shubhmehta3121/inferpd/blob/master/docs/deep-dives/INSIGHTS.md)
- [Learning resources ↗](https://github.com/shubhmehta3121/inferpd/blob/master/docs/deep-dives/RESOURCES.md)
- [Repo (runbooks under `models/`) ↗](https://github.com/shubhmehta3121/inferpd)
[Open repo ↗](https://github.com/shubhmehta3121/inferpd)
[LinkedIn ↗](https://www.linkedin.com/in/shubh-mehta-2bb173221/) | dockerd | 2 | 0 |
| 🟧 echo.blog | Publishes eight deployment experiments and runbooks, reporting successful shared-prefix caching but throughput below the production target a | Shubh Mehta | — | — |
| 🟧 hn ⭐ | When the KV Cache Is Slower Than the GPU: Scaling Remote KV TiersRetrieved article excerptOpen article · Retrieved 2026-10-18T15:35:35.357302+00:00 # Computer Science > Distributed, Parallel, and Cluster Computing
**arXiv:2610.21500** (cs)
[Submitted on 15 Oct 2026]
# Title:When the KV Cache Is Slower Than the GPU: Scaling Remote KV Tiers for Context-Parallel Prefill
Authors:[Muhammad Ibrahim](https://arxiv.org/search/cs?searchtype=author&query=Ibrahim,+M)
View a PDF of the paper titled When the KV Cache Is Slower Than the GPU: Scaling Remote KV Tiers for Context-Parallel Prefill, by Muhammad Ibrahim
[View PDF](https://arxiv.org/pdf/2610.21500)
[HTML (experimental)](https://arxiv.org/html/2610.21500v1)
> Abstract:Reusing the attention KV cache across requests is a standard way to cut prefill cost in long-context LLM serving, and production systems increasingly back the per-engine cache with a remote tier shared by every engine. We study such a tier in a disaggregated deployment of GLM-5.3, an FP8 mixture-of-experts model with multi-head latent attention (MLA), on 8xB300 nodes running prefill context parallelism (PCP8). Enabling the remote tier (LMCache with a Valkey store) left median time-to-first-token unchanged but raised the 16k-token p99 from 3.96 s to 17.3 s. Replaying a production request stream on an isolated engine, we find that a remote hit took 0.88 s against 0.31 s to recompute the prompt, and that synchronous loading turned a hit-heavy stream into an unstable queue: p99 83.32 s with the GPUs 7% busy. A two-term cost model explains both: a hit pays off only if the tier delivers more than B\* = sR (2.53 GB/s for this model and GPU), and a fixed per-hit engine cost (T0 ~ 0.33 s) means that hits on prompts shorter than about 17k tokens cannot beat recompute at any bandwidth. Guided by the model, we (i) shard the MLA KV store across PCP ranks, with a proof that the existing minimum-over-ranks lookup returns the longest cached prefix and a load protocol that can never desynchronize collectives; (ii) partition the remote tier by rank, one server instance per rank with no coordination, which raises GET bandwidth 6.3x to 10.76 GB/s; (iii) add asynchronous loading to the sharded store; and (iv) fix three client bugs that caused unbounded stalls. On the hit-heavy stream, with 98.5% of prompt tokens served from the remote tier, p99 falls from 83.32 s to 0.67 s. The sharded store raises prefill throughput by 14%, and by 34% together with an upstream kernel fix. All changes are submitted upstream to LMCache.
| |
| --- |
| Comments: |
| Subjects: | Distributed, Parallel, and Cluster Computing (cs.DC); Machine Learning (cs.LG) |
| ACM classes: | C.4; C.2.4; D.4.2 |
| Cite as: | [arXiv:2610.21500](https://arxiv.org/abs/2610.21500) [cs.DC] |
| | (or [arXiv:2610.21500v1](https://arxiv.org/abs/2610.21500v1) [cs.DC] for this version) |
| | <https://doi.org/10.48550/arXiv.2610.21500> Focus to learn more arXiv-issued DOI via DataCite (pending registration) |
## Submission history
From: Muhammad Ibrahim [[view email](https://arxiv.org/show-email/2e9a3931/2610.21500)]
**[v1]**
Thu, 15 Oct 2026 08:37:22 UTC (119 KB)
Full-text links:
## Access Paper:
View a PDF of the paper titled When the KV Cache Is Slower Than the GPU: Scaling Remote KV Tiers for Context-Parallel Prefill, by Muhammad Ibrahim
- [View PDF](https://arxiv.org/pdf/2610.21500)
- [HTML (experimental)](https://arxiv.org/html/2610.21500v1)
- [TeX Source](https://arxiv.org/src/2610.21500)
[license icon](http://creativecommons.org/licenses/by/4.0/ "Rights to this article")
### Additional Features
- [Audio Summary](https://arxiv.org/audio/2610.21500)
### Current browse context:
cs.DC
[< prev](https://arxiv.org/prevnext?id=2610.21500&function=prev&context=cs.DC "previous in cs.DC (accesskey p)")
|
[next >](https://arxiv.org/prevnext?id=2610.21500&function=next&context=cs.DC "next in cs.DC (accesskey n)")
[new](https://arxiv.org/list/cs.DC/new)
|
[recent](https://arxiv.org/list/cs.DC/recent)
| [2026-10](https://arxiv.org/list/cs.DC/2026-10)
Change to browse by:
[cs](https://arxiv.org/abs/2610.21500?context=cs)
[cs.LG](https://arxiv.org/abs/2610.21500?context=cs.LG)
### References & Citations
- [NASA ADS](https://ui.adsabs.harvard.edu/abs/arXiv:2610.21500)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2610.21500)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2610.21500)
export BibTeX citation
Loading...
## BibTeX formatted citation
×
loading...
Data provided by:
### Bookmark
[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2610.21500&description=When the KV Cache Is Slower Than the GPU: Scaling Remote KV Tiers for Context-Parallel Prefill "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2610.21500&title=When the KV Cache Is Slower Than the GPU: Scaling Remote KV Tiers for Context-Parallel Prefill "Bookmark on Reddit")
Bibliographic Tools
# Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*
Connected Papers Toggle
Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*
Litmaps Toggle
Litmaps *([What is Litmaps?](https://www.litmaps.co/))*
scite.ai Toggle
scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*
Code, Data, Media
# Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*
Links to Code Toggle
CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*
DagsHub Toggle
DagsHub *([What is DagsHub?](https://dagshub.com/))*
GotitPub Toggle
Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*
Huggingface Toggle
Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*
ScienceCast Toggle
ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*
Demos
# Demos
Replicate Toggle
Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*
Spaces Toggle
Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*
Spaces Toggle
TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*
Related Papers
# Recommenders and Search Tools
Link to Influence Flower
Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*
Core recommender toggle
CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*
- Author
- Venue
- Institution
- Topic
About arXivLabs
# arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).
[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2610.21500) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html)) | wondersky | 2 | 0 |
Interpretation history
2026-10-21T13:38:04Z
audience grounding: medium — A useful, reproducible serving case study: a shared host-memory KV store let separate prefill and decode workers reuse prompt prefixes and cut median TTFT in the author’s V2-Lite test. But results varied sharply by model and hardware, and the deployment did not demonstrate the production-scale throughput or economics that would guide a rollout. Newer, separate research reinforces an important caveat: remote KV reuse can be slower than recomputing, and can hurt tail latency unless the data path and loading strategy are carefully engineered.
Decision trace
- 11-16 03:25review_dormant28 days without material information; scheduled checks stopped
- 10-22 00:38groundA useful, reproducible serving case study: a shared host-memory KV store let separate prefill and decode workers reuse prompt prefixes and cut median TTFT in the author’s V2-Lite test. But results var
- 10-19 03:10attention_routeThe editor compared this story and chose to keep watching.
- 10-19 03:08attention_candidatematerial_reprice
- 10-19 03:08repriceNew arXiv paper (2610.21500) provides independent corroboration: studies remote KV cache tiers in disaggregated GLM-5.3 (MLA) deployment, identifies synchronous-loading pathology (p99 83s at 7% GPU ut
- 10-19 03:08groundTwo independent practitioners (Shubh Mehta's inferpd artifacts + arXiv 2610.21500 production-stream replay) converge on the disaggregated shared-KV-cache architecture Scott's frameworks pred
- 10-19 02:58drop_targetsquiet through full ladder or over cap 8
- 10-19 02:50attention_routeThe editor compared this story and chose to keep watching.
- 10-19 02:45attention_candidateattach
- 10-19 02:45promote_anchorNew arXiv paper (2610.21500) studies remote KV cache tiers in disaggregated GLM-5.3 deployment, identifying synchronous-loading pathologies and proposing sharding, partitioning, and async loading that
- 10-19 02:45attachNew arXiv paper (2610.21500) studies remote KV cache tiers in disaggregated GLM-5.3 deployment, identifying synchronous-loading pathologies and proposing sharding, partitioning, and async loading that
- 10-11 10:28groundShubh Mehta's inferpd artifacts — reproducible disaggregated DeepSeek runs with shared host-memory KV caching, explicit TTFT/capacity numbers, and runbooks — independently arrive at positions Sco
- 09-22 00:12promote_anchorThe author's experiment page is the originating artifact for the existing inferpd serving case.