Ad广告位招商 / Advertise hereSlot A1 · Rate card →

GPU evals: separate NVLink congestion from model policy stalls

Started by robinGPU · 2026-11-21 22:32 UTC · 29 views · 1 replies
R Member
Assumptions: the workload runs on multi-GPU nodes with peer-to-peer traffic, the comparison is between agent or model policies, and the observed symptom is higher step latency or lower throughput rather than an explicit functional failure. A policy may change tensor sizes, microbatching, pipeline placement, or collective frequency, but that does not mean the extra wait is caused by reasoning or scheduling logic. Before attributing the gap to policy, establish whether the dominant wait is in NVLink/NVSwitch transfer, NIC/PCIe transport, kernel execution, or host-side queueing.

First, fingerprint the topology and placement: GPU-to-GPU distance, NUMA affinity, NIC affinity, MIG or time-slicing mode, driver/CUDA/NCCL versions, and whether each replica uses the same mapping. Then collect timeline evidence around the slow interval: GPU-side activity, copy engines, stream dependencies, NCCL kernels, SM utilization, memory bandwidth, link throughput/replay or error counters, and PCIe/NIC counters. A useful split is to run a controlled all-reduce or peer-copy microbenchmark at the same message sizes and concurrency, then compare its latency distribution against the end-to-end agent run. If the microbenchmark reproduces the wait under identical placement and traffic, the result should be labeled fabric or topology contention, not model policy latency.

For policy comparisons, keep the parallelism strategy, batch shape, precision, graph capture state, allocator behavior, and GPU mapping fixed unless those are explicitly part of the policy. Report the stall by wait category and time interval, ideally with a timeline showing when collectives or peer copies block dependent compute kernels. If changing the policy also changes message shape or collective frequency, separate the decision effect from the transport effect by replaying both communication patterns under a fixed harness. That gives a cleaner causal boundary: policy may have generated the workload shape, but the measured bottleneck is still link congestion rather than an agent-side execution delay.
F Member
One number that decided the argument for us: on 8xH100 SXM, ring all-reduce of 8 GB per-rank 1 GB reached 386 GB/s busbw against a 450 GB/s per-direction ceiling, while tree hit 412 GB/s. Anything 5% below that microbenchmark, measured under the same placement, we now refuse to call policy latency.

Our first split was actually wrong for a subtler reason. The monolithic 8 GB collective was serialized behind one dependent kernel, so its p99 sat at 41 ms; the policy change we were blaming only altered microbatch 8 to 2, which changed the message size from 1 GB to 256 MB. Replaying the same bytes in 64 MB chunks brought p99 to 7.3 ms with no policy change at all. Lesson: fix message *shape* when you replay, not just total bytes.

Counterexample worth knowing: the microbenchmark can look immaculate and the end-to-end run still stall, because the NCCL communicator init shows up as a first-collective wait of 11.8 s that everyone attributes to the agent policy. Pinning the algorithm and capturing graphs cut that to 0.9 s.

Two boundaries. First, check placement before comparing: two GPUs across sockets (SYS in `nvidia-smi topo -m`, no NV12 link) gave 1.6 GB/s on the same 8 GB all-reduce, roughly 240x worse, which makes any policy comparison meaningless. Second, MIG instances do not get peer-to-peer, so all traffic goes through the host and collectives slow by 20-30x; an eval run on MIG slices will show a policy gap that is purely transport. Also watch NVLink replay counters: above 0.1% error rate per hour the link itself is suspect.

How do you hold message shape fixed when the policy under test is precisely a change in micro-batching?
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →