Playbook · DGX Spark clusters · Problem
The CPU and the GPU of a DGX Spark share one pool of memory. Two Sparks do not become one big pool: each has to hold its own share.
Find what is using the memory before you stop anything. Stopping the wrong process loses that job’s work.
Checked on 26 November 2026 against: NVIDIA's DGX Spark and cluster pages and playbooks, vLLM's latest developer pages and Ray's memory pages. We have not yet run this playbook start to finish on our own hardware.
The symptom
| Message | What printed it |
|---|---|
CUDA out of memory | A GPU allocation failed. NVIDIA’s playbooks list it. |
Decrease GPU memory utilization or reduce GPU memory used by other processes | vLLM’s check at start-up: not enough was free for the share it asked for. The line may vary between versions. |
Workers (tasks / actors) killed due to memory pressure (OOM) | Ray’s memory monitor ended a worker. |
Out of memory: Killed process in the kernel log | Linux itself ended a process. |
Memory-Usage: Not Supported in nvidia-smi | Not an error. NVIDIA says this is expected on DGX Spark. |
Written from the makers’ own pages and source code, read on 26 November 2026. We have not run these checks and fixes on our own hardware for this page. In the commands, spark-two and words in capitals such as USER, PEER_LINK_IP and NAME are made-up placeholders: put your own in. All cluster problems and the safe-checks method.
Safe checks first
Run these on both Sparks. Compare a quiet moment with the moment of failure.
NVIDIA explains that what CUDA reports as free can be less than what could be made available, because the system can move other memory to swap.
free -h
grep -E 'MemAvailable|SwapFree' /proc/meminfo
Look for a model server left running, a second copy of your job, a notebook or another container.
nvidia-smi
docker stats --no-stream
ps aux --sort=-rss | head -n 15
The kernel log names the process that was killed. Docker’s OOMKilled field only helps while the container still exists, and a false does not rule out a GPU allocation error. Process lists and logs can show tokens: do not paste them as they are.
journalctl -k | grep -i 'out of memory'
docker inspect --format '{{.State.OOMKilled}} {{.State.ExitCode}}' NAME
Ray says its memory monitor writes details to raylet.out. NVIDIA’s two-Spark vLLM steps start Ray with the monitor switched off (RAY_memory_monitor_refresh_ms=0), so in that set-up Ray will not step in before Linux does. That consequence is our reading.
docker inspect --format '{{range .Config.Env}}{{println .}}{{end}}' NAME | grep RAY_
What each result means
| What you found | What it means | Next |
|---|---|---|
| Memory already in use before your job | Another process holds it. | Stop what you do not need |
| vLLM’s free-memory line at start-up | The share it asked for was more than was free. | Free memory or lower the share |
| Fails while loading | Weights plus working memory do not fit that node. | Smaller or quantized model |
| Fails under traffic | Longer inputs or more requests at once. | Lower context and concurrency |
| Kernel killed it; the whole Spark stalled | System memory ran out, not just the GPU part. | Leave more for the system |
| Only one of two Sparks fails | That node has less free, or its settings or processes differ. | Compare the two |
Fix
Restarts or stops something. Stops that container and anything running inside it. Check whose it is first.
docker stop NAME
These are vLLM’s own options, added to your usual command. NVIDIA’s playbook suggests lowering --max-model-len and --max-num-seqs, which cut the longest request and the number at once. --gpu-memory-utilization sets the share vLLM takes. On a DGX Spark, a high share leaves less for the operating system and everything else; that is our advice, not a vLLM figure. Any change needs the server restarted.
Changing a limit restarts the model server. Keep a copy of the command that you started from.
vLLM’s memory page also covers quantized models, smaller CUDA graph settings and limits on image and video inputs. Each has a cost in quality, features or speed. Read it for your version.
NVIDIA gives this as a debugging workaround for memory trouble on unified memory. It does not add memory, and the cache fills again.
Changes something. Empties the Linux file cache for the whole system. Other programs then re-read from disk. Restart your application afterwards.
sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches'
A split gives each Spark part of the model, plus working memory of its own. It only works with software that supports it, set up on both. See the cluster setup guide.
Confirm
A model that loads can still fail under long inputs or several requests. Test at the longest input and the number of requests you expect, watching free -h on both Sparks, and check the kernel log again afterwards.
free -h
journalctl -k --since '30 min ago' | grep -i 'out of memory'
Undo
Go back to your saved launch command. Start any container you stopped with docker start and its name, if it still exists. The cache flush needs no undo.
Restarts or stops something. Starts that container again, which takes memory back.
docker start NAME
Next
Server AI Hub is our app for looking after a DGX Spark. You do not need it to follow this playbook. It is coming soon to the App Store and the Microsoft Store.
Sources
General guidance only, in our own words. Check what a command does before you run it; you use these steps at your own risk. NVIDIA, DGX Spark, ConnectX and CUDA are trademarks of NVIDIA Corporation; Docker, Ray, PyTorch, Ubuntu, Linux, Hugging Face and other names belong to their owners. 6ixLabs is not affiliated with or endorsed by NVIDIA or any project named here.