Running scontrol update State=RESUME without checking why NHC drained the node
Blindly resuming a hardware-faulted node black-holes the next user job immediately.
Operator task guide
Slurm GPU reliability relies on three controls working together: accurate --gres=gpu:<type>:<count> and memory requests in sbatch scripts, sacct/sstat accounting paired with host GPU telemetry, and automated Node Health Check (NHC) scripts that drain nodes on Xids or uncorrectable ECC before the next user lands on them.
When sinfo -R shows a node drained with Scheduler health check failed or NHCs timed out, preserve the drain reason, inspect host dmesg and nvidia-smi -q before clearing state, and verify the node passes a real GPU smoke test before running scontrol update State=RESUME.
Reviewed . Reference guidance is not a diagnosis of your workload.
Use squeue to check pending reasons (ReqNodeNotAvail, QOSMaxGRESPerUser), sstat for live running step RSS/CPU, and sacct for completed/failed step exit codes.
sinfo -o "%20P %10a %15F %20G %15t"
sinfo -R
squeue -j <jobid> -o "%.18i %.2t %.30R"
sacct -j <jobid> --units=G --format=JobID,NodeList,State,ExitCode,ReqMem,MaxRSS,ElapsedMatch --gres=gpu:<type>:<count> or --gpus-per-node to configured gres.conf names, request explicit host memory (--mem or --mem-per-gpu), and avoid launching torchrun inside an srun multi-task tree that duplicates rank spawning.
#!/bin/bash
#SBATCH --job-name=train-h100
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=1
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=64
#SBATCH --mem=0
#SBATCH --time=04:00:00
srun torchrun --nnodes=2 --nproc_per_node=8 --rdzv_backend=c10d --rdzv_endpoint=$(scontrol show hostnames "$SLURM_JOB_NODELIST" | head -n1):29500 train.pyWhen Slurm marks a node DRAIN due to HealthCheckProgram failure, check the NHC log, NVML visibility, ECC/Xid events, and PCIe link state before manually resuming.
scontrol show node <drained-node> | grep -iE 'State=|Reason=|Gres='
dmesg -T | grep -iE 'NVRM: Xid|ECC|AER'
nvidia-smi -q -d ECC,ROW_REMAPPEROnce the underlying NHC condition (such as stale zombie processes, driver mismatch, or verified transient fault) is resolved and a health check passes, resume the node cleanly.
sudo scontrol update NodeName=<node> State=RESUME| Signal | What it means | Next action |
|---|---|---|
| sinfo -R shows NHCs / Health check failed | Node Health Check caught missing GPU, Xid, ECC, zombie PID, or stale mount. | Keep drained, read NHC logs and dmesg, fix root condition before RESUME. |
| Requested node configuration is not available | Combined GRES type, CPU, memory, or constraint matches zero nodes. | Run sinfo -o "%P %G %c %m %f" and align sbatch flags. |
| slurmstepd: JOB CANCELLED DUE TO OOM-KILLER | Job step exceeded host RAM cgroup (--mem), not GPU VRAM. | Compare sacct MaxRSS vs ReqMem and adjust host memory or num_workers. |
| torchrun hangs under srun | srun spawned 8 tasks per node and each ran torchrun --nproc_per_node=8. | Set --ntasks-per-node=1 when using torchrun, or pass --ntasks-per-node=8 without torchrun. |
Blindly resuming a hardware-faulted node black-holes the next user job immediately.
That spawns 64 processes on 8 GPUs and immediately deadlocks NCCL.
slurmstepd monitors host RAM cgroups, whereas CUDA OOM is reported by PyTorch inside stderr.
Decode GRES, QOS, cgroup OOM, and Pyxis/Enroot failures.
Generate validated sbatch scripts for multi-node PyTorch and vLLM.
Separate host cgroup kills from CUDA device memory limits.
Connect Slurm accounting, NHC drains, and rank logs.
Use squeue and scontrol show job to verify GRES allocation, SSH or wrap jobs to stream nvidia-smi dmon / dcgmi metrics per job, or export cgroup/DCGM metrics tagged by SLURM_JOB_ID to Prometheus and Grafana.
The configured HealthCheckProgram (often LBNL NHC or custom NVML scripts) returned a non-zero exit code due to missing GPUs, uncorrectable ECC, zombie CUDA processes, full filesystems, or offline IB ports.
Check available GRES names with sinfo -o "%P %G", then pass #SBATCH --gres=gpu:h100:8 (or --gpus-per-node=h100:8 depending on cluster config).
If srun creates one task per GPU (--ntasks-per-node=8) AND each task launches torchrun --nproc_per_node=8, ranks collide on GPUs and ports. Use --ntasks-per-node=1 for torchrun.
Get the likely cause, supporting evidence, and next safe steps with the same cloud reasoning used by paid plans. A crash the engine recognizes is answered in seconds, then checked by an independent AI review that updates this page when it finishes. A crash it does not recognize waits for the AI's own answer, which can take a few minutes. No account, card, or installation. Logs are masked at Denpex API ingress and are not saved to account history.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
No credit card. No automatic subscription. See whether Denpex helps with an incident you already understand.
Up to 50 diagnoses a day for 30 days. Verify your work email to activate an eligible company evaluation, then replay a resolved incident and compare the evidence and next steps with your team's confirmed cause.
Use the three free diagnoses to review your error and relevant evidence. Keep reference guidance separate from the cause and recovery status of your own workload.
Diagnose your incident