DCGM and monitoring GPUs
NVIDIA’s Data Center GPU Manager, the GPU metrics that matter, and how to tell a busy GPU from a healthy, productive one.
- Articulate the key measures and criteria related to monitoring GPUs.
- Describe AI data center management and monitoring essentials.
DCGM (Data Center GPU Manager) is NVIDIA’s suite for managing and monitoring GPUs across a cluster. It does active health monitoring, diagnostics, alerts and governance policies such as power and clock settings, with low enough overhead to run while jobs are active.
01How DCGM is built
- The core is a library,
libdcgm.so. Usually it runs as a service, the host engine, on each node. - dcgmi is the command-line client. DCGM Exporter publishes metrics in Prometheus format for Kubernetes and dashboards (the GPU Operator can install it).
- It works on groups of GPUs, applies policies (thresholds that trigger notifications or actions), and runs diagnostics.
- Open-core: the base libraries are open source; diagnostics are proprietary. Integrations include Prometheus, Slurm-style schedulers and cluster managers.
dcgmi discovery -l # list GPUs DCGM can see
dcgmi group -l # list GPU groups
dcgmi health -s a # enable all health watches
dcgmi health -c # check health
dcgmi diag -r 1 # quick diagnostic; higher levels (2-4) run longer, deeper tests
dcgmi dmon -e 203,252,155 # stream utilisation, memory used, power
02The GPU metrics that matter
| Metric | What it tells you | Watch for |
|---|---|---|
| GPU utilisation | Share of time at least one kernel was running | Misleading on its own: 100% can still mean most SMs idle |
| SM activity / occupancy | How much of the GPU’s compute units are actually busy | The better measure of real work |
| Tensor Core activity | Use of the matrix units | Low values on AI jobs suggest wrong precision or a bottleneck elsewhere |
| Memory used and memory bandwidth | HBM capacity in use and how hard it is being read/written | Out-of-memory risk; memory-bound jobs |
| Power draw and power limit | Watts used versus the cap | Power capping can throttle performance |
| Temperature | GPU and memory temperature | Thermal throttling; cooling problems |
| Clocks and throttle reasons | Whether the GPU slowed down, and why (power, thermal) | Unexpected slowdowns |
| PCIe / NVLink throughput | Data moving in and out of the GPU | Interconnect bottlenecks |
| ECC errors | Memory errors corrected (single-bit) or uncorrectable (double-bit) | Rising counts signal failing hardware |
| XID errors | Driver-reported GPU error events with numeric codes | Crashes, hangs, hardware faults |
| Retired pages / row remapping | Memory areas taken out of service | GPU nearing replacement |
03Health checks and diagnostics
DCGM watches health continuously (power, thermal, memory, PCIe, NVLink subsystems) and can run active diagnostics: short checks before a job, deeper stress tests during maintenance or after a hardware swap. Schedulers can call DCGM to keep unhealthy GPUs out of the queue, which saves long training jobs from crashing hours in.
04Monitoring essentials for an AI data center
- Collect GPU metrics with DCGM on every node; node, network and storage metrics alongside.
- Store as time series (Prometheus) so you can see trends, not just a snapshot.
- Visualise per job, per user and per node (Grafana, BaseView).
- Alert on errors (XID, ECC), thermal and power events, and idle GPUs.
- Act: drain unhealthy nodes, rerun diagnostics, open hardware tickets.
✦Key terms: flip the cards
- Name key GPU metrics: utilisation, SM activity, memory, power, temperature, clocks/throttling, ECC, XID, interconnect throughput.
- DCGM = cluster GPU monitoring + diagnostics + policies; exporter feeds Prometheus/Grafana.
- DCGM monitors; it does not schedule jobs.
- High "GPU utilisation" does not prove the GPU is doing efficient work.
- nvidia-smi is a point-in-time single-node view; DCGM gives fleet history with an exporter.
?Quick quiz
1. Which metric best reveals failing GPU memory?
Why: ECC errors and retired pages indicate memory problems.
2. How do GPU metrics typically reach Grafana on Kubernetes?
Why: The exporter publishes metrics that Prometheus scrapes.
3. A GPU shows 100% utilisation but low SM activity. What does it suggest?
Why: Utilisation only measures time a kernel was active.
4. Which command runs a quick DCGM diagnostic?
Why: dcgmi diag with level 1 is the quick test.
5. Which tool would you use for GPU fleet health with history and alerting?
Why: DCGM is built for cluster-wide monitoring.
Score: 0 / 5
This lesson explains the reading in plain language and adds the exam context around it. Read the original too: it is short, and seeing the vendor wording helps on exam day.