Four vLLM Replicas Beat Disaggregated Serving on My PCIe Box

Aug 13, 2026 · 8 min read

My fastest run finished zero requests

One of my first plots put an 8,192-token prompt at 0 ms. I opened the result file. It had 60 failed requests and zero completions.

I’d set max-model-len to 8,192 and asked vLLM to generate 128 tokens on top of an 8,192-token input. The prompt used the whole budget. Raising the limit to 16,384 fixed the run. I also changed the plotter to skip cells with zero completions, which the benchmark had written out with zeros for the latency metrics. Notes from the failed run.

On one A10G, I wanted to know whether I’d run vLLM or SGLang. With four A10Gs in one box, I had a different choice. I could put a full vLLM replica on each GPU, or give one GPU the prompts and leave three GPUs to generate tokens. I wanted to know whether giving decode its own GPUs was worth moving the cache across PCIe. My single-A10G benchmark.

How I spent the four GPUs

Prefill reads the prompt and builds a key-value cache. Decode uses that cache to generate one token at a time. When both share a GPU, work on a long prompt can delay a response that’s already streaming. Chunked prefill can interleave the two. Splitting the work gives decode its own GPUs and lets me size the two pools separately. Once I split them, though, the decoder needs the cache the prefiller just built. vLLM’s disaggregated-prefill notes.

The box was an AWS g5.12xlarge with four A10Gs. nvidia-smi topo -m reported PHB for all six GPU pairs. Traffic between cards went through a PCIe host bridge. There was no NVLink. I used Llama 3.1 8B Instruct on vLLM 0.24.0, with NIXL’s NixlConnector and UCX cuda_ipc for the split runs. At the cache precision I used, the model needs 128 KiB of KV per prompt token. With 8,192 tokens, the payload is about 1 GiB. Setup · Cache sizing and transfer measurements.

For the replicas, I ran one copy of the model on each GPU. A small load balancer sent each request to the replica with the fewest outstanding requests. For the split setup, I ran one prefiller and three decoders, or 1P3D. Each request uses one of those decoders. I also measured smaller configurations to see what I could do with two cards. Replica balancing code.

Figure source.

Both layouts finished 100 requests

I used randomized prompts with 2,048 input tokens, a configured output of 256 tokens, and Poisson arrivals. There’s one comparison I can make directly across the two sweeps. At one offered request per second, each layout completed 100 requests in a separate run on the same box.

Four-GPU layout at 1 QPSp99 time to first tokenp99 inter-token gap
Four independent replicas0.84 sAbout 39 ms
One prefiller, three decoders9.03 sAbout 39 ms

If I only looked at the gaps, the two runs looked about the same. The split run took much longer to get started in the tail. I wanted a serving number that counted both parts of the response. Replica sweep · Decode-scaling sweep.

At 2 QPS, only 55 responses met both targets

For goodput, I count requests that reach the first token within 2 seconds and average no more than 50 ms per output token after the first. I divide that count by the full run time. Time per output token (TPOT) is a per-request average. Inter-token latency (ITL) measures the individual gaps, so it answers a different question.

At 2 offered QPS, the four replicas completed all 100 requests and their p99 first token was 1.12 seconds. Only 55 requests met both targets. That gave me 0.913 qualifying requests per second over the 60-second run, barely above 0.911 at 1 QPS. At 4 QPS it fell to 0.197. Goodput frontier data.

With two GPUs I’d make a different choice from this sweep. Two-GPU tensor parallelism (TP=2) peaked at 0.421 qualifying requests per second, ahead of two replicas at 0.280 and the one-prefill, one-decode layout at 0.232. The four-replica result used twice the GPU budget of those runs. Frontier measurements.

Figure source.

I went back for the split run’s latency target

The saved 1P3D result says zero goodput. When I went back to find the target, the config said 300 ms for the first token and the results write-up said 2 seconds. The saved summary has aggregate timings and leaves out the threshold. I’d need per-request values to score that run again. 1P3D config · Write-up.

I could still bound the result at 1 QPS. Median TPOT was 55.98 ms, which means at most 50 of the 100 requests could have met the 50 ms target. Give the split run credit for all 50 and let each one meet the first-token target too. Over 121.54 seconds, that’s at most 0.41 qualifying requests per second. The replicas measured 0.911 at the same offered load. Split 1 QPS result · Replica results.

Giving decode another GPU helped

At 1 QPS, the split layout’s p99 first token came down from 121.7 seconds with one decoder to 70.8 with two and 9.03 with three. That tells me decode capacity mattered. It still left a wait I wanted to understand. Decode-scaling sweep.

