Debug A Slow All-Reduce On A Freshly Built Training Cluster

Last updated: November 29, 2026

Quick Overview

A customer reports that their multi-node training job on a new 64-node GPU cluster runs 40% slower than expected, with NCCL all-reduce dominating step time; walk through how you would find the cause.

Crusoe
Software Engineering Fundamentals
Software Engineer
Crusoe
November 29, 2026
Software Engineer
Onsite
Software Engineering Fundamentals
Medium

0

0

0 solved


A customer reports that their multi-node training job on a new 64-node GPU cluster runs 40% slower than expected, with NCCL all-reduce dominating step time; walk through how you would find the cause.

Crusoe hands customers InfiniBand-connected GPU clusters for large training runs, and a single bad link or misconfigured node can slow every step because collectives run at the speed of the slowest participant. The interviewer checks systematic isolation, knowledge of GPU networking, and customer communication.

What the Interviewer Expects
  • Establishes a baseline with a standalone collective benchmark before blaming the model code
  • Bisects the cluster to find a slow node, link or switch
  • Knows the common culprits: link degraded to lower speed, GPUDirect RDMA disabled, wrong NIC to GPU affinity, PCIe downtraining, thermal throttling
  • Uses counters and logs such as NCCL debug output and port error counters
  • Explains how to prevent recurrence with burn-in and health gating
Key Topics to Cover
NCCL collectives
InfiniBand
GPUDirect RDMA
Performance debugging
Health checks
How to Approach This
  1. Apply SOLID principles. Single Responsibility makes code testable, Open/Closed makes it extensible.
  2. Choose data structures based on access patterns, not familiarity.
  3. Prefer immutable data and message passing over shared mutable state for concurrency.
  4. Design APIs with RESTful conventions, versioning, meaningful errors, and pagination from day one.
Possible Follow-up Questions
  • How would ring versus tree all-reduce behave differently with one slow link?
  • How would you detect this automatically before the customer notices?
  • The cause is one flaky cable. How do you fix it without stopping the customer's job?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Goal: find why all-reduce is slow and restore expected bus bandwidth, while keeping the customer informed. Expected numbers come from the hardware: for example 8 GPUs per node with 8 x 400 Gb/s NICs s...

High-Level Design

Work from the outside in. 1) Reproduce with all_reduce_perf across all 64 nodes, outside the customer's code. 2) If slow, bisect: run within each node (NVLink only), then pairs of nodes, then halves...


Submit Your Answer
Markdown supported

Related Questions