Quick Take
Quick Take: Most GPU clusters deliver 40 to 50 percent of the compute they were bought for. Four causes split the loss almost evenly: collective communication stalls, storage that cannot feed the cards, idle gaps between scheduled jobs, and small jobs occupying whole GPUs. Seven levers close that gap in two to three weeks, with no new hardware.
Where Utilization Is Lost
Quick Answer: Four failure classes account for the gap between a cluster's rated and delivered throughput. NCCL communication stalls cost about 30 percent, storage pipelines that leave GPUs waiting on data cost 25 percent, idle windows between scheduled jobs another 25 percent, and small jobs holding whole GPUs the remaining 20 percent.
| Loss Category | Impact | Root Cause | Fix Lever |
|---|---|---|---|
| NCCL communication stalls | 30% | Suboptimal algorithm, small buffers | NCCL tuning |
| Storage IO pipeline | 25% | GPU stalled waiting on data load | IO optimization |
| Job scheduling gaps | 25% | GPUs idle between tasks | Scheduler + backfill |
| No GPU sharing | 20% | Small jobs occupy full GPU | MPS/MIG/time-slicing |
Lever 1: Measure Your Baseline
Quick Answer: Tuning without a baseline is guesswork, so install DCGM on every node and export its metrics to Prometheus first. Record per-GPU utilization, memory footprint, NVLink bandwidth, temperature, and power draw, then chart engine-active time, NVLink transmit bytes, temperature, and power in Grafana. Those five series tell you which lever to pull.
Install DCGM and Prometheus
Establish per-GPU utilization, memory, NVLink bandwidth, temperature, and power draw baselines before tuning.
$ dcgmi discovery -l
$ nvidia-smi dmon -s pucvmet -d 1
# Deploy Prometheus DCGM exporter
$ docker run -d --gpus all --rm --net=host \
-v /proc:/proc nvidia/dcgm-exporter:3.3.0
# Key metrics to track in Grafana
- DCGM_FI_PROF_GR_ENGINE_ACTIVE
- DCGM_FI_PROF_NVLINK_TX_BYTES
- DCGM_FI_DEV_GPU_TEMP
- DCGM_FI_DEV_POWER_USAGE
Lever 2: Tune NCCL Communication
Quick Answer: B300 delivers 1.8 TB/s of NVLink 5 bandwidth per GPU, and the wrong collective algorithm wastes roughly 30 percent of it. Select the Ring algorithm with the Simple protocol, turn on NVLink SHARP in-network reduction, raise channel counts and buffer size, then confirm with all-reduce benchmarks above 100 GB/s inside an eight-GPU node.
B300-Optimized NCCL Configuration
High Impact
B300's NVLink 5 provides 1.8 TB/s per GPU. The wrong NCCL algorithm wastes 30% of this bandwidth.
export NCCL_ALGO=Ring
export NCCL_PROTO=Simple
export NCCL_NVLS_ENABLE=1
export NCCL_MIN_NCHANNELS=16
export NCCL_BUFFSIZE=16777216
export NCCL_IB_GID_INDEX=3
export NCCL_IB_QPS_PER_CONNECTION=8
export NCCL_IB_SPLIT_DATA_ON_QPS=1
# Benchmark after tuning
$ nccl-tests/build/all_reduce_perf -b 128M -e 8G -f 2 --ngpus 8
Ring algorithm outperforms Tree on NVLink 5 due to B300's full-bandwidth NVLink topology. NCCL_NVLS_ENABLE=1 enables NVLink SHARP in-network reduction. Expected all-reduce bandwidth: 100+ GB/s for 8-GPU within a node.
Lever 3: Optimize Storage IO Pipeline
Quick Answer: Data starvation wastes about 25 percent of available compute, so aim for at least 80 GB/s of read throughput per SuperPOD scalable unit. Enable priority flow control and congestion notification thresholds for lossless RoCE, reach storage over NVMe fabrics, stage each dataset onto local NVMe before a run, and watch stall counters continuously.
Eliminate GPU IO Stalls
Medium Impact
GPU stalls on data loading waste 25% of available compute. Target: 80+ GB/s read throughput per SuperPOD SU.
- ◆ Configure RoCE with PFC (Priority Flow Control) on storage fabric
- ◆ Set ECN (Explicit Congestion Notification) thresholds for lossless RoCE
- ◆ Use NVMe-of (NVMe over Fabrics) for storage access
- ◆ Pre-cache training data to local NVMe before training starts
- ◆ Monitor IO stall with nvidia-smi dmon "gv" (GPU virtual channel stall)
$ fio --name=read --ioengine=libaio --iodepth=64 \
--rw=read --bs=1M --size=64G --numjobs=16 --runtime=60
# Check GPU IO stall
$ nvidia-smi dmon -s gv -d 1
Lever 4: Configure Job Scheduler
Quick Answer: Backfill scheduling on its own recovers 15 to 20 percentage points. Switch Slurm to the backfill scheduler, shorten its interval from the default 60 seconds to 30, treat GPUs as consumable resources, and split training and inference into separate partitions with their own time limits so eight-GPU jobs never fragment against single-GPU work.
Slurm Configuration for Maximum Throughput
High Impact
Slurm backfill scheduling alone can recover 15-20 percentage points of utilization.
SchedulerType=sched/backfill
SchedulerParameters=bf_interval=30,bf_max_job_test=100,\
bf_yield_interval=100000,bf_continue
SelectType=select/cons_tres
SelectTypeParameters=CR_GPU
# Partition configuration
PartitionName=train Nodes=node[01-32] Default=YES \
DefMemPerGPU=80000 MaxMemPerGPU=160000 \
MaxTime=7-00:00:00 State=UP
PartitionName=infer Nodes=node[33-48] Default=NO \
Priority=100 MaxTime=2-00:00:00 State=UP
Key settings: backfill interval at 30 seconds (default 60), CR_GPU for GPU-as-consumable-resource, separate partitions for training (8 GPUs) and inference (1-2 GPUs) to prevent resource fragmentation.
Lever 5: Implement GPU Sharing
Quick Answer: Sharing is the biggest single win, worth 25 to 35 percentage points. B300 does not support MIG, so use Multi-Process Service for production inference and preprocessing, where up to 48 processes share one GPU with weak isolation, and reserve unlimited time-slicing for development and low-priority batch work that tolerates no isolation.
MPS vs MIG vs Time-Slicing
Highest Impact
GPU sharing recovers 25-35 percentage points of utilization. Choose the right mechanism:
| Mechanism | Isolation | Max partitions | Best for | B300 support |
|---|---|---|---|---|
| MPS (Multi-Process Service) | Weak | 48 | Batched inference, data preprocessing | Full |
| MIG (Multi-Instance GPU) | Strong | 7 | Multi-tenant, security-sensitive | N/A (no MIG on B300) |
| Time-Slicing (k8s device plugin) | None | Unlimited | Dev/ test, low-priority batch | Full |
Recommended for B300: MPS for production inference workloads. Time-slicing for dev/test. Since B300 does not support MIG, MPS with CUDA_MPS_PIPE_DIRECTORY isolation is the best option for multi-tenant clusters.
$ nvidia-cuda-mps-control -d
# Set per-process GPU fraction (0.0 - 1.0)
$ export CUDA_MPS_ACTIVE_THREAD_PERCENTAGE=25
# k8s time-slicing config
$ kubectl apply -f time-slicing-config.yaml
Lever 6: Pack Jobs and Gate Queues
Quick Answer: Gating rules cut fragmentation. Set a minimum GPU count per job so single-GPU work cannot break up eight-GPU nodes, cap each team at 40 percent of the cluster through fair-share groups, and let high-priority training preempt development jobs. One cluster dropped fragmentation from 32 to 11 percent, recovering 21 percent of GPU-hours.
Reduce Fragmentation
Medium Impact
- ◆ Set minimum GPU count per job to prevent 1-GPU jobs fragmenting 8-GPU nodes
- ◆ Implement fair-share groups: each team capped at 40% of cluster
- ◆ Set QoS preemption: high-priority training jobs preempt low-priority dev jobs
- ◆ Configure node-level GPU exclusivity: cons_tres with CR_GPU prevents oversubscription
One cluster using these gating rules saw fragment percentage drop from 32% to 11%, recovering 21% of total GPU-hours.
Lever 7: Validate and Monitor
Quick Answer: Lock the gains in with alerting. Raise a warning when average engine-active time stays below 70 percent for 15 minutes, and flag thermal throttling when any GPU exceeds 85 degrees Celsius for five minutes. A Grafana dashboard should show cluster and partition averages, the five weakest nodes, a temperature heatmap, and per-link NCCL bandwidth.
Continuous Monitoring with Alerts
Low effort, high maintenance value
- alert: LowGPUUtilization
expr: avg by (gpu) (DCGM_FI_PROF_GR_ENGINE_ACTIVE) < 0.7
for: 15m
labels:
severity: warning
- alert: HighTempThrottling
expr: DCGM_FI_DEV_GPU_TEMP > 85
for: 5m
Set up a Grafana dashboard tracking: cluster-wide avg utilization, per-partition utilization, top-5 underutilized nodes, GPU temperature heatmap, and NCCL bandwidth per link.
Expected Improvement by Lever
Quick Answer: The roadmap compounds from a 40 percent baseline over roughly ten working days. NCCL tuning adds 12 points in a day to reach 52 percent, storage work adds eight more, scheduler changes another ten, GPU sharing the largest 15, and job packing a final five to land near 90 percent.
From 40% to 85%: The Roadmap
| Lever | Impact | Effort | Cumulative utilization |
|---|---|---|---|
| Baseline | - | - | 40% |
| NCCL tuning | +12pp | 1 day | 52% |
| Storage IO | +8pp | 3 days | 60% |
| Scheduler config | +10pp | 1 day | 70% |
| GPU sharing | +15pp | 3 days | 85% |
| Job packing | +5pp | 2 days | 90% |
Common Pitfalls
Quick Answer: Four mistakes undo the work. Chasing a sustained 100 percent signals queuing, so treat 85 to 90 percent as the economic ceiling. High compute with low memory use usually means a badly sized batch. Training wants Ring collectives while inference wants Tree. Unchecked throttling above 85 degrees quietly costs 15 to 30 percent throughput.
Mistakes to Avoid
- Chasing 100% utilization: Sustained 100% GPU utilization indicates queuing and contention. Target 85-90% as the economic optimum — above that, job wait times grow exponentially.
- Ignoring memory utilization: A GPU at 95% compute but 20% memory is likely running a suboptimal batch size. Profile memory before tuning compute.
- One-size-fits-all NCCL settings: Training (all-reduce heavy) and inference (small message sizes) need different NCCL_ALGO settings. Use NCCL_ALGO=Ring for training, NCCL_ALGO=Tree for inference.
- Skipping thermal checks: GPU throttling at 85°C+ silently reduces throughput by 15-30%. Always validate cooling before production tuning.
Frequently Asked Questions
Quick Answer: Realistic targets run 40-50% on untuned clusters, 75-85% after tuning, and above 90% only with aggressive job packing and GPU sharing. Idle capacity usually traces to collective-library defaults and storage stalls rather than faulty accelerators, so instrument DCGM telemetry and fix the pipeline before buying more nodes.
Industry average is 40-50%. Well-optimized clusters achieve 75-85%. Best-in-class exceeds 90% by combining job packing, GPU sharing, and intelligent scheduling.
Common causes: suboptimal NCCL config (30%), slow storage IO causing GPU stalls (25%), inefficient scheduling leaving GPUs idle (25%), and no GPU sharing for small workloads (20%).
Use NVIDIA DCGM with Prometheus and Grafana. Track: GPU utilization %, memory utilization %, NVLink bandwidth, temperature, power draw, PCIe throughput.
Set NCCL_ALGO=Ring, NCCL_PROTO=Simple, NCCL_NVLS_ENABLE=1, NCCL_MIN_NCHANNELS=16, NCCL_BUFFSIZE=16777216. These leverage B300's 1.8 TB/s NVLink 5.
BENQUAN GLOBAL LIMITED provides GPU cluster tuning services including NCCL profiling, storage IO analysis, and scheduler optimization worldwide.
Key Takeaway
Key Takeaway: Instrument first with DCGM, then work the levers in payback order: NCCL algorithm and buffer settings, storage staging onto local NVMe, Slurm backfill, and MPS sharing. Expect roughly ten working days to move a 40 percent cluster past 85. BENQUAN GLOBAL LIMITED supplies GPU cluster hardware and InfiniBand fabric with competitive pricing.