Back to Blog
KV Cache vLLM LMCache Benchmark

Agent sessions back 12.7× faster than GPU-only with ADP, 3.5× with LMCache on NVMe

Awide Labs Engineering · November 19, 2026

Without an external KV cache, vLLM computes every session that has left GPU memory again from scratch: on a hybrid long-context coding model, 103.9 seconds before the first token of a 160,000-token session. LMCache with its cache on a datacenter NVMe SSD brings that session back 3.5× faster. The ADP KV cache connector brings it back 12.7× faster, in 8.2 seconds, and with 16 developers returning at once it stays 6.5× faster than GPU-only, where LMCache gives 2.5×. It does that from a cache 3.8× smaller. LMCache is a real step up from GPU-only. ADP goes far further.

12.7× vs 3.5× Speedup over GPU-only vLLM for a returning 160,000-token session: ADP KV cache connector against LMCache on a datacenter NVMe SSD.
The setup

Three ways to bring a session back

A coding agent resends its whole conversation every turn: 64,000 to 199,000 tokens in the opencode sessions we replayed. Between turns the developer reads, edits and runs tests, other sessions push the conversation out of GPU memory, and the next turn cannot start until its context is back.

There are three ways to get it back. GPU-only vLLM computes the whole prompt again. LMCache, the open-source KV cache layer, keeps the cache on a local NVMe SSD and reads it back. The ADP KV cache connector keeps it on the ADP accelerator card.

We ran all three on Qwen3.8-27B, a hybrid attention and Mamba model, on one A100-40GB, with the same image and the same vLLM flags. The only difference between the three rows is the KV cache connector.

What we compared
Qwen3.8-27B AWQ · 1× A100-40GB · vLLM
Setup Where a returning session comes from
GPU-only vLLM nowhere: no KV offload, the prompt is computed again on the GPU
LMCache 0.5.7, multiprocess mode a datacenter NVMe SSD, read with O_DIRECT so every restore comes from the drive and not from the OS page cache; a 64 GB RAM staging buffer that keeps no cache
ADP KV cache connector one ADP accelerator card, one drive behind the card

This test ran with a single drive behind the ADP card. The card spreads the cache across all the drives behind it, and its bandwidth grows linearly with the number of drives, up to 48 drives and 56 GB/s.

One long session

A 160,000-token session: 12.7× faster than GPU-only

We stored a 160,000-token prompt, cleared the GPU prefix cache and sent the next turn: the moment a developer comes back to a long session after the GPU has moved on.

Time to first token, the next turn of a 160,000-token session
Qwen3.8-27B AWQ · 1× A100-40GB · vLLM
GPU-only vLLM LMCache on NVMe SSD ADP KV cache connector
160,000-TOKEN PROMPT · GPU PREFIX CACHE CLEARED GPU-only vLLM GPU-only vLLM: 103.9 s, the prompt computed again (median of 99.7, 103.9, 104.2 s; 0 cached tokens) 103.9 s LMCache · NVMe SSD LMCache: 30.0 s, 25.6 s of it reading 42 GB from the SSD 30.0 sINCL. 25.6 S READING 42 GB ADP connector ADP connector: 8.2 s, 99% of the prompt restored 8.2 s 3.5X 12.7X 0 s25 s50 s75 s100 s TIME TO FIRST TOKEN · LOWER IS BETTER · GREEN: TIMES FASTER THAN GPU-ONLY GPU-ONLY: 0 CACHED TOKENS, MEDIAN OF 3 RUNS · RESTORED: ADP 99%, LMCACHE 99.6%

GPU-only vLLM had nothing to reuse, 0 cached tokens, and computed the prompt again: 103.9 seconds, median of three runs, a little longer than the first turn of the same prompt took (95.6 s). Every return to a long session costs the GPU a full prefill.

LMCache brought the session back in 30.0 seconds, 3.5× faster than GPU-only, and spent 25.6 of them reading 42 GB from the SSD. The ADP connector answered in 8.2 seconds: 12.7× faster than GPU-only and 3.7× faster than LMCache. All answers were correct.

Why

LMCache stores 3.8× more bytes

LMCache saves a snapshot of the Mamba state in every 800-token chunk: about 264 KB per token, against 70 KB for the connector. One 160,000-token session takes 42 GB with LMCache and 11.2 GB with ADP.

