vLLM hangs with tensor parallel on two GPUs without NVLink: which flag fixes it?
It depends on whether your GPUs have P2P, and whether it actually works. GeForce cards such as the RTX 4090 and 5090 have no P2P with NVIDIA's drivers; vLLM then turns its custom all-reduce off by itself and NCCL uses shared memory, so --disable-custom-all-reduce and NCCL_P2P_DISABLE=1 change nothing. Workstation and data-center cards such as the RTX PRO 6000 do report P2P, and when the IOMMU, ACS or a VM breaks it, both vLLM's custom all-reduce and NCCL's P2P transport can hang: you need both settings, or better, fix the host.
The forum threads mix these cases, which is why the same flag "worked" for one person and "did nothing" for the next. p2pcheck.py tests each path separately, with a timeout, and prints the command line for your machine.
Corrected on 2026-12-05: the “No available shared memory broadcast block found in 60 seconds” line is logged at INFO level, not as a warning, and it means the writer has waited 60 seconds for the next block of the ring buffer to become free, which happens only after it has run 10 blocks ahead of a reader that stopped. The earlier text said a block “has not been read by all workers after 60 seconds”. p2pcheck.py 1.0.2 fixes two bugs in 1.0.0: on a machine with one GPU it stopped with a bare AssertionError: Invalid peer device id instead of “GPU 1 not visible (device_count=1)”, and without lspci it printed the ACS line as off/none although nothing had been checked (now unknown (lspci not installed)). The NVIDIA quote on IOMMU was rechecked: it is on the NCCL 2.32.3 GPU troubleshooting page (read 2026-12-05).
What "No available shared memory broadcast block found in 60 seconds" means
A worker is stuck; the message does not say why. vLLM's main process writes each step into a shared-memory ring buffer that every worker reads. The buffer has 10 blocks. When the writer wants the next block and that block has not yet been read by every worker, it waits; after 60 seconds of waiting it logs this line at INFO level (VLLM_RINGBUFFER_WARNING_INTERVAL, default 60) and repeats it every 60 seconds while it keeps waiting. So the line appears only after the writer has got 10 blocks ahead of a worker that stopped reading. A reader that waits for new data with a timeout logs the same line (workers that wait indefinitely do not; shm_broadcast.py; in v0.34.0 the writer's line is at line 764, max_chunks: int = 10 at line 507). The text itself suggests "hanging or doing some time-consuming work (e.g. compilation, weight/kv cache quantization)". Because it is INFO, a log filter set to WARNING hides it.
Checked on CPU by driving vLLM 0.34.0's own MessageQueue with one writer and two readers and VLLM_RINGBUFFER_WARNING_INTERVAL=2: one reader stopped after 3 messages, the writer wrote 10 more without waiting, then waited 7 seconds for the next block and logged INFO ... [shm_broadcast.py:764] No available shared memory broadcast block found in 2 seconds. three times. How far a real server's main process gets before the line appears was not observed.
With tensor parallel on PCIe GPUs, the usual stuck point is an all-reduce: one GPU waits for data that the other GPU wrote over a P2P path that does not deliver. That is the case this page is about. If every check below passes, look elsewhere: model loading, torch.compile, or one rank that crashed.
Which all-reduce does vLLM use on your GPUs?
vLLM v0.33.0 has five all-reduce paths for tensor parallel on CUDA. On one node with consumer or workstation GPUs, only two of them can turn on:
| Path | On for RTX 3090 / 4090 / 5090, RTX PRO 6000 (sm 8.6, 8.9, 12.0)? | Condition in the v0.33.0 source |
|---|---|---|
| Custom all-reduce (vLLM's own kernel over CUDA IPC + P2P) | only if the driver reports P2P, 2 GPUs, messages under 8 MiB | World size in {2, 4, 6, 8, 16}; more than 2 PCIe-only GPUs are refused unless all pairs are NVLink; then P2P must be reported. VLLM_SKIP_P2P_CHECK defaults to 1, so vLLM trusts torch.cuda.can_device_access_peer and does not run its real IPC test. With 0, the test result is saved in ~/.cache/vllm/gpu_p2p_access_cache_for_<visible GPU ids>.json (under VLLM_CACHE_ROOT) and reused on later starts; delete that file after changing the host setup. Default max size 8 MiB when the GPU is not in its size table (custom_all_reduce.py, envs.py) |
| NCCL (PyNccl) | always; carries everything custom all-reduce does not | NCCL picks P2P when the driver allows it, otherwise SHM (shared host memory). NCCL_P2P_DISABLE=1 forces SHM. |
| PyTorch symmetric memory | no | Size table has only sm 9.0, 10.0, 10.3, 10.7, and it needs multicast (symm_mem.py, all_reduce_utils.py) |
| FlashInfer all-reduce | no | Size table has only sm 9.0, 10.0, 10.3, 10.7; otherwise "not supported for world_size" (flashinfer_all_reduce.py) |
| FlashInfer PCIe IPC all-reduce | off by default | Opt-in with VLLM_ALLREDUCE_USE_FLASHINFER_PCIE_IPC=1 |
So on two PCIe GPUs there are exactly two places a P2P problem can hang vLLM: the custom all-reduce, and NCCL's P2P transport. --disable-custom-all-reduce removes the first, NCCL_P2P_DISABLE=1 the second. The log line Custom allreduce is disabled because your platform lacks GPU P2P capability or P2P test failed means the first was never on.
Causes, how they show, and the fix
| Cause | What you see | What p2pcheck.py shows | Fix |
|---|---|---|---|
| GeForce card, no P2P (normal, not a bug). NVIDIA: "p2p is not supported for GPU<->GPU P2P" on RTX 50 series (NVIDIA forum, 2025-03-13); same for RTX 4090 (2023) | The "lacks GPU P2P capability" warning; TP works but is slower than you hoped | peer report no; NCCL via SHM; everything PASS | Nothing to fix. The flags only silence the warning. |
| P2P reported, IOMMU translating (bare metal) | Hang at worker init or the first request, then the 60-second message; sometimes wrong output | peer yes; IPC write or copy FAIL/HANG; IOMMU translated (DMA) | Boot with iommu=pt or turn IOMMU / VT-d off in the BIOS. Until then: --disable-custom-all-reduce and NCCL_P2P_DISABLE=1. NVIDIA: "On Linux bare-metal systems, however, CUDA and the NVIDIA driver stack do not support IOMMU-enabled PCIe peer-to-peer memory transfer" (NCCL 2.32.3 GPU troubleshooting, read 2026-12-05; the NCCL 2.30.3 troubleshooting page does not have this sentence). The original reporter of vllm#30682 (2× RTX PRO 6000) fixed it with iommu=pt. |
| ACS on a PCIe bridge | Very slow all-reduce or a hang | ACS on for a bridge above a GPU (needs root) | Disable ACS in the BIOS, or with setpci as NCCL's guide shows. Only on bare metal. |
| Virtual machine (Proxmox, ESXi passthrough) | As above; IOMMU cannot be turned off because passthrough needs it (forum, 2025-11) | VM detected; P2P tests fail or peer no | Keep --disable-custom-all-reduce and NCCL_P2P_DISABLE=1. NCCL: "Virtual machines require ACS to function, hence disabling ACS is not an option." |
| Driver bug in cuMem host memory, drivers 560–575 on GPUs without P2P | NCCL WARN Cuda failure 217 'peer access is not supported between these two devices' | NCCL default ERROR, NCCL_CUMEM_HOST_ENABLE=0 PASS | Driver r580 or later, or NCCL_CUMEM_HOST_ENABLE=0 (NCCL#1838; vLLM troubleshooting) |
| Old GeForce driver that reported P2P falsely (RTX 4090, drivers before 525.105.17) | Hangs and crashes in multi-GPU jobs | peer yes on a GeForce card; IPC write fails | Update the driver; with 525.105.17 the CUDA samples "report that P2P is not supported" (NVIDIA forum, 2023-03-31) |
| Small /dev/shm in a container | NCCL errors or hangs even with P2P off | All NCCL runs fail; /dev/shm under 1 GiB | Run with --ipc=host or --shm-size (vLLM's Docker docs); NCCL suggests --shm-size=1g --ulimit memlock=-1 because it "creates shared memory segments, traditionally in /dev/shm" (NCCL runtime issues). One user in vllm#30682 reported a larger shm helped. |
| Custom all-reduce hangs, cause unknown (seen on 8× RTX PRO 6000 across two NUMA nodes, vLLM 0.17.0) | Init hang that goes away with --disable-custom-all-reduce (forum, 2026-04-11, no maintainer answer) | With --vllm: custom all-reduce on HANG, off PASS | --disable-custom-all-reduce |
Patched open kernel modules that force P2P on GeForce cards exist. NVIDIA does not support them, and this page does not cover them.
Check your machine with p2pcheck.py
One Python file, no packages beyond the PyTorch you already run vLLM with. Run it in the same venv or container as vLLM:
curl -O https://erimaki-kobo.github.io/en/vllm-consumer-multi-gpu-p2p-check/p2pcheck.py
python3 p2pcheck.py # GPUs 0 and 1
python3 p2pcheck.py --gpus 0,1,2,3 # more GPUs
python3 p2pcheck.py --vllm # also run vLLM's own TP all-reduce
python3 p2pcheck.py --json report.json --verbose
Each check runs in its own process. A check that does not finish within --timeout seconds (default 60) is killed and reported as HANG, so the script never freezes your shell the way vLLM does.
| Check | What it does | Why |
|---|---|---|
| host | IOMMU domain type of each GPU (/sys/bus/pci/devices/<gpu>/iommu_group/type: DMA = translated, identity = passthrough), iommu= kernel arguments, ACS on every bridge above each GPU (lspci -vvv, root), VM / WSL / container, /dev/shm size | Host causes in the table above |
| topo | nvidia-smi topo -m link type and nvidia-smi topo -p2p r / w for the pair | What the driver claims |
| peer | torch.cuda.can_device_access_peer for every pair; versions of PyTorch, CUDA, NCCL, vLLM | This is what vLLM's custom all-reduce decides on by default |
| ipc | vLLM's real P2P test (the one VLLM_SKIP_P2P_CHECK=0 turns on): process A allocates on GPU i and fills with 1, process B opens it via CUDA IPC from GPU j and writes 2, both read it back. Run at 1 KiB like vLLM, and again at 64 MiB | Custom all-reduce uses exactly this path; a broken IOMMU setup can pass a tiny test and fail a large one |
| copy | 256 MiB of random data GPU i → GPU j, compared byte for byte, plus GB/s | Catches silent corruption; the GB/s tells P2P from host staging |
| nccl | All-reduce at 512 B, 64 KiB, 1 MiB, 8 MiB, 64 MiB with NCCL defaults, with NCCL_P2P_DISABLE=1, and with NCCL_CUMEM_HOST_ENABLE=0 if the default failed; checks the result and reads the transport from NCCL_DEBUG=INFO (via P2P/IPC, via P2P/CUMEM, via SHM) | vLLM's own sanity script (troubleshooting) reduces 128 floats with no timeout; larger messages and the A/B against P2P-off tell you which transport hangs |
| vllm (opt.) | vLLM's tensor_model_parallel_all_reduce with custom all-reduce on and off; reports whether vLLM actually enabled it | The exact path vllm serve takes |
The script ends with a verdict and a command line, for example:
verdict:
CAUSE: the driver reports P2P between these GPUs, but a real P2P write or copy failed or hung. vLLM's custom all-reduce and NCCL's P2P transport both use this path, so either one can hang.
likely why: the GPUs sit in a translated IOMMU domain (type DMA). NVIDIA does not support PCIe P2P with the IOMMU translating on bare metal. Fix: boot with iommu=pt (or turn IOMMU / VT-d off in the BIOS), then rerun this script.
note: the 1 KiB test vLLM uses (VLLM_SKIP_P2P_CHECK=0) passed, so vLLM's own check would not catch this; only larger transfers fail.
CAUSE: NCCL all-reduce hangs with default settings and works with NCCL_P2P_DISABLE=1, so NCCL's P2P transport is the broken part.
run vLLM as:
NCCL_P2P_DISABLE=1 vllm serve <model> --tensor-parallel-size 2 --disable-custom-all-reduce
This is the script's verdict for a box where P2P is reported, the 1 KiB IPC test passes, the 64 MiB test and the copy hang, and the GPUs are in a translated IOMMU domain. The per-check lines above the verdict are left out.
Download p2pcheck.py (MIT).
How to read the result
- peer no, all PASS, NCCL via SHM
- Normal for GeForce. Your TP speed is bounded by PCIe through host memory; flags will not make it faster.
- peer yes, ipc or copy FAIL / HANG
- P2P is advertised but broken. Look at the IOMMU and ACS lines. Fix the host, rerun, and keep the two settings until every check passes.
- NCCL defaults HANG, NCCL_P2P_DISABLE=1 PASS
- NCCL's P2P transport is the problem. Use
NCCL_P2P_DISABLE=1(and--disable-custom-all-reduceif peer is yes). - Every NCCL run fails
- Below vLLM: driver, NCCL build or container. Use
--verboseto see the last NCCL lines. - Everything passes but vLLM still hangs
- Run with
--vllm. If that passes too, the hang is not in the collectives.
What do the workarounds cost?
NCCL_P2P_DISABLE=1 sends NCCL traffic through host memory. One user with two RTX 5090s (patched driver, custom all-reduce off in both runs) measured P2P on versus off at +2.7% mean output throughput over nine single-pass workloads, range −1.9% to +4.7% (forum, 2026-08-11). The cost of --disable-custom-all-reduce on a box where P2P works is not measured here. A box that hangs has no throughput to lose.
What this does not tell you
- We have not run p2pcheck.py on a dual-GPU machine yet. The parsers, verdict rules and the timeout path are tested without GPUs; the CUDA IPC, copy and NCCL checks follow vLLM's and PyTorch's code but are unverified on real hardware. Reports from your box are welcome.
- The
--vllmcheck calls vLLM internals that change between releases; it was written against v0.33.0. If it reports "vLLM API may differ", the other checks still stand. - Multi-node, NVLink, InfiniBand and ROCm are out of scope.
- ACS state needs root; without it the script reports "unknown".
Questions
What does "No available shared memory broadcast block found in 60 seconds" mean in vLLM?
It is a symptom, not a cause. vLLM's main process writes each step into a shared-memory ring buffer that every worker reads. The main process logs it (at INFO level) when it has waited 60 seconds for the next of the buffer's 10 blocks to be read by every worker, so at least one worker is still stuck in an earlier step. With tensor parallel on PCIe GPUs that worker is usually waiting inside an all-reduce whose data never arrives.
Do RTX 5090 and RTX 4090 support P2P?
Not with NVIDIA's drivers. NVIDIA has said that GeForce cards, including the RTX 40 and 50 series, do not support GPU-to-GPU P2P. On those cards torch.cuda.can_device_access_peer returns False, vLLM turns custom all-reduce off by itself, and NCCL moves data through shared host memory. That is slower than P2P but it is not a bug.
Should I use --disable-custom-all-reduce or NCCL_P2P_DISABLE=1?
They turn off different things. --disable-custom-all-reduce stops vLLM's own all-reduce kernel, which needs working P2P between the GPUs. NCCL_P2P_DISABLE=1 stops NCCL's P2P transport, so NCCL uses shared memory instead. If the driver reports P2P but P2P does not actually work (often an IOMMU in translated mode), both paths can hang and you need both settings. If the GPUs report no P2P, neither changes anything except silencing a warning.
Does iommu=pt fix vLLM hangs on multiple GPUs?
It fixes one cause: GPUs that support P2P but sit behind an IOMMU in translated (DMA) mode on bare metal. NVIDIA does not support PCIe P2P with IOMMU translation, and the transfers can hang or corrupt data. Booting with iommu=pt puts devices in passthrough mode. It does not help on GeForce cards without P2P, in virtual machines, or when the cause is ACS or a driver bug.
What does NCCL WARN Cuda failure 217 'peer access is not supported between these two devices' mean?
On PCIe GPUs without P2P, drivers in the 560 to 575 branches had a bug in host memory sharing through cuMem that NCCL uses for its shared-memory transport. NVIDIA fixed it in the r580 drivers. Upgrade the driver, or set NCCL_CUMEM_HOST_ENABLE=0.
Sources
- vLLM v0.33.0 source: custom_all_reduce.py, all_reduce_utils.py (IPC P2P test, size tables), cuda_communicator.py, symm_mem.py, flashinfer_all_reduce.py, shm_broadcast.py, envs.py.
- vLLM docs: Troubleshooting (sanity script,
NCCL_CUMEM_HOST_ENABLE=0), Using Docker. - NCCL 2.32.3 docs: Environment variables (
NCCL_P2P_DISABLE,NCCL_P2P_LEVEL,NCCL_CUMEM_HOST_ENABLE), GPU troubleshooting (IOMMU, ACS, VMs), Runtime and MPI issues (shared memory in containers). - NVIDIA NCCL issue #1838, Host memory sharing through CUMEM is broken in devices without p2p access (fixed in r580).
- NVIDIA developer forum: P2P issue using two RTX 5090 GPUs (2025-03); Standard CUDA tests fail with dual RTX 4090 (2023-03).
- Tom's Hardware, Nvidia confirms GeForce cards lack P2P support, 2023-02-22.
- vLLM GitHub issue #30682, No available shared memory broadcast block found in 60 seconds (2025-12 to 2026-06).
- vLLM forum: Hangs on Blackwell PCIe GPUs unless --disable-custom-all-reduce (2026-04), What means there is no P2P support (2025-11), Dual RTX 5090 TP=2: SHM vs patched P2P (2026-08).