AI Operations
22% of the NCA-AIIO exam. Read each objective's key points, open “What NVIDIA says” to see the source, then practise.
Essential AI Knowledge · AI Infrastructure · AI Operations
3.1 Data center management and monitoring
Reading Xid errors and choosing the recovery action NVIDIA documents.
Key points
An Xid is an error report that the NVIDIA driver writes to the kernel log. Xid 48 is a double-bit ECC error. ECC (error-correcting code) memory can fix single-bit errors, but not double-bit ones, so this error is uncorrectable. NVIDIA's Xid Catalog lists the recovery for Xid 48 seen alone as RESET_GPU and the follow-up as RUN_FIELDDIAG (run field diagnostics). If Xid 63 or 64 appears with it, the catalog says to drain the node and reset.
What NVIDIA says (3)
“48 ROBUST_CHANNEL_GPU_ECC_DBE Double Bit ECC Error”
“This event is logged when the GPU detects that an uncorrectable error occurs on the GPU.”
“WORKFLOW_XID_48 Data Center Recovery Action Solo: RESET_GPU w/ 63 or 64: DRAIN_AND_RESET Investagatory Action Solo: RUN_FIELDDIAG”
Xid 79 means the GPU has fallen off the bus. The bus here is PCI Express (PCIe), the link between the GPU and the server's CPU. NVIDIA says the event is logged when the driver tries to reach the GPU over PCIe and finds it is not accessible. It is often caused by hardware failures on the PCIe link, so check system and kernel PCI event logs.
What NVIDIA says (3)
“79 ROBUST_CHANNEL_GPU_HAS_FALLEN_OFF_THE_BUS”
“This event is logged when the GPU driver attempts to access the GPU over its PCI Express connection and finds that the GPU is not accessible.”
“This event is often caused by hardware failures on the PCI Express link causing the GPU to be inaccessible due to the link being brought down.”
NVLink is NVIDIA's direct GPU-to-GPU link. An NVSwitch is a switch chip that connects many GPUs over NVLink. Xid 74 is logged when the GPU detects a problem with an NVLink connection to another GPU or an NVSwitch. The cause can be at the far end. If one GPU fails, a GPU linked to it may report Xid 74 simply because the link went down. For several error bits, NVIDIA's workflow says to check link mechanical connections, re-seat if needed, and run diagnostics if the issue persists.
What NVIDIA says (3)
“This event is logged when the GPU detects that a problem with a connection from the GPU to another GPU or NVSwitch over NVLink.”
“For example, if a GPU fails, another GPU connected to it over NVLink may report an Xid 74 simply because the link went down as a result.”
“Check link mechanical connections and re-seat if a field resolution is required. Run diags if issue persists.”
Xid 13 is logged for general user application faults. NVIDIA says it is typically an out-of-bounds error, where code walks past the end of an array. Hardware failures can show up as Xid 13, but NVIDIA calls that rare. Because only one person's code triggers it, start by debugging that code.
What NVIDIA says (2)
“This event is logged for general user application faults. Typically this is an out-of-bounds error where the user has walked past the end of an array, but could also be an illegal instruction, illegal register, or other case.”
“In rare cases, it’s possible for a hardware failure or system software bugs to materialize as XID 13.”
Xid 45 is logged when an application aborts and the kernel driver tears down its work on the GPU. NVIDIA lists Ctrl-C, GPU resets and SIGKILL as examples. In many cases it is not a bug but a user or system action. If other Xids appear with it, follow the guidance for those.
What NVIDIA says (2)
“This event is logged when the user application aborts and the kernel driver tears down the GPU application running on the GPU. Control-C, GPU resets, sigkill are all examples where the application is aborted and this event is created.”
“In many cases, this is not indicative of a bug but rather a user or system action.”
Row remapping is how Ampere-generation and newer GPUs retire a faulty row of memory by mapping it to a spare row. Xid 63 records a row-remapping event, and the catalog's immediate action is IGNORE. Xid 64 records a row-remapping failure, and the catalog says RESET_GPU, then CONTACT_SUPPORT. An RMA (return merchandise authorization) is the return-for-replacement process. NVIDIA says the RMA criteria are met when the row-remapping failure flag is set and validated by field diagnostics.
What NVIDIA says (4)
“63 INFOROM_DRAM_RETIREMENT_EVENT”
“64 INFOROM_DRAM_RETIREMENT_FAILURE”
“On GPUs that support row remapping, starting with NVIDIA® Ampere archtecture GPUs, these events provide details on row remapper activity.”
“Regarding row-remapping failures, the RMA criteria is met when the row-remapping failure flag is set and validated by the field diagnostic.”
Error containment is an Ampere-generation feature. It limits the impact of an uncorrectable ECC error to the application that hit it. For Xid 94, NVIDIA says the error is contained to one application, which must be restarted. All other applications are unaffected. NVIDIA still recommends resetting the GPU when convenient.
What NVIDIA says (2)
“For Xid 94, these errors are contained to one application, and the application that encountered this error must be restarted. All other applications running at the time of the Xid are unaffected. It is recommended to reset the GPU when convenient.”
“The benefit of error containment is being able to limit the impact of uncorrectable ECC errors on GPU applications.”
An uncontained error is one the GPU could not limit to a single application. For Xid 95, NVIDIA says the errors affect multiple applications and the GPU must be reset before applications can restart. So the operator drains the work from that GPU and resets it, instead of restarting just one service.
What NVIDIA says (2)
“For Xid 95, these errors affect multiple applications, and the affected GPU must be reset before applications can restart.”
“95 ROBUST_CHANNEL_UNCONTAINED_ERROR”
DCGM offers health checks of different lengths. Quick invasive checks take seconds and verify a GPU is ready before a job. Medium checks take a few minutes and are for a failed job or a suspect GPU. Long checks take tens of minutes for serious hardware investigations. In dcgmi diag, level r2 (Medium) runs in under 10.5 minutes on an 8-GPU Hopper system, and r1 (Short) in under 2.5 seconds.
What NVIDIA says (3)
“Quick, invasive health checks that take a few seconds and are designed to verify that a GPU is ready for work prior to job submission.”
“Medium duration invasive health checks, taking a few minutes, that can be run when a job has failed or a GPU’s health is otherwise suspect Full system validation .”
“r1 (Short) < 2.5 Seconds. r2 (Medium) < 2.5 mins on 4 GPU systems, < 10.5 mins on 8 GPU systems.”
DCGM policies can notify a client, or take action when a condition is met. NVIDIA's DCGM guide says a common action policy is to retire a memory page automatically after an ECC double-bit error. Because this resets the GPU, a quick system validation follows to make sure the GPU is healthy. Retiring a page does not take the GPU out of service. The page is set aside (blacklisted) the next time the GPU is reattached, for example by a GPU reset, a driver reload or a reboot, and after that applications run as before. NVIDIA's page-retirement FAQ says application performance is unaffected and the memory lost is at most about 4 MiB. The GPU becomes an RMA (return for replacement) candidate only when the retired-page count or rate reaches the levels NVIDIA's FAQ lists.
What NVIDIA says (5)
“Policy # DCGM provides a way for clients to configure automatic GPU behaviors in response to various conditions.”
“A common action based policy is to configure DCGM to automatically retire a memory page after an ECC DBE has occurred.”
“Since this operation involves resetting the GPU, a quick system validation is a follow-up step to ensure the GPU is healthy.”
“Pages that have been previously retired are blacklisted for all future allocations of the framebuffer, provided that the target GPU has been properly reattached and initialized.”
“No, application performance is unaffected by either the retirement of pages or their subsequent blacklisting.”
The deployment plugin checks that the node is ready to run CUDA applications. NVIDIA's DCGM diagnostics documentation says it fails if, among other things, NVML or the CUDA runtime cannot load, the open-source nouveau driver is loaded, any pages are pending retirement, or row remaps are pending or have failed. Any of these means the node should not take work until it is fixed.
What NVIDIA says (2)
“Deployment Plugin # The deployment plugin’s purpose is to verify the compute environment is ready to run CUDA applications and is able to load the NVML library.”
“The NVML library libnvidia-ml.so cannot be loaded The CUDA runtime libraries cannot be Loaded The nouveau driver is found to be loaded Any pages are pending retirement on the target GPU(s) Any pending row remaps or failed row remappings on the target GPU(s).”
Without persistence mode, the driver can unload when no program uses the GPU, and the next job pays the start-up cost. The nvidia-smi documentation says that with persistence mode enabled, the driver stays loaded even with no active clients. It also says persistence mode defaults to Disabled after each reboot, so it must be enabled at boot (for example by a service).
What NVIDIA says (2)
“When persistence mode is enabled the NVIDIA driver remains loaded even when no active clients, such as X11 or nvidia-smi, exist.”
“After each reboot persistence mode will default to "Disabled".”
Large InfiniBand fabrics have thousands of ports and cables. NVIDIA says UFM lets data center operators monitor and operate the entire fabric and maximize fabric resource use. Its architecture centers on a UFM server that manages all physical and logical data, with a web UI that uses the server's REST API.
What NVIDIA says (3)
“UFM enables data center operators to efficiently monitor and operate the entire fabric, boost application performance and maximize fabric resource utilization.”
“UFM Server UFM server is a central data repository and management server that manages all physical and logical data.”
“The Web application uses a standard REST API provided by the UFM server.”
Cable validation compares what was installed with what was planned. NVIDIA's cluster bring-up procedure says the cable validation tool does not depend on a working SM or any InfiniBand communication. It uses the management interfaces of the network devices. That lets the team validate the cluster incrementally as parts are deployed.
What NVIDIA says (3)
“Cable validation is the process of validating the actual cable deployment, against the expected topology (from the planning).”
“The tool is not dependent on a working SM, or any working IB communication at all, but utilizes the management interfaces of all the connected network devices.”
“This allows to bring up the cluster gradually / incrementally, and to validate the deployment in smaller pieces, rather than all at once.”
In an HA pair, one head node is active and the other is standby. The DGX SuperPOD deployment guide has you configure an external virtual IP used by the active head node, and says this is the IP that should always be used for access. On failover the VIP moves to the new active head node. The secondary is cloned from the primary, and /cm/shared and /home are moved to shared NFS storage so both heads see the same data.
What NVIDIA says (3)
“Configure an external Virtual IP address that will be used by the active head node in the HA configuration and then select NEXT .”
“This will be the IP that should always be used for accessing the active head nodes.”
“In this final HA configuration step, cmha-setup will copy the /cm/shared and /home directories to the shared storage and configure both head nodes and all cluster nodes to mount it.”
Inconsistent nodes cause hard-to-find job failures and performance differences. The administration guide says the key to running a cluster is that all nodes are configured identically for their function and operate consistently. For health checks it names the NVIDIA System Management tool, nvsm.
What NVIDIA says (2)
“System Health Checks and Debugging # The key to successfully operating and managing a cluster is that all nodes are configured identically for their function, and they operate consistently.”
“For health checks, this is the NVIDIA System Management tool (nvsm).”
Almost all DCGM operations act on groups of GPUs. NVIDIA recommends one long-lived global group (all GPUs) for node-level tasks such as global configuration and health, and partitioned groups (subsets of GPUs) per job for job-level stats and health when several workloads share the node.
What NVIDIA says (3)
“Tip It is recommended that the client maintain one long-lived global group for node-level activities.”
“For systems with multiple transient concurrent workloads it is recommended that additional partitioned groups be maintained on a per-job basis.”
“Partitioned groups, consisting of only a subset of GPUs, are useful for job-level concepts such as job stats and health.”
Dynamic page retirement is how the NVIDIA driver stops using GPU memory pages with bad cells. 'Retiring' marks a page; 'blacklisting' is actually excluding it from future memory allocations. The driver retires a page after one double-bit ECC error (DBE) or two single-bit errors (SBE) at the same address. Blacklisting happens only when the GPU is reattached and initialized, so all clients must stop first. NVIDIA lists, from least to most invasive: let the GPU detach and reattach (persistence mode off), reset the GPU, reload the kernel module, or reboot. Until then 'Pending Page Blacklist' shows Yes. Afterwards the GPU keeps running normally: NVIDIA says application performance is unaffected and at most about 4 MiB of memory is lost. Page retirement is for GPUs before Ampere. Ampere and later GPUs use row remapping instead, which needs a GPU reset to take effect.
What NVIDIA says (9)
“The NVIDIA driver will retire a page once it has experienced a single Double Bit ECC Error (DBE), or 2 Single Bit ECC Errors (SBE) on the same address.”
“The marking of a page for exclusion is called “retiring”, while the actual act of excluding that page from subsequent memory allocations is called “blacklisting”.”
“If Pending Page Blacklist shows “Yes”, then at least one of the retired pages that are counted are not yet blacklisted.”
“It is not possible to blacklist a new page while clients remain active.”
“Re-attach the GPUs (persistence mode disabled only) Reset the GPUs Reload the kernel module (nvidia.ko) Reboot the machine (or VM)”
“No, application performance is unaffected by either the retirement of pages or their subsequent blacklisting.”
“However, the total maximum size of memory retired in this way is only on the order of 4 MiB.”
“No, page retirement is an important reliability feature and cannot be disabled for either SBEs or DBEs.”
“The row-remapping feature is a replacement for the page retirement scheme used in prior generation GPUs.”
Each retired page costs very little memory, so a few retired pages are not a reason to replace a GPU. The retirement table holds at most 64 pages. NVIDIA's FAQ says a board with 60 or more retired pages is eligible for an RMA, and a card with 64 fails the NVIDIA Field Diagnostic. A board with 15 or more retired pages that keeps retiring one or more new pages a week can be evaluated for an RMA before it reaches 60. Track the retirement rate and send it with the board. On Ampere and later GPUs, which use row remapping, the NVIDIA Field Diagnostic decides RMA. It qualifies when the row-remapping failure flag is set and validated.
What NVIDIA says (5)
“The Tesla board will continue to retire pages up until the page retirement table is full, at 64 dynamically retired memory pages.”
“However, a board that generates 60 or more retired pages is eligible for an RMA.”
“Additionally, if a board is found to exhibit 15 or more retired pages and continues to retire memory pages at a rate of one or more newly retired pages per week, it can be evaluated for an RMA before the 60-page RMA threshold has been reached.”
“Please track the page retirement rate and provide that information with the returned board.”
“Regarding row-remapping failures, the RMA criteria is met when the row-remapping failure flag is set and validated by the field diagnostic.”
Dynamic page offlining exists on Ampere and later GPUs that support error containment. When the driver finds where an uncorrectable error is, it marks that page unusable. Running and newly launched workloads will not use that page. NVIDIA says these GPUs do not need a GPU reset to recover from most uncorrectable ECC errors. Row remapping, the hardware repair that swaps in a spare row, does need a GPU reset to take effect, and then lasts for the life of the GPU.
What NVIDIA says (4)
“Once the NVIDIA driver identifies the location of an uncorrectable error in the frame buffer memory, it marks the page containing the error as unusable.”
“Once the page is marked unusable, any of the currently executing or newly launched workloads will not be allocating this page in question.”
“GPUs that support dynamic page offlining do not require a GPU reset to recover from most uncorrectable ECC errors.”
“The process of row-remapping requires a GPU reset to take effect and will remain persistent throughout the life of the life of the GPU.”
Key terms: Dynamic page retirement Row remapping Xid error ECC DCGM
3.2 Orchestration and job scheduling
How Kubernetes, Slurm, Run:ai and Base Command Manager hand out GPUs.
Key points
A device plugin is the Kubernetes mechanism that advertises special hardware to the scheduler. With NVIDIA's device plugin deployed, a container requests GPUs with the nvidia.com/gpu resource type. The scheduler then places the pod only on a node with that many free GPUs.
What NVIDIA says (1)
“With the daemonset deployed, NVIDIA GPUs can now be requested by a container using the nvidia.com/gpu resource type”
Orchestration is the automated placement and management of workloads on shared resources. NVIDIA Run:ai is a GPU orchestration and optimization platform that aims to maximize compute utilization for AI workloads. Administrators define projects, departments and user roles, and Run:ai enforces policies for fair resource distribution.
What NVIDIA says (2)
“Allows administrators to define Projects, Departments and user roles, enforcing policies for fair resource distribution.”
“NVIDIA Run:ai is a GPU orchestration and optimization platform that helps organizations maximize compute utilization for AI workloads.”
Gang scheduling, also called batch scheduling, treats a group of pods as one unit. The NVIDIA Run:ai Scheduler documentation describes it as a workload of many pods being either fully scheduled or fully pending. That stops half of a job from starting and sitting idle.
What NVIDIA says (1)
“Gang scheduling describes a scheduling principle in which a workload composed of multiple pods is either fully scheduled (all pods are scheduled and running) or fully pending (none of the pods are running).”
Base Command Manager (BCM) is NVIDIA's cluster management software. The DGX SuperPOD reference architecture says it automates provisioning and administration. NVIDIA's product page says it integrates with tools like Slurm or NVIDIA Run:ai. Slurm is a widely used job scheduler for high-performance computing.
What NVIDIA says (3)
“It automates provisioning and administration, and supports clusters into the thousands of nodes”
“NVIDIA Base Command Manager streamlines cluster provisioning, workload management, and infrastructure monitoring.”
“Integrate with tools, like Slurm or NVIDIA Run:ai , to support traditional HPC or AI and analytics workloads across bare-metal and containerized environments.”
Kubernetes is a container orchestration system. An Operator is a Kubernetes pattern for automating the management of a software component. NVIDIA says configuring GPU nodes by hand needs several components, such as drivers and container runtimes, and is error-prone. The GPU Operator automates all of them: the driver, the device plugin, the Container Toolkit, GPU Feature Discovery (GFD) labels and DCGM (Data Center GPU Manager) monitoring.
What NVIDIA says (2)
“The NVIDIA GPU Operator uses the operator framework within Kubernetes to automate the management of all NVIDIA software components needed to provision GPU.”
“These components include the NVIDIA drivers (to enable CUDA), Kubernetes device plugin for GPUs, the NVIDIA Container Toolkit , automatic node labeling using GFD , DCGM based monitoring and others.”
Many HPC clusters do not let users run a privileged container daemon. Pyxis is NVIDIA's Slurm plugin that lets unprivileged users run containerized tasks through srun. It requires enroot, NVIDIA's tool that works like an enhanced unprivileged chroot.
What NVIDIA says (3)
“It allows unprivileged cluster users to run containerized tasks through the srun command.”
“Installation Pyxis requires the enroot container utility (version 3.1.0 ) to be installed.”
“Enroot can be thought of as an enhanced unprivileged chroot(1) .”
By default Pyxis removes a container when the Slurm task ends. With --container-name, the container is saved on the host. If a container with that name already exists, Pyxis uses it and skips the import, which saves time on repeated steps.
What NVIDIA says (2)
“Unnamed containers are removed after the slurm task is complete; named containers are not.”
“If a container with this name already exists, the existing container is used and the import is skipped.”
NFD labels nodes with their hardware features, which the GPU Operator uses to find GPU nodes. The GPU Operator documentation says it deploys NFD by default, so if NFD is already running you must disable the Operator's NFD deployment. You can check by looking for feature.node.kubernetes.io labels on your nodes.
What NVIDIA says (2)
“By default, NFD master and worker are automatically deployed by the Operator.”
“If NFD is already running in the cluster, then you must disable deploying NFD when you install the Operator.”
The device plugin's job is to advertise GPUs to Kubernetes so pods can request them. Its README says it currently lacks comprehensive GPU health checking and GPU cleanup features. Health monitoring should come from tools built for it, such as DCGM and DCGM Exporter.
What NVIDIA says (1)
“The NVIDIA device plugin is currently lacking Comprehensive GPU health checking features GPU cleanup features”
Node provisioning means transferring the software image to the nodes. The DGX SuperPOD administration guide says it is done by provisioning nodes. The head node always has the provisioning role, and larger clusters can add more provisioning nodes to spread network load when many nodes boot. Each provisioning node keeps copies of the images on its local drive.
What NVIDIA says (4)
“Provisioning Nodes # The action of transferring the software image to the nodes is called node provisioning and is done by special nodes called the provisioning nodes.”
“More complex clusters can have several provisioning nodes configured by the administrator, thereby distributing network traffic loads when many nodes are booting.”
“A provisioning node keeps a copy of all the images it provisions on its local drive, in the same directory as where the head node keeps such images.”
“Similar to how the head node always has a boot role, the head node also always has a provisioning role.”
Software environments drift as packages update. NVIDIA's DGX Cloud Slurm guide says its Slurm implementation uses Pyxis and Enroot as the container plugin and runtime, and that building a containerized environment gives a frozen environment for training without package compatibility concerns.
What NVIDIA says (2)
“Preparing a Customized Container Image # The Slurm implementation in your DGX Cloud cluster leverages Pyxis and Enroot as the container plugin and runtime.”
“By building a containerized environment, we have a frozen environment to perform model training whenever possible without concerns of package compatibility. 4.1.3.1.”
Schedulers such as Slurm can run a prologue before a job and an epilogue after it. NVIDIA's DCGM guide describes a per-job group lifecycle: create and configure the group in the prologue and verify the GPUs are ready, let DCGM handle requested behaviors in the background while the job runs, and extract target information in the epilogue. DCGM groups are intended to match the scheduler's idea of a node-level job.
What NVIDIA says (3)
“Groups are intended to help the user manage collections of GPUs as a single abstract resource, usually correlated to the scheduler’s notion of a node-level job.”
“During prologue operations the group is created, configured, and used to verify the GPUs are ready for work.”
“During epilogue operations the groups is used to extract target information.”
Small inference models often leave most of a GPU idle. NVIDIA says Run:ai can fractionally allocate GPUs across inference, embedding and generation tasks so organizations can run more models in parallel without resource contention.
What NVIDIA says (1)
“By fractionally allocating GPUs across inference, embedding, and generation tasks, organizations can run more models in parallel without resource contention.”
Key terms: GPU Operator Container Kubernetes Slurm
Try it: Slurm Scheduler Kubernetes GPU Ops
3.3 Monitoring GPUs
The DCGM metrics that matter and how to export them to Prometheus.
Key points
Field 311 counts double-bit volatile ECC errors. A double-bit error cannot be corrected by ECC, so any non-zero value is significant. NVIDIA's Xid Catalog logs uncorrectable errors as Xid 48, with RESET_GPU and RUN_FIELDDIAG as the actions when it appears alone.
What NVIDIA says (3)
“DCGM_FI_DEV_ECC_DBE_VOL_TOTAL 311 Total double bit volatile ECC errors.”
“This event is logged when the GPU detects that an uncorrectable error occurs on the GPU.”
“WORKFLOW_XID_48 Data Center Recovery Action Solo: RESET_GPU”
When a GPU lowers its clocks to protect itself, the reason is recorded as a clock event. DCGM field 112 reports the current clock event reasons as a bitmask, so you can see whether heat, power or something else caused the drop. Field 100 shows the clock value, but not the reason.
What NVIDIA says (2)
“DCGM_FI_DEV_CLOCKS_EVENT_REASONS 112 Current clock event reasons (bitmask of DCGM_CLOCKS_EVENT_REASON_*)”
“DCGM_FI_DEV_SM_CLOCK 100 SM clock for the device.”
DCGM (Data Center GPU Manager) exposes GPU telemetry as numbered fields. Field 310, DCGM_FI_DEV_ECC_SBE_VOL_TOTAL, is the total of single-bit volatile ECC errors. Volatile means the count since the driver last loaded. Single-bit errors are corrected, so the trend matters more than any one value.
What NVIDIA says (1)
“DCGM_FI_DEV_ECC_SBE_VOL_TOTAL 310 Total single bit volatile ECC errors.”
Prometheus is an open-source monitoring system that scrapes metrics over HTTP. DCGM Exporter exposes GPU metrics at an HTTP /metrics endpoint for tools such as Prometheus. Its default listen address is :9400.
What NVIDIA says (2)
“DCGM Exporter is written in Go and exposes GPU metrics at an HTTP endpoint ( /metrics ) for monitoring solutions such as Prometheus.”
“Address of listening http server. Default: “:9400””
DCGM (Data Center GPU Manager) is NVIDIA's suite for managing and monitoring data center GPUs. NVIDIA says it includes active health monitoring, diagnostics, system alerts and governance policies such as power and clock management. Teams can use it alone or integrate it into cluster management and monitoring tools.
What NVIDIA says (5)
“Active Health Checks (GPU subsystems)”
“GPU Diagnostics (Diagnostic Levels - 1, 2, 3)”
“It includes active health monitoring, comprehensive diagnostics, system alerts, and governance policies including power and clock management.”
“The core DCGM library can be run as a standalone process or be loaded by an agent as a shared library.”
“Infrastructure teams can use it standalone and in addition easily integrate it into cluster management tools, resource scheduling, and monitoring products from NVIDIA partners.”
A streaming multiprocessor (SM) is one of the many processing blocks inside a GPU. DCGM defines graphics engine activity as the fraction of time any portion of the graphics or compute engines were active. So it can be high while most SMs are idle. DCGM's SM activity metric is the fraction of time at least one warp was active, averaged over all SMs. A warp is a group of threads the SM runs together. That metric shows how much of the chip is really working.
What NVIDIA says (2)
“Graphics Engine Activity The fraction of time any portion of the graphics or compute engines were active.”
“SM Activity The fraction of time at least one warp was active on a multiprocessor, averaged over all multiprocessors.”
Xid errors are driver error reports, and each number points to a different problem. DCGM field 230, DCGM_FI_DEV_XID_ERROR, reports Xid errors, and its value is the specific Xid. Exported through DCGM Exporter, it lets an alert rule fire on the exact Xid.
What NVIDIA says (1)
“DCGM_FI_DEV_XID_ERROR 230 # XID errors. The value is the specific XID error”
Different GPUs slow down at different temperatures, so a fixed number can be too early on one model and too late on another. DCGM field 153 reports the thermal margin: the distance to the nearest slowdown threshold for that GPU. Alerting on a small margin works across GPU models.
What NVIDIA says (2)
“DCGM_FI_DEV_GPU_TEMP_MARGIN_CELSIUS 153 # Thermal margin temperature (distance to nearest slowdown threshold) for this GPU.”
“DCGM_FI_DEV_GPU_TEMP_SLOWDOWN_CELSIUS 158 # Slowdown temperature for the device.”
GPU memory (HBM) has its own temperature, separate from the GPU core. DCGM field 140 reports the memory temperature, while field 150 reports the GPU temperature. Watching both catches heat problems the core reading misses.
What NVIDIA says (2)
“DCGM_FI_DEV_MEMORY_TEMP_CELSIUS 140 # Memory temperature for the device.”
“DCGM_FI_DEV_GPU_TEMP_CELSIUS 150 # Current temperature readings for the device, in degrees C.”
When a GPU hits its power or thermal limit, it lowers clocks and work slows down. DCGM fields 240 and 241 count the time spent in power and thermal violation, in nanoseconds. A growing counter during a job shows how much of the run was limited.
What NVIDIA says (2)
“DCGM_FI_DEV_POWER_VIOLATION 240 # Power Violation time in ns.”
“DCGM_FI_DEV_THERMAL_VIOLATION 241 # Thermal Violation time in ns.”
A100 and later GPUs repair bad memory rows by remapping them to spare rows, and the remap takes effect after a GPU reset. DCGM field 396 shows whether a remap is pending, and field 395 shows whether remapping has failed. Fields 393 and 394 count remapped rows for uncorrectable and correctable errors.
What NVIDIA says (4)
“The process of row-remapping requires a GPU reset to take effect and will remain persistent throughout the life of the life of the GPU.”
“DCGM_FI_DEV_ROW_REMAP_FAILED 395 # Whether remapping of rows has failed.”
“DCGM_FI_DEV_ROW_REMAP_PENDING 396 # Whether remapping of rows is pending.”
“DCGM_FI_DEV_PAGE_RETIRED_PENDING 392 # Whether any pages are pending retirement (1=yes, 0=no) DCGM_FI_DEV_ROW_REMAP_UNCORRECTABLE_TOTAL 393 # Number of remapped rows for uncorrectable errors.”
Charge-back needs per-job numbers. DCGM job statistics gather and aggregate data in the background across a workload's lifetime and GPUs, and can be queried by job id. Field 156 reports total energy consumption in millijoules since the driver was last reloaded, so the difference between job start and end gives the energy used.
What NVIDIA says (3)
“Job Statistics # DCGM provides background data gathering and analysis capabilities, including the ability to aggregate data across the lifetime of a target workload and across the GPUs involved.”
“The user can query the job stats using the job id and get aggregated stats across all the pids during the window of interest.”
“DCGM_FI_DEV_TOTAL_ENERGY_CONSUMPTION 156 # Total energy consumption for the GPU in mJ since the driver was last reloaded.”
nv-hostengine is the DCGM daemon: a standalone process that hosts the DCGM library, which tools such as dcgmi talk to. DCGM Exporter, by default, starts nv-hostengine as an embedded process to collect metrics. NVIDIA says to use the right configuration options when the system (such as a DGX) already runs nv-hostengine, and documents connecting to an existing DCGM agent.
What NVIDIA says (2)
“Because DCGM Exporter starts nv-hostengine as an embedded process (for collecting metrics), appropriate configuration options should be used if DCGM Exporter is run on systems (such as NVIDIA DGX) that have DCGM (or rather nv-hostengine ) running.”
“Its main job is to instantiate the DCGM library as a persistent standalone process, including appropriate management of the monitoring and management activities.”
To tie GPU usage to workloads, metrics need pod labels. The DCGM Exporter documentation lists DCGM_EXPORTER_KUBERNETES to enable mapping metrics to Kubernetes pods, and DCGM_EXPORTER_INTERVAL with a default of 30000 ms. Shorter intervals give finer detail but more load.
What NVIDIA says (1)
“Default: 30000 -c Interval $DCGM_EXPORTER_KUBERNETES Enable kubernetes mapping metrics to kubernetes pods.”
Human-readable output changes between versions and is hard to parse. nvidia-smi selective query options let you list exactly the properties you want, for example --query-gpu=pci.bus_id,persistence_mode, or --query-remapped-rows for row remapping data. These options require --format=csv.
What NVIDIA says (3)
“Pass comma separated list of properties you want to query. e.g. --query-gpu=pci.bus_id,persistence_mode.”
“Call --help-query-retired-pages for more info. --query-remapped-rows= Information about remapped rows.”
“[mandatory] --format= Comma separated list of format options: csv - comma separated values (MANDATORY)”
Key terms: Dynamic page retirement Row remapping ECC DCGM DCGM Exporter Prometheus
Try it: ECC Error Lifecycle DCGM Monitoring
3.4 Virtualizing GPUs
MIG, time-slicing and vGPU: how each shares a GPU and what isolation it gives.
Key points
NVIDIA says MIG lets supported GPUs be securely partitioned into up to seven separate GPU instances. MIG mode is not enabled by default. An administrator enables it, then creates instances from profiles such as 1g.10gb on H100. A profile name gives the instance's share of compute (1g = one compute slice) and its memory size (10gb).
What NVIDIA says (3)
“allows GPUs (starting with NVIDIA Ampere architecture) to be securely partitioned into up to seven separate GPU Instances for CUDA applications”
“By default, MIG mode is not enabled on the GPU.”
“Table 11 GPU Instance Profiles on H100”
A virtual machine (VM) is a software-defined computer that runs on a hypervisor. NVIDIA vGPU software is installed on a physical GPU in a server and creates virtual GPUs that can be shared across multiple VMs. NVIDIA says this raises GPU utilization while keeping management and security centralized.
What NVIDIA says (2)
“NVIDIA virtual GPU software enables multiple virtual machines (VMs) to have simultaneous, direct access to a single physical GPU”
“Installed on a physical GPU in a cloud or enterprise data center server, NVIDIA vGPU software creates virtual GPUs that can be shared across multiple virtual machines, scaling GPU utilization and enhancing ROI while centralizing manageability and security for enterprise IT.”
Multi-Instance GPU (MIG) partitions one physical GPU into separate GPU instances. NVIDIA says each instance gets dedicated compute and memory resources. Each instance's processors have isolated paths through the whole memory system. MIG also provides fault isolation between clients such as VMs, containers or processes.
What NVIDIA says (2)
“The Multi-Instance GPU (MIG) User Guide explains how to partition supported NVIDIA GPUs into multiple isolated instances, each with dedicated compute and memory resources.”
“MIG can partition available GPU compute resources (including streaming multiprocessors or SMs, and GPU engines such as copy engines or decoders), to provide a defined quality of service (QoS) with fault isolation for different clients such as VMs, containers or processes.”
Time-slicing lets workloads on an oversubscribed GPU take turns. Oversubscribed means more workloads than GPUs. NVIDIA says that, unlike MIG, there is no memory or fault isolation between the shared replicas. Time-slicing trades MIG's isolation for the ability to share a GPU among more users.
What NVIDIA says (2)
“GPU time-slicing enables workloads that are scheduled on oversubscribed GPUs to interleave with one another.”
“Time-slicing trades the memory and fault-isolation that is provided by MIG for the ability to share a GPU by a larger number of users.”
MIG (Multi-Instance GPU) divides a GPU into slices. The MIG user guide says a GPU memory slice is roughly one eighth of the GPU's memory resources, including capacity and bandwidth, and an SM slice is roughly one seventh of the SMs available in MIG mode. A GPU slice combines one of each.
What NVIDIA says (3)
“A GPU memory slice is roughly one eighth of the total GPU memory resources, including both capacity and bandwidth.”
“A GPU SM slice is roughly one seventh of the total number of SMs available in the GPU when configured in MIG mode.”
“GPU Slice A GPU slice is the smallest fraction of the GPU that combines a single GPU memory slice and a single GPU SM slice.”
A GPU instance (GI) combines GPU slices and engines such as copy engines and video decoders. The MIG user guide says everything within a GI shares all of its memory slices and other engines, but its SM slices can be divided into compute instances. So CIs in one GI get separate compute but share memory, which gives less isolation than separate GIs.
What NVIDIA says (2)
“GPU Instance A GPU Instance (GI) is a combination of GPU slices and GPU engines (DMAs, NVDECs, and so on).”
“Anything within a GPU instance always shares all the GPU memory slices and other GPU engines, but it’s SM slices can be further subdivided into compute instances (CI).”
MIG device names give the GPU instance's compute slice count and its total memory in GB. On A100-SXM4-40GB, 3g.20gb is a 3-slice instance with 20 GB. The MIG guide says on the 80 GB model profile names change with the memory proportion, for example 3g.40gb.
What NVIDIA says (2)
“The following table highlights a naming convention to refer to a MIG device by its GPU Instance’s compute slice count and its total memory in GB (rather than just its memory slice count).”
“For A100-SXM4-80GB, the profile names will change according to the memory proportion - for example, 1g.10gb , 2g.20gb , 3g.40gb , 4g.40gb , 7g.80gb , respectively.”
MIG and vGPU can be combined. The MIG user guide lists supported configurations: bare metal (including containers), GPU pass-through to Linux guests, and vGPU on supported hypervisors. It says MIG allows multiple vGPUs, and therefore VMs, to run in parallel on a single MIG-supported GPU while preserving vGPU's isolation guarantees.
What NVIDIA says (2)
“MIG allows multiple vGPUs (and thereby VMs) to run in parallel on a single MIG-supported GPU, while preserving the isolation guarantees that vGPU provides.”
“Supported configurations include: Bare-metal, including containers GPU pass-through virtualization to Linux guests on top of supported hypervisors vGPU on top of supported hypervisors”
Each workload type needs different host software: the data center driver for containers, vfio-pci for pass-through, and the vGPU Manager for vGPU. The GPU Operator documentation says you set the node label nvidia.com/gpu.workload.config to container, vm-passthrough or vm-vgpu, and that a node can run one type but not a combination.
What NVIDIA says (3)
“This is configured by adding a nvidia.com/gpu.workload.config label to the worker node with the value of container , vm-passthrough , or vm-vgpu depending on if you are planning to use vGPU or not.”
“Assumptions, constraints, and dependencies # A GPU worker node can run GPU workloads of a particular type, such as containers, virtual machines with GPU Passthrough, or virtual machines with vGPU, but not a combination of any of them.”
“For example, the datacenter driver is needed for containers, the vfio-pci driver is needed for GPU passthrough, and the NVIDIA vGPU Manager is needed for creating vGPU devices.”
Time-slicing advertises one GPU as several replicas, and CUDA interleaves the workloads. The GPU Operator documentation says requesting more than one replica does not give proportionally more access: in this example, all three pods get an equal share of compute time. The failRequestsGreaterThanOne option can reject such requests so users are not misled.
What NVIDIA says (2)
“failRequestsGreaterThanOne boolean The purpose of this field is to enforce awareness that requesting more than one GPU replica does not result in receiving more proportional access to the GPU.”
“For example, if 4 GPU replicas are available and two pods request 1 GPU each and a third pod requests 2 GPUs, the applications in the three pods have an equal share of GPU compute time.”
The device plugin offers two sharing methods. With time-slicing, workloads interleave but are not isolated: each can access the GPU memory and they share a fault domain, so if one crashes, they all do. MPS (Multi-Process Service) partitions memory and compute and enforces limits per workload. The documentation says the two are mutually exclusive, and the same method applies to all GPUs on a node.
What NVIDIA says (3)
“However, nothing special is done to isolate workloads that are granted replicas from the same underlying GPU, and each workload has access to the GPU memory and runs in the same fault-domain as of all the others (meaning if one workload crashes, they all do).”
“In contrast to time-slicing, MPS does space partitioning and allows memory and compute resources to be explicitly partitioned and enforces these limits per workload.”
“Note Time-slicing and MPS are mutually exclusive.”
The device plugin's MIG_STRATEGY can be none, single or mixed. With mixed, the plugin advertises extra resources named nvidia.com/mig-<slice_count>g.<memory_size>gb, and a pod requests one of them in its spec to get a specific MIG device.
What NVIDIA says (2)
“Configuration Option Details MIG_STRATEGY : the desired strategy for exposing MIG devices on GPUs that support it [none | single | mixed] (default 'none') The MIG_STRATEGY option configures the daemonset to be able to expose Multi-Instance GPUs (MIG) on GPUs that support them.”
“Note: With a MIG_STRATEGY of mixed, you will have additional resources available to you of the form nvidia.com/mig-<slice_count>g.<memory_size>gb that you can set in your pod spec to get access to a specific MIG device.”
MIG devices need access control so one container cannot use another's slice. The MIG deployment considerations say the /proc mechanism is deprecated as of driver 450.51.06, and recommend the /dev based interface for controlling access to MIG devices through cgroups. The nvidia-capabilities abstraction controls which actions are allowed through the driver.
What NVIDIA says (2)
“The /proc mechanism for system-level interfaces is deprecated as of 450.51.06 and it is recommended to use the /dev based system-level interface for controlling access mechanisms of MIG devices through cgroups.”
“Note Also note the device nodes and nvidia-capabilities for exposing the MIG devices.”
Key terms: Multi-Instance GPU Time-slicing Virtual GPU Streaming multiprocessor
Try it: MIG Partitioning GPU Virtualization