Space taken by the KV cache, and sessions per terabyte
Qwen3.8-27B AWQ · 1× A100-40GB · vLLM
LMCache on NVMe SSD ADP KV cache connector
KV CACHE STORED FOR ONE 160,000-TOKEN SESSION ADP connector ADP connector: 11.2 GB, about 70 KB per token 11.2 GB~70 KB/TOKEN LMCache · NVMe SSD LMCache: 42 GB, about 264 KB per token 42 GB~264 KB/TOKEN 3.8X 160,000-TOKEN SESSIONS THAT FIT IN 1 TB OF DRIVE ADP connector ADP connector: 89 sessions of 160,000 tokens per 1 TB 89 LMCache · NVMe SSD LMCache: 23 sessions of 160,000 tokens per 1 TB 23 STORED: LOWER IS BETTER · SESSIONS PER TB: HIGHER IS BETTER · OWN SCALE PER METRIC LMCACHE SAVES A MAMBA-STATE SNAPSHOT WITH EVERY 800-TOKEN CHUNK

Every restore reads 3.8 times as much, and that is where LMCache's 25.6 seconds go. The same drive also holds fewer sessions: one terabyte keeps 89 sessions of 160,000 tokens with ADP and 23 with LMCache. GPU-only keeps nothing off the GPU, which is why it has to compute every returning session again.

Many developers at once

Sixteen developers return at once: 6.5× faster than GPU-only

Teams do not come back one at a time. After a meeting or a long build, many developers resume their sessions in the same minute. We cleared the GPU prefix cache and sent N real opencode conversations at the same moment: 8,600 tokens each plus a new 192-token question, median of three bursts. LMCache had no evictions, so the gap between the two caches is the restore alone.

Speedup over GPU-only when N sessions return at the same moment
Qwen3.8-27B AWQ · 1× A100-40GB · vLLM
LMCache on NVMe SSD ADP KV cache connector
0×2×4×6×8× 1 session at once, LMCache: 1.8× faster than GPU-only 1.8× 1 session at once, ADP connector: 6.6× faster than GPU-only 6.6× 1 2 sessions at once, LMCache: 2.2× faster than GPU-only 2.2× 2 sessions at once, ADP connector: 5.8× faster than GPU-only 5.8× 2 4 sessions at once, LMCache: 2.7× faster than GPU-only 2.7× 4 sessions at once, ADP connector: 6.9× faster than GPU-only 6.9× 4 8 sessions at once, LMCache: 2.8× faster than GPU-only 2.8× 8 sessions at once, ADP connector: 7.1× faster than GPU-only 7.1× 8 sessions TIMES FASTER THAN GPU-ONLY, MEDIAN TIME TO FIRST TOKEN · HIGHER IS BETTER

At every N, LMCache is 1.8 to 2.8 times faster than GPU-only, and ADP 5.8 to 7.1 times. GPU-only slows down in step with the load, because every session is a full prefill on the same GPU.

Median time to first token when N sessions return at the same moment
Qwen3.8-27B AWQ · 1× A100-40GB · vLLM
GPU-only vLLM LMCache on NVMe SSD ADP KV cache connector
010203040 s 1 session, GPU-only vLLM: median 3.18 s 2 sessions, GPU-only vLLM: median 6.14 s 4 sessions, GPU-only vLLM: median 12.47 s 8 sessions, GPU-only vLLM: median 22.27 s 16 sessions, GPU-only vLLM: median 35.06 s 1 session, LMCache: median 1.76 s 2 sessions, LMCache: median 2.78 s 4 sessions, LMCache: median 4.70 s 8 sessions, LMCache: median 7.93 s 16 sessions, LMCache: median 13.76 s 1 session, ADP connector: median 0.48 s 2 sessions, ADP connector: median 1.06 s 4 sessions, ADP connector: median 1.80 s 8 sessions, ADP connector: median 3.12 s 16 sessions, ADP connector: median 5.41 s 2.5X 6.5X 35.06 sGPU-ONLY 13.76 sLMCACHE 5.41 sADP 124816 SESSIONS AT ONCE (LOG SCALE) · MEDIAN TIME TO FIRST TOKEN · GREEN: VS GPU-ONLY

With sixteen sessions at once, the median developer waits 35.06 seconds with GPU-only, 13.76 with LMCache and 5.41 with ADP. The last developer in the burst waits longest: 62.17, 22.96 and 9.59 seconds.

