Bookmarks

DCGM — DCGM

NVIDIA Data Center GPU Manager

NVIDIA libraries and utilities for monitoring data centre GPUs: metrics, health, diagnostics and state management of the cards.

Also: Data Center GPU Manager

checked 9 Nov

All terms

A data centre runs many GPU servers, and each fails in its own way: memory throws errors, PCIe misbehaves, a card overheats. DCGM is NVIDIA’s user-space agent that lives on the host and watches every GPU of the node: it collects telemetry, checks health, runs diagnostics and prepares metrics for Prometheus. That is why it is installed on every GPU server.

What it can do

CapabilityHow it works
Monitoringutilisation, temperature, power, memory, ECC errors — across all of the node’s GPUs
Healthpassive checks of memory, PCIe, InfoROM, power, NVLink and the driver while the workload runs
Diagnosticsactive tests in levels: dcgmi diag -r 1 takes seconds, -r 3 adds stress tests
Groups and policiesGPUs are combined into groups; a policy ties a condition — an ECC error, a PCIe error — to a notification for the operator
Isolationsees MIG instances as separate entities with their own metrics

How it is structured

At the core is the nv-hostengine daemon: on a schedule it collects fields — telemetry, events, counters — and keeps the latest samples for its clients. Clients connect through APIs in C, Python and Go, or through the dcgmi utility. By default DCGM Exporter starts its own built-in engine instance, but it can also connect to a separately launched one over TCP or a Unix socket.

bashon the host
# what the agent discovereddcgmi discovery -l# health check of GPU group 1dcgmi health -g 1 --fetch# full diagnostics with stress testsdcgmi diag -r 3

Diagnostic levels are nested: each next level includes the previous one. Level 1 checks the deployment — libraries, driver, device state — and takes seconds; level 3 adds memory tests, PCIe tests and load stress tests, so it is run on a node taken out of service. Levels 1–4 also have aliases: quick, medium, long, xlong.

Metrics for Prometheus

DCGM Exporter is a separate component that reads metrics from the engine and serves them on port 9400 at the /metrics path; the set of metrics is defined by a collector CSV file. Prometheus scrapes it at its scrape_interval — 30 seconds in the documentation example. In Kubernetes the exporter is deployed as a DaemonSet on every GPU node — one pod per node; a Helm chart or the GPU Operator takes care of this.

MetricWhat it shows
DCGM_FI_DEV_FB_USED_BYTESGPU memory used, bytes
DCGM_FI_DEV_GPU_TEMP_CELSIUSGPU temperature
DCGM_FI_DEV_BOARD_POWER_WATTSpower draw, watts
DCGM_FI_DEV_XID_ERRORlast driver error code, XID
DCGM_FI_PROF_GR_ENGINE_UTIL_RATIOshare of time the compute engines are busy
DCGM_FI_PROF_DRAM_UTIL_RATIOshare of memory bandwidth in use

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

In depth in the references

where the topic is covered in detail