Diagnosing GPU Utilization Spikes With DCGM Metrics
DCGM utilization profiling is the hardware telemetry discipline of correlating Streaming Multiprocessor activity, Tensor Core pipe occupancy, HBM bandwidth saturation, and XID error streams to uncover why GPU clusters exhibit sawtooth 0%-to-100% performance swings. Relying solely on DCGM_FI_DEV_GPU_UTIL misleads MLOps teams because that coarse counter reports 100% whenever a single stalled CUDA kernel stays resident—masking DataLoader I/O starvation, RoCEv2 collective stalls, and silent hardware faults.
Prerequisites: Enabling DCGM Profiling Counters Beyond DCGM_FI_DEV_GPU_UTIL
DCGM_FI_DEV_GPU_UTIL measures only whether at least one CUDA kernel was resident during a sample window, hiding severe under-utilization; enable DCGM profiling fields (DCGM_FI_PROF_SM_ACTIVE, DCGM_FI_PROF_PIPE_TENSOR_ACTIVE, DCGM_FI_PROF_DRAM_ACTIVE, and DCGM_FI_PROF_NVLINK_TX_BYTES) to expose real compute efficiency.
Why Coarse GPU_UTIL Hides Idle Tensor Cores
Under NVIDIA Data Center GPU Manager (DCGM), field ID 203 (DCGM_FI_DEV_GPU_UTIL) samples the fraction of time over the past window during which any compute or memory kernel occupied the device. Even if a training loop spends 80% of a kernel waiting on global memory reads or spinning on an NCCL synchronization barrier across a single warp, DCGM_FI_DEV_GPU_UTIL stays pegged at 95%–100%. By contrast, enabling DCGM 3.x hardware profiling counters exposes exact compute efficiency:
DCGM_FI_PROF_SM_ACTIVE(Field 1002): Fraction of cycles where at least one warp was active across Streaming Multiprocessors (reveals true SM residency across the chip).DCGM_FI_PROF_SM_OCCUPANCY(Field 1003): Ratio of active warps to maximum supported warps per SM (exposes low-parallelism kernel launches).DCGM_FI_PROF_PIPE_TENSOR_ACTIVE(Field 1004): Fraction of cycles Tensor Core MMA units actively execute BF16/FP8 matrix math—the real indicator of training and prefill FLOP utilization.DCGM_FI_PROF_DRAM_ACTIVE(Field 1005) & PCIe/NVLink Counters (1009–1012): Exposes HBM3 bandwidth saturation during LLM decode versus East-West NVLink or PCIe transfer bottlenecks.
Before troubleshooting, ensure nv-hostengine runs with DCGM profiling permissions enabled on bare-metal hosts (many virtualized cloud VMs restrict low-level hardware performance monitoring counters inside guest hypervisors).
Step-by-Step Sawtooth Triage: Correlating Spikes Across Compute, I/O, and XIDs