The slowest of 16 sessions returning at once
Qwen3.8-27B AWQ · 1× A100-40GB · vLLM
GPU-only vLLM LMCache on NVMe SSD ADP KV cache connector
16 SESSIONS AT ONCE · THE SLOWEST SESSION OF THE BURST GPU-only vLLM GPU-only vLLM: slowest session 62.17 s 62.17 s LMCache · NVMe SSD LMCache: slowest session 22.96 s 22.96 s ADP connector ADP connector: slowest session 9.59 s 9.59 s 2.7X 6.5X 0 s20 s40 s60 s TIME TO FIRST TOKEN · LOWER IS BETTER · GREEN: TIMES FASTER THAN GPU-ONLY 8,600-TOKEN SESSIONS + 192-TOKEN QUESTION · MEDIAN OF 3 BURSTS

Counted over all sessions in a burst, GPU-only computes 2,300 to 2,700 tokens per second from 4 to 16 sessions. From 4 to 16 sessions, LMCache restores 5,700 to 6,100 tokens per second: its restore path hits a ceiling, and more sessions only queue behind it. The connector restores 12,200 to 13,400, more than twice as fast as LMCache and 4.5 to 5.8 times the rate of GPU-only.

Total throughput: tokens per second summed over all returning sessions
Qwen3.8-27B AWQ · 1× A100-40GB · vLLM
GPU-only vLLM LMCache on NVMe SSD ADP KV cache connector
05k10k15k 4 sessions at once, GPU-only vLLM: 2.7 thousand tokens/s 2.7k 4 sessions at once, LMCache: 5.7 thousand tokens/s 5.7k 4 sessions at once, ADP connector: 12.2 thousand tokens/s 12.2k 4.5X total, 4 sessions 8 sessions at once, GPU-only vLLM: 2.6 thousand tokens/s 2.6k 8 sessions at once, LMCache: 6.0 thousand tokens/s 6.0k 8 sessions at once, ADP connector: 12.6 thousand tokens/s 12.6k 4.8X total, 8 sessions 16 sessions at once, GPU-only vLLM: 2.3 thousand tokens/s 2.3k 16 sessions at once, LMCache: 6.1 thousand tokens/s 6.1k 16 sessions at once, ADP connector: 13.4 thousand tokens/s 13.4k 5.8X total, 16 sessions THOUSAND TOKENS/S, SUM OVER ALL SESSIONS · HIGHER IS BETTER · GREEN: ADP OVER GPU-ONLY

The bytes explain the gap here too. In one burst of sixteen sessions, LMCache read 37.2 GB from its drive and ADP read 10.2 GB.

Bytes read from the drive in one burst of 16 sessions
Qwen3.8-27B AWQ · 1× A100-40GB · vLLM
LMCache on NVMe SSD ADP KV cache connector
ONE BURST OF 16 SESSIONS RETURNING AT ONCE ADP connector ADP connector: 10.2 GB read from the drive 10.2 GB LMCache · NVMe SSD LMCache: 37.2 GB read from the drive 37.2 GB 3.6X GPU-only vLLM reads nothing, computes every session again 010203040 GB GB READ FROM THE DRIVE · LOWER IS BETTER
On GPUs with more memory, give the connector a 4 GiB staging buffer. With it, ADP at N = 16 restored 15.6 thousand tokens per second instead of 13.4 (+16%), with a median of 4.44 s and a slowest session of 8.18 s: 7.9× faster than GPU-only at the median. On the 40 GB A100 the buffer takes memory from the KV cache, so the charts above are without it.
All results of the burst test
first token, median / slowest, s · speedup over GPU-only by median
Sessions GPU-only LMCache ADP LMCache × ADP ×
1 3.18 / 3.18 1.76 / 1.76 0.48 / 0.48 1.8× 6.6×
2 6.14 / 6.37 2.78 / 3.29 1.06 / 1.35 2.2× 5.8×
4 12.47 / 12.88 4.70 / 6.15 1.80 / 2.62 2.7× 6.9×
8 22.27 / 27.22 7.93 / 11.65 3.12 / 5.09 2.8× 7.1×
16 35.06 / 62.17 13.76 / 22.96 5.41 / 9.59 2.5× 6.5×
Under agent traffic

The connector costs nothing in generation

