[DGX Spark / GB10 Unified Memory] Persistent OOM hard-reboots during large prefill bursts — NV_ERR_NO_MEMORY from _memdescAllocInternal — seeking guidance on memory budgeting
System: NVIDIA DGX Spark (GB10 Grace Blackwell SoC)
Memory: 120 GiB unified (CPU + GPU share physical RAM — no discrete VRAM)
Architecture: ARM64 (aarch64)
Kernel: 6.17.0-1031-nvidia
SGLang version: Container lmsysorg/sglang (v1.2.2 equivalent, with DFlash2 speculative support)
Model: Qwen3-8-27B in NVFP4 quantization + DFlash speculative decoding
Problem
We are experiencing persistent hard reboots (not graceful crashes) on our DGX Spark when SGLang processes a large prefill batch. Over the past 25 days we have recorded 20 reboots (journalctl --list-boots count), with the frequency accelerating: 5 reboots in the last 2 days (Nov 2–3, 2026).
The machine never soft-panics or logs a clean Python traceback — the kernel logs NVRM NV_ERR_NO_MEMORY errors and then the system performs a hard reset.
Exact Crash Evidence (last OOM, Nov 03 ~11:32 local)
From journalctl -b -1 --no-pager -k | grep -i 'oom\|nvrm\|memory\|error':
Nov 03 11:32:42 spark-name kernel: NVRM: Xid (PCI:0001:00:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x50a118=0x215f (ILLEGAL_INSTR_ENCODING)
Nov 03 11:32:43 spark-name kernel: NVRM: os_schedule: NV_ERR_NO_MEMORY from _memdescAllocInternal (mem_desc.c:1359)
Nov 03 11:32:43 spark-name kernel: NVRM: os_schedule: NV_ERR_NO_MEMORY from _memdescAllocInternal (mem_desc.c:1359)
[... 9 consecutive NV_ERR_NO_MEMORY lines within 17 seconds ...]
Nov 03 11:32:59 spark-3a4d kernel: [hard reset]
From SGLang Python logs immediately before the crash:
[2026-11-03 11:32:40] Scheduler prefill batch. #new-token: 7136, ...
[2026-11-03 11:32:40] #running-req: 2, #token: 32482, token usage: 0.54, ...
[2026-11-03 11:32:40] full token usage: 0.54
The scheduler had 2 concurrent requests with a combined prefill of 7,136 new tokens at a token usage of 0.54 (54%) of the KV pool, then immediately crashed.
SGLang Configuration
Current /etc/systemd/system/qwen38-sglang.service (ExecStart excerpt):
docker run --rm --network host \
--runtime nvidia \
--gpus all \
--shm-size 32g \
--name qwen38-sglang \
-v /home/aerodgx/sglang/models:/models \
qwen38-dflash2:v1.2.2 \
python -m sglang.launch_server \
--model-path /models/Qwen3-8-27B-NVFP4 \
--served-model-name qwen3.8-27b \
--host 0.0.0.0 \
--port 30000 \
--mem-fraction-static 0.45 \
--memory 115g \
--memory-swap 115g \
--max-mamba-cache-size 24 \
--max-running-requests 4 \
--chunked-prefill-size 8192 \
--speculative-algorithm DFLASH \
--speculative-draft-model-path /models/Qwen3-8-DFLASH \
--speculative-num-steps 5 \
--speculative-dflash-topk 4 \
--speculative-num-draft-tokens 20
Key parameters:
--mem-fraction-static 0.45 → ~54 GiB reserved for static KV pool
--chunked-prefill-size 8192
--max-prefill-tokens → not explicitly set (default: 16384)
--max-running-requests 4
- Docker
--memory 115g (soft Docker cap)
Questions
1. Does mem_fraction_static only cover the static KV pool?
We understand that mem_fraction_static reserves memory for the pre‑allocated KV cache. But on a GB10 unified memory system, do dynamic activation tensors during prefill (Q, K, V projections, attention scores, MLP intermediates) still draw from the same unified physical RAM outside that static fraction?
If yes, that explains the crash: at token_usage=0.54, the static pool is only 54% full (plenty of KV room), but the prefill activation burst for 7,136 tokens simultaneously exceeded whatever remained in the unified memory pool.
2. Is there a way to cap the peak activation memory during prefill?
Options we have considered:
--chunked-prefill-size 4096 (down from 8192) — halves the per‑chunk activation footprint
--max-prefill-tokens 4096 (new flag, down from default 16384) — limits total tokens in one prefill pass
--mem-fraction-static 0.42 (down from 0.45) — frees ~3.6 GiB of physical memory for dynamic allocations
Are these the right levers? Are there other flags (e.g., --max-prefill-tokens, --disable‑chunked‑prefill, --max‑total‑tokens) that more directly cap the activation memory peak?
3. DFlash speculative + unified memory — known issues?
The DFlash speculative decoding (--speculative-algorithm DFLASH) loads a draft model that also occupies unified memory. On a 120 GiB GB10:
- Is the draft model memory counted inside
mem_fraction_static?
- Or does it compete for the remaining ~66 GiB (the “host” portion)?
- Are there known OOM issues when draft model activations and main model activations overlap during a speculative prefill?
4. kdump doesn’t capture these crashes — expected?
We have kdump enabled (kdump‑tools systemd service, crashkernel=1G-:1024M in kernel cmdline, pstoreconfigured). However, pstore remains empty after every crash. The hard reset appears to happen at the hardware/NVRM driver level before the kernel can initiate kdump. Is this a known limitation for NVRM OOM on GB10 unified memory?
Context: DGX Spark Unified Memory Architecture
The GB10 SoC shares one physical 120 GiB LPDDR5x pool between CPU and GPU. There is no PCIe bus, no VRAM/system‑RAM boundary, and no pinned GPU memory transfer. This means:
- The GPU “sees” the entire 120 GiB as addressable, but the CPU OS also uses it.
mem_fraction_static=0.45 → ~54 GiB pre‑allocated for KV cache.
- Remaining ~66 GiB is split between: OS (~2 GiB), containers (comfyUI ~1.5 GiB, hermes‑spark ~0.5 GiB, n8n ~0.5 GiB, Ollama CPU‑only ~1 GiB), and SGLang scheduler Python process (~5 GiB RSS).
- At the moment of the crash: ~72 GiB used / 120 GiB, 12 GiB free in host‑visible RAM.
- The 7,136‑token prefill burst at
token_usage=0.54 appears to need more than 12 GiB of dynamic activation space momentarily, blowing through that headroom.
Proposed Fix (pending community feedback)
Before applying, we want to confirm our theory is correct:
# In qwen38-sglang.service ExecStart:
--chunked-prefill-size 4096 \
--max-prefill-tokens 4096 \
--mem-fraction-static 0.42 \
--memory 108g --memory-swap 108g \
Expected effect: prefill bursts are chunked to 4,096 tokens at a time, peak activation ~50% lower, with 3–4 additional GiB freed for dynamic allocations.
What We’ve Already Tried
- Deleted all large Ollama models (removed nemotron 120B, llama 70B, qwen 32B/14B, gemma2 9B) — reduced idle host memory footprint by ~8 GiB.
- Reduced Docker
--memory from 120g → 115g.
- Reduced
--max-running-requests to 4.
- Configured kdump — does not capture the crash (see Q4 above).
None of these prevented the OOM reboots. The pattern points specifically to the prefill burst activation memory, not steady‑state KV cache usage.
System Info
$ uname -a
Linux spark-name 6.17.0-1031-nvidia #31-Ubuntu SMP PREEMPT_DYNAMIC aarch64 GNU/Linux
$ free -h (at time of crash boot):
total used free shared buff/cache available
Mem: 120Gi 72Gi 12Gi 1.0Gi 36Gi 47Gi
Swap: 63Gi 0B 63Gi
# NVIDIA GB10 SoC — 120 GiB unified memory, no discrete VRAM counter in nvidia-smi
Any guidance on the correct parameters to cap prefill activation memory on unified memory ARM SoCs would be greatly appreciated. Thank you.