Offered load for 1P3Dp99 first tokenp99 individual token gapp99 per-request TPOT
1 QPS9.0 s39 ms87 ms
4 QPS274.6 s38 ms492 ms
16 QPS623.4 s43 ms887 ms

The 43 ms at 16 QPS is a percentile across individual gaps pooled from all streams. At that same load, p99 startup was over ten minutes and p99 per-request time per output token was 887 ms. I’d show those numbers together on a dashboard. The 43 ms by itself would give me a very different idea of what a request felt like.

I also gave split serving a shot at longer prompts, where separating the heavier prefill work looked promising. At 4,096 input tokens, 128 output tokens, and 1 QPS, two-GPU 1P1D hit 187 seconds at p99 for the first token. Four replicas came in at 1.97 seconds. That comparison uses twice as many GPUs for the replicas. To see where the waiting happened, I ran a smaller diagnostic. Long-prompt sweep.

Where I stopped the first-token clock

The proxy asked the prefiller for one token. Then it submitted the decode request and waited for the decoder’s HTTP headers. Once those arrived, it sent the prefiller’s token to the client and started reading the decoder’s stream. The first-token timer could stop while the client was still waiting for the decoder’s output. Proxy streaming code.

I capped output at eight tokens and varied the prompt from 512 to 8,192, with 20 completed requests per layout and prompt length in the steady run. I compared 1P1D with one GPU handling both phases. At 8,192 input tokens, splitting added 134 ms to median first-token latency and 3.93 seconds to median time to finish. That’s a lot of extra wait in a response with only eight tokens. Steady diagnostic results.

Figure source.

How much of that was the copy?

The first-token difference grew by about 17 ms per 1,000 prompt tokens. The end-to-end difference grew by 471 ms per 1,000 in the steady run and 478 ms at saturated pacing. Those are differences between layouts. The next thing I wanted was a number for moving bytes by itself. Steady run · Saturated run.

On GPU pair 2→3, a CUDA test using pinned host memory measured 13.2 GB/s from device to host and 13.5 GB/s from host to device. Run the two legs in sequence and the equivalent rate is about 6.7 GB/s. Divide the cache bytes per 1,000 tokens by that 471 ms of extra application time and the equivalent rate is about 0.28 GB/s. The second figure counts all the extra time in that request path. It can include queueing, scheduling, cache transfer, and work on the decoder. I can’t split those costs with this experiment. Raw CUDA copy measurements.

The proxy trace gives me one more place to look. I measured from the end of prefill to the first raw line from the decoder stream, before the proxy filters it. At the steady 0.2 QPS load, the median was 1.0 second and p95 was 3.9 seconds. In a separate mixed-load run, those went up to 5.4 and 109 seconds. Six of the 139 mixed-load records had no first decoder line timestamp, so those percentiles come from the other 133. Mixed-load trace analysis.

What I’d run on this box

For this model and workload, I’d spend the four cards on replicas. I’d still watch the gaps under load. Replica p99 ITL reached 538 ms at 2 QPS, and I have no matching 1P3D run at that rate. On a different box I’d start by checking the interconnect, then replay traffic with realistic prompt and output lengths on both layouts. I’d also repeat the cells. With 100 requests and usually one run per cell here, a couple of slow requests can move the p99. Replica results · NVIDIA’s disaggregated-serving guide.

Run the analysis on a laptop

The command reads the committed data and writes a fresh summary to a temporary directory. Python is enough for the numbers. Install matplotlib if you want the plot too. Repository at the measured commit.

git clone https://github.com/varad-more/kv-transfer-tax.git
cd kv-transfer-tax
git checkout --detach 56b5ab5df85d5881d9dad76eb6f2d44bf833a40c
XF=results/kv-transfer-microbenchmark
OUT=$(mktemp -d)
python3 bench/analyze_xfer.py \
  --disagg-dir "$XF/kvtransfer_disagg_1p1d" \
  --coloc-dir "$XF/kvtransfer_colocated_tp1" \
  --output-dir "$OUT" \
  --p2p-json "$XF/p2p.json" --p2p-pair 2:3 \
  --disagg-trace "$XF/disagg_trace.jsonl" \
  --output-len 8 --qps 0.2

If I were renting the GPUs again, I’d send a request at the largest input and output lengths before starting the sweep. Then I’d check which URL the orchestrator probes for readiness. Mine used /v1/models against the proxy and killed a healthy stack mid-sweep. The script now uses /ready and checks the backends too. Experiment notes and fixes.