Last, the full workload: replayed opencode developer traces, five minutes at each level of 1, 2, 4, 8 and 16 developers, prompts of 64,000 to 199,000 tokens. At 1 and 2 developers all three setups found 72–74% of the prompt tokens in the GPU prefix cache alone. From 4 developers up, the single A100 is busy with the cold prefill of new sessions (0–8% cache hits), and time to first token was the same for all three within noise. On this traffic the one GPU was bound by new sessions, which no cache can serve.

Generation is where an offload layer can get in the way. From four developers up, generation was faster with the connector than with LMCache, and at or above GPU-only within noise: a median of 10.6, 5.1 and 4.4 tokens/s per request at 4, 8 and 16 developers, against 6.4, 5.3 and 3.5 for GPU-only and 6.4, 3.7 and 3.2 for LMCache. At 16 developers the total output was 21.0 tokens/s with ADP, 19.3 with GPU-only and 16.2 with LMCache.

Generation rate per request under replayed agent traffic
5 minutes per level · 8–22 requests per level
GPU-only vLLM LMCache on NVMe SSD ADP KV cache connector
036912 4 developers, GPU-only vLLM: 6.4 tokens/s 6.4 4 developers, LMCache: 6.4 tokens/s 6.4 4 developers, ADP connector: 10.6 tokens/s 10.6 4 developers 8 developers, GPU-only vLLM: 5.3 tokens/s 5.3 8 developers, LMCache: 3.7 tokens/s 3.7 8 developers, ADP connector: 5.1 tokens/s 5.1 8 developers 16 developers, GPU-only vLLM: 3.5 tokens/s 3.5 16 developers, LMCache: 3.2 tokens/s 3.2 16 developers, ADP connector: 4.4 tokens/s 4.4 16 developers MEDIAN TOKENS/S PER REQUEST · HIGHER IS BETTER · 8–22 REQUESTS PER LEVEL

The samples are small, 8 to 22 requests per level, so read them as a direction: the connector costs nothing in generation, while LMCache slowed generation at 8 and 16 developers.

The cost

What each setup asks of the server

  • GPU-only vLLM. No extra hardware, but every returning session is paid for again in GPU time: 103.9 seconds of prefill for one 160,000-token session.
  • LMCache. Open source and a real improvement: 3.5× on a long session, 1.8–2.8× when many sessions return. It needs 3.8 times the storage of ADP for the same sessions, and a RAM staging buffer as large as the longest prompt: 64 GB here. With 8 GB it restored nothing.
  • ADP KV cache connector. One accelerator card: 12.7× on a long session, 5.8–7.1× when many sessions return, 3.8 times less storage than LMCache, and no cost in generation.
Summary

LMCache helps. ADP helps far more: deploy the connector

Against the baseline that matters, GPU-only vLLM, LMCache on a datacenter NVMe SSD brought sessions back 1.8 to 3.5 times faster. The ADP KV cache connector brought them back 5.8 to 12.7 times faster, from a cache 3.8 times smaller. With 3.8 times the bytes to move, LMCache restored sessions more slowly than ADP in every test we ran.

For agentic workloads on hybrid models, deploy the connector.

How we measured

Test setup

Hardware and model
One A100-40GB, vLLM, Qwen3.8-27B AWQ (attention + Mamba), 245,760-token window, GPU memory utilization 0.96, prefix caching, up to 16 concurrent requests. Same image and flags for all three setups.
GPU-only vLLM
The same image and flags with no KV offload connector: a session that left GPU memory is computed again.
LMCache
0.5.7, multiprocess mode, datacenter NVMe SSD (Samsung PM9A3 class) with O_DIRECT, 64 GB RAM staging buffer that keeps no cache.
ADP
The ADP KV cache connector with one ADP accelerator card, one drive behind the card.
One long session
A 160,000-token prompt, GPU prefix cache cleared before the follow-up turn; GPU-only median of three runs.
Sessions at once
N = 1–16 opencode conversations of 8,600 tokens plus a 192-token question, median of three bursts.
Agent traffic
Replayed opencode developer traces, prompts of 64,000–199,000 tokens, five minutes per level of 1–16 developers, 8–22 requests per level.

Still computing returning sessions again?

Measure what a KV cache gives your agents, against GPU-only and against LMCache. We are happy to run the comparison on your model and your traces.

Talk to Awide Labs