GB10: cudaMalloc memory is not charged to the process or its cgroup, so the OOM killer and container limits can't stop a unified-memory freeze (580.17

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 jbd2 on the root filesystem, then systemd-timesyncd, NetworkManager and wpa_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_adj 500. 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:

  1. torch.cuda.set_per_process_memory_fraction() inside the job. Over the cap, it raises torch.OutOfMemoryError instead of taking the box down.
  2. A loop beside the container that reads MemAvailable every 0.5 s and docker kills the job under 25 GiB. It killed a container within 0.6 s in testing.
  3. Admission control for inference servers: parallel slots × context must fit in free memory.
  4. 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:

  1. Is the “stop processes that take too much memory” mechanism from the August post meant to cover cudaMalloc from an unprivileged process on 580.173.02? If so, what does it log when it engages? Nothing in either boot shows it acting.
  2. Is there a supported way to have device allocations charged to the allocating process’s memcg on GB10, as __GFP_ACCOUNT already does for UVM pages? That alone would let container limits, Kubernetes and the OOM killer work.
  3. 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.

Same here on a GB10 (ASUS Ascent GX10, driver 580.178.04). Our 27B lane runs SGLang in a container started with --memory 100g. During a 5,623-token generation at a 0.76 static fraction, the container’s cgroup held 7.15 GiB of its 100 GiB the whole time, while the engine’s pool sat in GPU memory the cgroup never saw. So the cap only bounds host RSS, as your table shows.

What keeps the box alive for us is the engine’s own budget: SGLang’s --mem-fraction-static (0.76 on the 27B, 0.80 crashed under three concurrent requests) or vLLM’s --gpu-memory-utilization, one model in the pool at a time, and the GPU-side headroom after CUDA graph capture as the number we watch (21.3 GiB at 0.76). The measurements are written up here: dgx-spark-qwen38/docs/gb10-memory.md at main · hasso5703/dgx-spark-qwen38 · GitHub

Your split between cudaMalloc on one side and managed and pinned memory on the other is new to us. Our notes said unified allocations in general, and we will correct them.

Thank you for the detailed write-up. I have not been able to reproduce the behavior you describe on the latest stack with kernel 7.0.0-1019-nvidia and driver 580.178.04. The longest hang I got was for 9 minutes, but I never needed to reboot the box.
OEM devices may be delayed in receiving updates, but when you are able to update please let me know if you can still reproduce this behavior

Thanks for testing this. To be clear for anyone following the thread: both freezes, and the measurements in my first post, were on DGX OS 7.5.0 with kernel 6.17.0-1029-nvidia and driver 580.173.02. The 7.6.0 release you tested (kernel 7.0.0-1019, driver 580.178.04) was available for our unit and had not been installed. That was my oversight.

We’re installing it this weekend, will rerun both tests, and will post the results here. Post 2 above suggests the memory-accounting part may still apply on 580.178.04, so we’ll check that specifically.

A correction to my last post, for anyone following: we have not updated, and we won’t be doing it this weekend after all.

The unit is still on DGX OS 7.5.0 (kernel 6.17.0-1029-nvidia, driver 580.173.02). Both freezes and all the measurements in my first post came from that stack. We held off on 7.6.0 because other owners report GPU work running 1.5 to 2.4 times slower on kernel 7.0.0-1019: Kernel 7.0.0-1019-nvidia makes Apache Spark + RAPIDS GPU work 1.5-2.4x slower on DGX Spark and Upgrade to 7.6.0 / kernel 7.0.0-1019-nvidia system wide slowdown 50/60%. This box runs GPU jobs that take several days, so a slowdown like that would cost us more than the retest would tell us.

The newer kernel apt is offering now, 7.0.0-1024-nvidia, is reported to put units into a reboot loop when a monitor is connected (DGX Spark repeatedly rebooting after most recent update), so we’re holding that one too.

Once there’s a kernel without the slowdown and reboot reports, we’ll update, rerun both tests, and post the results here. In the meantime, if there’s anything you’d like checked on our current stack, let me know.

We have delivered a fix for the latest kernel. Information can be found here: DGX Spark repeatedly rebooting after most recent update - #40 by zneill
Please update and let me know if your issue is still reproducible.