NCP-AIO Cheatsheet
NVIDIA-Certified Professional: AI Operations
Download free PDFCluster management and resilience
Base Command Manager
- **Base Command Manager (BCM)** provisions and manages GPU clusters, including DGX BasePOD and SuperPOD environments. It manages node images, configuration, monitoring and workload-manager integration.
- A **provisioning role** enables a node to serve software images and provision other nodes. Keep image content, node categories and deployed configuration consistent.
- **cmsh** is the management shell. From a Linux shell, run multiple commands with **cmsh -c "main showprofile; device status apc01"**; the semicolon separates management commands.
- **Base View** provides cluster-wide GPU, CPU and memory monitoring. Compare affected nodes with healthy peers before narrowing the investigation to a device or workload.
Availability and cloud extension
- **Active-passive HA** promotes a standby when the active service fails. Replicate required configuration and state, and test client reconnection and recovery behavior.
- **Heartbeats** detect peer loss. **Quorum and fencing** prevent conflicting active nodes during split brain; a heartbeat link alone cannot safely resolve every network partition.
- For stateful services such as firewalls, **session synchronization** preserves connection state for failover. Provide reliable peer connectivity and compatible configurations.
- **BCM Cluster Extension** adds supported cloud resources for bursting. Prepare provider-specific credentials, images, networking, storage access and scheduler integration for each cloud.
- **AWS and Azure credentials** are separate trust configurations. Set capacity and spending limits, account for data-transfer latency, and release idle burst nodes.
Maintenance and safe return
- **Drain a Slurm node** before maintenance: **scontrol update NodeName=node01 State=DRAIN Reason=maintenance** prevents new allocations while existing jobs finish.
- Confirm the node is idle, preserve needed configuration, then perform maintenance. **DOWN** marks a node unavailable; it is not a substitute for a planned drain.
- After changes, validate GPU discovery, storage, network paths and health. Return the node with **State=RESUME** only after the scheduler sees the expected resources.
Slurm workload scheduling
Submission, status and accounting
- **sbatch** submits a batch script; **salloc** obtains an allocation; **srun** launches job steps. **sbatch --begin=tomorrow my_script.sh** sets an earliest eligible start, not a guaranteed appointment.
- **sbatch -o output.txt my_script.sh** selects standard output; **-e** selects standard error. Without a separate error path, batch standard error normally follows the output file.
- **squeue** shows queued jobs. **scontrol show job JOBID** exposes detailed state and pending **Reason**, such as resources, priority, dependencies or limits.
- **sinfo** summarizes partitions and nodes; **sinfo -R** lists reasons for unavailable nodes. **sstat -j JOBID.STEPID** reports live job-step statistics when accounting collection is configured; **sacct -j JOBID** queries accounting history.
GPU inventory and isolation
- **GRES** represents GPUs and other generic resources. Match **slurm.conf** GPU counts and types with **gres.conf** device mappings and the hardware visible to the node daemon.
- Use **--gres=gpu:2** to request two GPUs per allocated node. Add a GPU type when required; CPU, memory, node count and task placement must also match the application.
- **AutoDetect=nvml** can discover NVIDIA device details. Explicitly reserve or exclude GPUs intended for display or other services; discovery alone is not an allocation policy.
- **ConstrainDevices=yes** in **cgroup.conf**, together with Slurm cgroup task enforcement, restricts jobs to allocated devices. Environment visibility settings alone do not enforce device access.
- After **MIG** changes, reconcile instance profiles and scheduler resource definitions before accepting jobs. Stale counts, types or device mappings can cause failures or drained nodes.
Multi-GPU placement and backfill
- A multi-GPU job needs a **compatible allocation**: free GPUs scattered across unsuitable nodes may not satisfy its per-node request, model, memory or topology constraints.
- **Backfill scheduling** runs eligible shorter jobs in scheduling gaps without delaying reserved higher-priority work. Realistic wall-time limits improve its decisions.
- **Partitions, QoS and reservations** express policy and capacity boundaries. Examine pending reasons and resource fragmentation before separating single-GPU and multi-GPU workloads.
Kubernetes, access and edge deployment
Cluster readiness and controllers
- The **control plane** includes the API server, **etcd**, scheduler and controller manager. Workers run **kubelet**, a container runtime and networking components such as **kube-proxy** or an equivalent implementation.
- For an HA control plane, prepare a stable **API endpoint and load balancer** before initialization. Validate DNS, ports, certificates, runtime and the supported kubelet swap configuration.
- **kubectl get nodes** confirms registration and **Ready** status. Use **kubectl describe node** and pod events to investigate conditions, taints and scheduling failures.
- A **Deployment** maintains service replicas; a **Job** runs work to completion. For Jobs, **spec.parallelism** controls desired concurrent pods and **spec.completions** controls successful completions; Deployment replica flags do not define Job parallelism.
GPU enablement and workload priority
- **NVIDIA GPU Operator** manages GPU software components such as drivers, Container Toolkit, device plugin and monitoring. Verify operator pods, node drivers and advertised GPU resources when pods cannot detect GPUs.
- Request GPUs using an extended-resource limit such as **nvidia.com/gpu: 1**. Check node allocatable capacity, resource names, labels, taints and tolerations before blaming the framework.
- **PriorityClass** influences scheduling and permitted preemption. **ResourceQuota** caps namespace consumption; it does not reserve physical capacity. Protect inference with deliberate capacity and priority policies.
- **HPA** changes pod counts from metrics; it does not create GPUs. Distributed training also needs sufficient nodes, coordinated workers and a correctly configured inter-node fabric.
- The preconfigured **AI Enterprise GPU Operator** package can use a prebuilt **vGPU driver** image and **NVIDIA License System (NLS)** configuration. Match the driver path and licensing to the VM platform.
Run:ai access and Fleet Command
- **Run:ai** adds GPU workload and resource management to Kubernetes. Give researchers workload access in their assigned projects, and reserve user management and cluster changes for administrators.
- For administrative automation, configure the intended **kubeconfig context** and required cluster permissions before using the **Run:ai administrator CLI**. Protect credentials and confirm the target cluster.
- **Fleet Command** centrally deploys and operates containerized AI applications at edge locations. Remote console, application updates and shared-storage access address different operational needs.
- **Edge HA** needs multiple healthy systems, spare capacity and recoverable application state. **MIG** isolates GPU resources; it does not replace node failover.
- Use **least-privilege Fleet roles**: application and deployment operations, location administration and read-only visibility are distinct permissions. Match the role to the required actions and scope.
GPU isolation, fabrics and BlueField
MIG and NVSwitch management
- **Multi-Instance GPU (MIG)** partitions supported GPUs into instances with dedicated compute and memory resources. Hardware isolation improves tenant fault isolation and predictable performance.
- **GPU instances** partition memory and associated resources; **compute instances** subdivide compute within a GPU instance. Choose supported profiles for memory and compute demand, and coordinate reconfiguration with workloads.
- **Fabric Manager** configures and monitors NVSwitch-based NVLink fabrics on supported **HGX and DGX** systems. It manages routing and coordinates link initialization with GPU and NVSwitch drivers.
- For virtualized NVSwitch systems, verify **fabric partitions**, GPU assignment, driver compatibility and service health. Polling intervals and partition controls depend on the deployed Fabric Manager configuration.
BlueField and DOCA services
- **BlueField DPU** offloads infrastructure work such as networking, storage and security. **DOCA** supplies APIs, libraries and services for building DPU applications, including supported NVMe-oF storage functions.
- Before a **DOCA upgrade**, check the supported combination of BlueField OS, firmware, host drivers and packages. Follow the documented cleanup or migration path for conflicting older packages.
- For **air-gapped DOCA deployment**, stage compatible container images, manifests and dependencies before transfer. Import images into the DPU runtime and use the service-supported deployment method, including standalone kubelet where required.
- **DOCA BlueMan** is a DPU web dashboard for health and telemetry. Its information comes from **DOCA Telemetry Service (DTS)**; check DTS readiness, BlueMan service health and management reachability when data is absent.
InfiniBand and fabric visibility
- **InfiniBand** provides low-latency, high-bandwidth RDMA connectivity for distributed AI. Ethernet can also carry RDMA with a properly engineered **RoCE** fabric; bandwidth, congestion and topology all affect collectives.
- **ibtracert** traces a path between InfiniBand endpoints; **ibnetdiscover** discovers fabric topology; **ibstat** reports local adapter and port state; **ibping** tests supported InfiniBand connectivity.
- **UFM Telemetry** provides monitoring, validation and streaming fabric counters. **UFM Enterprise** adds fabric management and provisioning. **UFM Cyber-AI** adds anomaly analysis and preventive insights.
- If **UFM** cannot reach switches, inspect management connectivity, active **subnet manager**, port state and credentials or access controls. Avoid competing unmanaged subnet managers and compare error counters along the affected path.
Data movement, containers and diagnostics
Magnum IO and storage performance
- **Magnum IO** brings together GPU data-movement technologies. **NCCL** handles collective GPU communication; **NVSHMEM** provides a GPU-oriented shared-memory programming model.
- **GPUDirect Storage (GDS)** moves supported storage data directly to GPU memory, avoiding the normal CPU-memory bounce buffer. It still depends on the storage, PCIe and applicable network data paths.
- For slow **ETL or GDS**, validate the supported filesystem, storage stack, drivers, topology and direct-I/O path. For remote RDMA paths, check compatible adapters and RDMA configuration on both compute and storage endpoints.
- Measure **throughput** for large sequential reads, **IOPS and latency** for small random I/O, and metadata rates for file operations. Sustained data delivery matters more than free capacity when GPUs wait on input.
- **High-performance shared storage** must sustain aggregate reads and writes across workers. In **Lustre**, metadata services handle namespace operations while **OSTs** store file data; separate contention and tune striping for the actual workload.
NGC containers and cloud images
- A standalone GPU container host needs a compatible **NVIDIA driver**, container engine and **NVIDIA Container Toolkit**. The framework is supplied by the container image; Kubernetes is optional.
- For protected **NGC** content, generate an authorized API key and authenticate to **nvcr.io** with **docker login**. Configure NGC CLI credentials, organization and team with **ngc config set**.
- **docker run --gpus all IMAGE** exposes available GPUs through the configured NVIDIA runtime. Select an explicit tested image tag and verify GPU visibility inside the container.
- **NVIDIA AI Enterprise VMIs** are available through supported cloud marketplaces and prepare a GPU software environment. Confirm the image manifest for OS, driver, runtime and tools; **RAPIDS** or **Morpheus** application content may require a separate deployment.
- **RAPIDS** accelerates data analytics; **Morpheus** supports cybersecurity pipelines, including digital fingerprinting. A prepared VM environment and an application pipeline are separate deployment layers.
Choose evidence for the symptom
- **DCGM** provides GPU health, diagnostics, telemetry, policies and accounting capabilities. **nvidia-smi** inspects local GPU state; **NVSM** adds DGX system-level health and support collection.
- **sudo nvsm show health** reports health checks; **sudo nvsm dump health** generates a support report. Use **iostat** for disk activity and latency, and correlate storage pressure with GPU utilization and job timing.
- **docker logs CONTAINER** reads captured stdout and stderr; **docker attach CONTAINER** connects to the running main process streams, including stdin when configured. **docker stats**, **top** and **inspect** serve resource, process and configuration inspection.
- For **volume permission failures**, inspect mounts and errors, host ownership, container UID/GID, mode bits and security labels. An engine-level startup failure may appear in daemon logs before application logs exist.
- **Docker daemon debug logs** expose engine operations. A **core dump** captures process memory and execution state after a crash for debugger analysis; configure dump limits and collection, and handle dumps as sensitive data.