﻿# Interpret NCCL RAS collective-count skew before blaming transport

Treat RAS collective-count skew as scoped progress evidence; correlate repeated communicator snapshots with the next missing call.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-perf-nccl-ras-count-skew/
Language: en

NCCL RAS reports different collective counts across ranks, and the first diagnosis blames a slow network link. The counts describe issued-operation progress collected across processes. A transient mismatch can occur in a healthy job. Interpret communicator identity and repeated progress before converting one diagnostic snapshot into a transport failure claim.

## Match the communicator and rank

Preserve the communicator hash, rank, process, device and operation type. Applications can contain several communicators whose counts are not directly comparable. RAS summaries can group similar objects, while detailed output exposes individual members. A lower count in an unrelated communicator is not evidence that one member of the intended collective failed to arrive.

## Preserve collection scope

The RAS guide explains that state is gathered from job processes and the query itself can take time. Fast-running collectives can outpace that observation. Read collection duration, missing data and warnings with the counts. A snapshot is not an atomic capture of every GPU at one instant, and an issued-operation count is not a measurement of kernel completion or link traffic.

## Distinguish progress from persistence

Compare a bounded sequence of equivalent queries. Increasing counts can explain a transient mismatch; unchanged state warrants a more focused investigation. Preserve initialization and teardown status as well, since communicator membership can legitimately change during those phases. Missing communicator information after finalization differs from an active participant that has become unresponsive during a required operation.

## Correlate the next missing call

Use supported call or collective logs to compare the intended operation sequence, count and datatype across the suspected ranks. Then inspect the preceding application phase and its device timeline. A rank may not have submitted the next collective because earlier computation, host work or a control-flow mismatch delayed it. These causes require different interventions from a stalled transfer after matching submissions.

## Keep the inference bounded

Collect sufficient evidence to name the suspicious rank and boundary without assuming that it is the root cause. Diagnostic logging can change timing, and RAS communication has its own health conditions. Acceptance narrows where progress diverges. It does not prove network failure from count skew, establish a completed collective from equal counts or justify tuning transport before the operation sequence and participant health are understood.

## Primary references

[NCCL RAS Communicator Diagnostics](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting/ras.html).

[NCCL Logging and Subsystem Evidence](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting/logging.html).

[NCCL Collective Operation Semantics](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/usage/collectives.html).

Related reading: [Ring all-reduce: how reduced chunks circulate between ranks](/journal/learn-ring-allreduce-chunks/); [Tree collectives: dependency depth changes the communication path](/journal/learn-tree-collective-latency/).
