Multi-GPU Systems Study · vLLM 0.34.0 · SGLang 0.5.23 · NIXL 1.5.2 · Nsight Systems 2026.1
Colocated vs. Disaggregated LLM Inference: 2× RTX 4090 (No P2P) vs. 2× H100 SXM (NVLink)
Benchmarking Colocated 2× DP against Disaggregated 1P + 1D on Qwen2.5-7B-Instruct BF16, with hardware rooflines and Nsight Systems (nsys) kernel attribution.
By Brian Woods · 2026-11-29 · back to index · resume
p2p=False) → 100.7 GiB/s (H100 NV18, ISL=4096, c=1)N=24); 1.81× higher TTFT p95nsys)1. Executive Summary
Prefill–Decode (PD) disaggregation isolates decode GPUs from long-prompt prefill compute at the cost of transferring KV cache between GPUs. To quantify where PD disaggregation wins and where interconnect transport dominates, I benchmarked Colocated 2× DP (chunked prefill) against Disaggregated 1P + 1D (NixlConnector in vLLM 0.34.0 and --disaggregation-transfer-backend nixl in SGLang 0.5.23) on Qwen2.5-7B-Instruct (BF16, 56 KiB/token KV cache) across two 2-GPU hosts: 2× RTX 4090 (NODE PCIe, p2p=False) and 2× H100 SXM (NV18 NVLink, p2p=True). Every cell used N=24 requests (1 run, 4 warmup), unique random prefixes (0% prefix-cache hit rate), ignore_eos=true, and tokenizer-verified 128-token completions (at N=24, reported p99 equals the sample max).
- Decode isolation holds, with a 1P TTFT tail trade-off: At
ISL=8192, c=8, 1P + 1D kept decode TPOT flat, cutting max TPOT by −47% on 2× 4090 (35.69 → 18.93 ms vLLM / 16.65 ms SGLang) and −40.3% on 2× H100 SXM (11.02 → 6.58 ms; −18.5% median, 8.06 → 6.57 ms). However, funneling all 8 prefills onto 1 GPU made H100TTFT p951.81× worse at 8K (787 → 1,423 ms) and 1.85× worse at 4K (371 → 685 ms), with −12% throughput (557 vs. 632 tok/s). - Without P2P, UCX TCP-loopback fallback collapses transfer by 78×: On 2× 4090 (measured pinned PCIe roofline 24.55 GiB/s), both vLLM and SGLang hit the same ~321 MiB/s NIXL/UCX fallback wall, turning an 18.2 ms hardware floor (448 MiB at ISL=8192) into 7,512 ms handoff and cutting throughput −56%. (SGLang also showed an unexplained 9,065 ms
TTFT p95outlier atISL=512.) - On H100 NV18 NVLink, NIXL reaches 100.7 GiB/s: At
ISL=4096, c=1(224 MiB), NIXL transferred in 2.22 ms (100.7 GiB/s; 41.9 GiB/s across mixed 4K/8Kc=8windows), out of 24.3 ms total client-observed handoff (leaving ~16 ms of HTTP/JSON/scheduler overhead after subtracting the ~5.9 ms first decode step).
ISL=8192, c=8 on Qwen2.5-7B-Instruct (vLLM 0.34.0). Right: Measured hardware GPU0→GPU1 roofline vs. observed vLLM NixlConnector KV-transfer throughput at ISL=4096, c=1 (224 MiB).2. Hardware & Interconnect Roofline
| Cluster | Topology (nvidia-smi topo -m) | can_device_access_peer | Measured Roofline (256 MiB) | NIXL KV Xfer (c=1, 224 MiB) | NIXL KV Xfer (c=8) |
|---|---|---|---|---|---|
| 2× RTX 4090 (24 GB) | NODE (PCIe, same NUMA) | False | 24.55 GiB/s (pinned) | 321 MB/s (697.9 ms) | 66–109 MB/s |
| 2× H100 SXM (80 GB) | NV18 (NVLink + 8× mlx5) | True | 360.9 GiB/s (365.9 @ 512M) | 100,748 MB/s (2.22 ms) | 41,891 MB/s (6.02 ms) |
3. Serving Results: Colocated 2× DP vs. Disaggregated 1P + 1D
2× H100 SXM (NV18 NVLink, vLLM 0.34.0, OSL=128, c=8, 24 reqs + 4 warmup)
| ISL | Mode | TTFT p50 / p95 (ms) | Prefill / Handoff p50 (ms) | TPOT p50 / p99 (ms) | Verified tok/s |
|---|---|---|---|---|---|
| 512 | Colocated 2× DP | 46.3 / 60.1 | — | 6.09 / 6.20 | 1,242.2 |
| 512 | Disagg 1P+1D (NIXL) | 117.3 / 138.3 | 74.5 / 38.3 | 6.03 / 6.05 | 1,155.6 |
| 4096 | Colocated 2× DP | 352.4 / 370.7 | — | 6.98 / 8.37 | 874.6 |
| 4096 | Disagg 1P+1D (NIXL) | 233.4 / 684.5 | 190.7 / 46.1 | 6.55 / 6.63 | 822.8 |
| 8192 | Colocated 2× DP | 755.2 / 787.3 | — | 8.06 / 11.02 | 632.2 |
| 8192 | Disagg 1P+1D (NIXL) | 732.2 / 1,422.8 | 679.1 / 53.3 | 6.57 / 6.58 | 556.6 |
2× RTX 4090 (PCIe, p2p=False, vLLM 0.34.0 & SGLang 0.5.23, OSL=128, c=8)
| ISL | Engine / Mode | TTFT p50 / p95 (ms) | TPOT p50 / p99 (ms) | Verified tok/s |
|---|---|---|---|---|
| 512 | vLLM Colocated 2× DP | 189.3 / 201.9 | 16.18 / 17.16 | 455.1 |
| 512 | vLLM 1P+1D (NIXL) | 687.6 / 937.4 | 16.32 / 16.38 | 357.7 |
| 512 | SGLang 1P+1D (NIXL) | 307.3 / 9,064.6 | 16.31 / 16.32 | 193.5 |
| 4096 | vLLM Colocated 2× DP | 906.8 / 1,535.7 | 21.25 / 25.17 | 280.0 |
| 4096 | vLLM 1P+1D (NIXL) | 3,611.8 / 6,732.4 | 17.25 / 17.59 | 152.9 |
| 4096 | SGLang 1P+1D (NIXL) | 3,878.7 / 5,811.8 | 16.82 / 16.90 | 148.7 |
| 8192 | vLLM Colocated 2× DP | 1,491.7 / 3,302.4 | 30.96 / 35.69 | 186.7 |
| 8192 | vLLM 1P+1D (NIXL) | 9,823.9 / 13,541.0 | 17.46 / 18.93 | 83.0 |
| 8192 | SGLang 1P+1D (NIXL) | 12,656.9 / 15,306.8 | 16.35 / 16.65 | 65.7 |
4. Nsight Systems (nsys) Kernel & MemOp Attribution (H100 SXM Decode)
Captured a 10-second nsys profile --trace=cuda,nvtx window on the H100 SXM Decode worker during ISL=8192, c=8 disaggregated serving (h100_decode_1p1d.nsys-rep, 6.1 MB; ~1.02 s active GPU kernel time in window). Note: cuda_gpu_mem_time_sum tracks explicit cudaMemcpy/memset API calls rather than NVLink IPC transfers.
| Category / Kernel | Share / Time | Instances | Median | Observation |
|---|---|---|---|---|
| Explicit CUDA MemOps (D2H + memset + H2D + D2D) | 7.75 ms (0.76% of active kernel time) | 5,154 | 1.7 μs (D2H) | Explicit memcpy/memset overhead on Decode is <1% of active compute |
FlashAttnFwdSm90 (CUTLASS SM90) | 12.2% (124.1 ms) | 4,368 | 25.1 μs | Primary Hopper attention kernel during 8K decode |
nvjet_sm90_tst_* (cuBLASLt Hopper GEMMs) | ~40%+ combined | 2,500+ | 58–351 μs | Dense QKV/O/MLP decode projections |
triton_poi_fused_mul_silu + triton_red_fused_add_rms_norm | ~5.0% (51.7 ms) | 7,812 | 2.7–7.2 μs | Fused Triton elementwise/norm ops |
FlashAttnFwdCombine | 2.3% (22.8 ms) | 4,368 | 4.2 μs | Split-K attention reduction |
5. Scope & Limitations
- Single-node 2-GPU pairs (1P + 1D vs. 2× DP) on
Qwen2.5-7B-InstructBF16; asymmetric P:D pool ratios (e.g., 1P + 3D) and cross-node InfiniBand/RDMA transfers are not tested here. - All runs used 0% prefix-cache hit rate (unique random prefixes) and fixed
OSL=128(ignore_eos=true) to eliminate cache-contamination and early-EOS length drift. - On 2× 4090,
p2p=Falsereflects the host PCIe/ACS configuration; NIXL UCX fell back to TCP loopback (~321 MB/s) in both vLLM and SGLang.