Following up on the closed thread Spark hangs - requires a hard-reset, with a measurement that I think explains why the OOM handling there doesn’t reach these freezes. Our unit has frozen twice on driver 580.173.02, the build after the May and July updates: on 2026-09-03 (llama.cpp over-committing KV cache) and on 2026-10-27 (a PyTorch training step that reached 102.7 GiB inside a container started with --memory 60g). Both times it needed a power cycle.
System: DGX Spark Founders Edition, DGX OS 7.5.0, kernel 6.17.0-1029-nvidia, driver 580.173.02 (open module), CUDA 13.0, Docker 29.2.1, Container Toolkit 1.19.1, 16 GiB swap, no systemd-oomd or earlyoom.
The test (safe: at most 8 GiB on a 121 GiB machine with 104 GiB available). It runs one process inside nvcr.io/nvidia/pytorch:25.05-py3 started with --memory 4g --memory-swap 4g, and records the change in each counter after each allocation:
| Allocation | VmRSS | cgroup memory.current | oom_score | host MemAvailable | Outcome |
|---|---|---|---|---|---|
cudaMalloc (torch, device), 8 GiB |
+0.11 GiB | +0.10 GiB | +0 | −8.74 GiB | succeeds, over the 4 GiB limit |
host malloc, 3 GiB |
+3.12 | +3.09 | +15 | −3.29 | counted |
cudaHostAlloc (pinned), 2 GiB |
+2.10 | +2.08 | +10 | −2.72 | counted |
cudaMallocManaged, 2 GiB |
+2.10 | +2.07 | +10 | −2.69 | counted |
cudaMallocManaged, 8 GiB |
killed by the memcg: UVM GPU1 BH invoked oom-killer … __GFP_ACCOUNT … CONSTRAINT_MEMCG |
So on GB10, managed and pinned memory are charged to the caller and its cgroup, but plain device memory from cudaMalloc is charged to neither. It shows up only in MemAvailable and cudaMemGetInfo. That is the default path for PyTorch and llama.cpp.
What that did on 2026-10-27 (from journalctl -k -b -1, which survived):
- 10:17:01–03: 182 ×
NV_ERR_NO_MEMORY … _memdescAllocInternal. The allocating step still completed, and the next one hung the host. - 10:28 onward: hung tasks, first
jbd2on the root filesystem, thensystemd-timesyncd, NetworkManager andwpa_supplicant. - 10:42:20: the global OOM killer did run. The 146 processes in its table held 546 MiB resident between them (plus 7.9 GiB swap), and Normal free was 44 MB, below min. It killed a 1.1 MiB dashboard process because that process had
oom_score_adj500. The training process held nearly all of the ~120 GiB but looked empty to the killer, and was left running. - The journal went nearly silent after that. Cron logged 72 entries from 09:00 to 10:15 and 1 in the 4¾ hours after. The last line was at 13:06. At 12:22 and 13:06 the access point deauthenticated it (
4WAY_HANDSHAKE_TIMEOUT).
This is not the Wi-Fi-isolation case from post 14 of that thread: local activity stopped, not just the link. In September, by contrast, the OOM killer never ran at all.
What has worked for us:
torch.cuda.set_per_process_memory_fraction()inside the job. Over the cap, it raisestorch.OutOfMemoryErrorinstead of taking the box down.- A loop beside the container that reads
MemAvailableevery 0.5 s anddocker kills the job under 25 GiB. It killed a container within 0.6 s in testing. - Admission control for inference servers: parallel slots × context must fit in free memory.
- The SBSA hardware watchdog,
RuntimeWatchdogSec=60s, as a last resort.
With 1 and 2 in place, the same training workload ran 200 steps at a 15.4 GiB peak.
Questions for NVIDIA:
- Is the “stop processes that take too much memory” mechanism from the August post meant to cover
cudaMallocfrom an unprivileged process on 580.173.02? If so, what does it log when it engages? Nothing in either boot shows it acting. - Is there a supported way to have device allocations charged to the allocating process’s memcg on GB10, as
__GFP_ACCOUNTalready does for UVM pages? That alone would let container limits, Kubernetes and the OOM killer work. - Failing that, would NVIDIA consider a per-process or per-container device-memory limit in the driver or the Container Toolkit?
The scripts, raw output and both redacted kernel logs are available. I’m happy to attach them or send them privately, plus nvidia-bug-report.log.gz. I’m also happy to run any configuration you want tested. The September details are in our earlier write-up: our Spark froze a week after the thread was closed.