Capture 100ms dcgmi dmon traces alongside iostat and dmesg XID logs: periodic drops across all ranks point to DataLoader/storage starvation or checkpoint flushes, high SM_ACTIVE with low PIPE_TENSOR_ACTIVE indicates memory-bound kernels, and single-rank drops often signal thermal throttling or XID 31/45/79 faults.
Five-Step Sawtooth Root-Cause Triage Runbook
- Sample at 100ms Granularity With
dcgmi dmon: Standard 15-second Prometheus scrapes average away 500ms micro-stalls; capture 100ms windows across compute, HBM, and interconnect counters during an active spike. - Separate Synchronous Cluster Drops From Single-Rank Stragglers: If all 8 or 16 ranks drop to 0% simultaneously every N steps, inspect DataLoader prefetch queues or synchronous checkpoint flushes; if one rank lags while peers sit in NCCL All-Reduce waits, inspect that specific GPU and PCIe slot.
- Cross-Check NVMe Storage IOPS and CPU Wait Times: Run
iostat -xz 1on training nodes; highawaitor saturated host memory copy rates explain periodic DataLoader starvation between batches. - Audit Kernel Logs for NVIDIA XID Hardware Errors: Inspect
dmesg -Tfor XID 31 (GPU memory page fault), XID 45 (preemptive cleanup triggered by prior kernel hangs), XID 62 (microcontroller hang), and XID 79 (GPU fallen off the PCIe bus). - Check RoCEv2 ECN/PFC Pause Frames and Thermal Caps: On multi-node jobs, correlate drops in
PIPE_TENSOR_ACTIVEagainst switch pause-frame storms or GPU clock down-throttling (`clocks_throttle_reasons.hw_thermal_slowdown`).
High-Resolution DCGM Triage Commands
# 1. Stream 100ms profiling telemetry for SM, Tensor, HBM, PCIe, and NVLink counters
dcgmi dmon -e 1002,1003,1004,1005,1009,1010,1011,1012 -d 100 -c 300
# 2. Check for NVIDIA XID errors, PCIe AER warnings, and hardware thermal throttling
dmesg -T | grep -iE "NVRM: Xid|PCIe Bus Error|aer" | tail -n 30
nvidia-smi --query-gpu=index,temperature.gpu,power.draw,clocks_throttle_reasons.active --format=csv
# 3. Correlate host storage wait and DataLoader I/O saturation alongside GPU stalls
iostat -xz 1 10
Bare-Metal Observability and 24/7 XID Remediation on OneSource Cloud
In virtualized multi-tenant clouds, noisy neighbor CPU stealing, shared network congestion, and locked-down hypervisor performance counters turn sawtooth utilization debugging into guesswork. OneSource Cloud Managed AI Infrastructure paired with the OnePlus AI Orchestration Platform delivers single-tenant bare-metal GPU clusters in secure U.S. data centers with unrestricted access to full DCGM profiling counters, NVMe-oF parallel storage with GPUDirect Storage to eliminate DataLoader I/O stalls, and non-blocking Spine-Leaf RoCEv2 fabrics. Crucially, OneSource's 24/7 operations engineering team continuously monitors bare-metal XID streams (XID 31, 45, 79), thermal margins, and optical link integrity—isolating degraded hardware proactively before silent single-rank stalls cascade across distributed training jobs.
Verification: DCGM Signature Matrix and Post-Fix Stability Baselines
Verify remediation when DCGM_FI_PROF_SM_ACTIVE holds steadily above 0.85, PIPE_TENSOR_ACTIVE exceeds 0.45 during GEMM/prefill phases, NVLink/RoCEv2 counters show balanced rank throughput, and zero new XID 31/45/79 events appear over a 24-hour soak test.
DCGM Telemetry Signature Matrix and Infrastructure Baseline
Confirm root-cause closure by matching observed post-fix metrics against the diagnostic baseline matrix below (complementing our four-layer GPU cluster observability architecture):
| Observed DCGM Signature | Primary Root Cause | Remediation Action | Verified Post-Fix Threshold |
|---|---|---|---|
All ranks drop to 0% SM_ACTIVE every 10–50 steps |
PyTorch DataLoader CPU/storage starvation or blocking checkpoint write | Increase num_workers, enable pin_memory, stage shards on NVMe-oF GDS |
SM_ACTIVE ≥ 0.85 steady with <5% variance across steps |
SM_ACTIVE > 0.80 but PIPE_TENSOR_ACTIVE < 0.20 |
HBM-bandwidth-bound decode kernels or un-fused small elementwise ops | Use FlashAttention-2, CUDA graphs, or torch.compile fusion |
PIPE_TENSOR_ACTIVE ≥ 0.45 on training/prefill GEMM steps |
1 rank drops; peers hold high SM_ACTIVE waiting in NCCL |
Single-node thermal throttling, PCIe downgrade, or XID 31/45/79 fault | Drain node, verify NVLink/PCIe Gen5 x16 width, RMA faulty GPU/riser | Balanced NVLink/RoCEv2 TX/RX bytes & 0 new XID events in 24h |
| Random multi-node jitter despite clean local hardware | Virtualized cloud noisy-neighbor CPU/network contention | Migrate workloads to dedicated bare-metal RoCEv2 topology | P99 step-time jitter < 3% across consecutive 1,000-step runs |
| OneSource Cloud (Managed AI Infrastructure) | Full bare-metal DCGM counters, 24/7 XID/thermal remediation, NVMe-oF GDS storage, zero hypervisor steal time | Continuous automated hostengine/Redfish telemetry & proactive node drain | Deterministic cluster throughput with zero cross-tenant interference |
24-Hour Soak Verification Snippet
# Verify zero uncorrected ECC or XID hardware faults and stable SM/Tensor throughput post-fix
dcgmi diag -r 2
dmesg -T | grep -c "NVRM: Xid"
FAQ
Why can DCGM_FI_DEV_GPU_UTIL show 100% while LLM inference throughput drops?
DCGM_FI_DEV_GPU_UTIL only records whether at least one CUDA kernel was active during the sampling interval—even a stalled memory-bound kernel or an NCCL spin-wait loop reports 100%. Inspecting DCGM_FI_PROF_PIPE_TENSOR_ACTIVE alongside DCGM_FI_PROF_DRAM_ACTIVE reveals whether Tensor Cores are performing matrix math or idling on memory and network bottlenecks.
How does OneSource Cloud Managed AI Infrastructure catch and resolve GPU utilization drops caused by hardware faults?
OneSource Cloud continuously monitors bare-metal DCGM profiling telemetry, PCIe/NVLink link counters, and NVIDIA XID events (such as XID 31, 45, and 79) 24/7, automatically draining degraded nodes and orchestrating hardware RMA without cross-tenant interference. Combined with NVMe-oF parallel storage and non-blocking Spine-Leaf RoCEv2 networking, engineering teams eliminate both infrastructure-induced stalls and manual hardware triage.
Offload 24/7 bare-metal GPU health monitoring and XID remediation with OneSource Cloud Managed AI Infrastructure.