Playbook · DGX Spark clusters · Problem

DGX Spark out of memory on one Spark

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.

What to do when one Spark runs out of memory

  1. Check each Spark separately with free -h and nvidia-smi.
  2. Find who ended the process: the GPU, Ray, Docker or Linux.
  3. Stop what you do not need, then lower context length and requests at once.
  4. nvidia-smi showing Memory-Usage: Not Supported is expected.

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

What you see.

MessageWhat printed it
CUDA out of memoryA GPU allocation failed. NVIDIA’s playbooks list it.
Decrease GPU memory utilization or reduce GPU memory used by other processesvLLM’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 logLinux itself ended a process.
Memory-Usage: Not Supported in nvidia-smiNot an error. NVIDIA says this is expected on DGX Spark.
Which Spark failed first? Read the log of each node if not yes Was its memory mostly free before? Something else is holding it if not yes Who ended the process? GPU, Ray, Docker or Linux: each differs if not yes Does the model's share fit one Spark? Smaller limits or a smaller model if not
Our diagram: find the Spark, then what holds its memory, then who ended the process, before changing any limit.

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

Look at each Spark separately.

Run these on both Sparks. Compare a quiet moment with the moment of failure.

  1. Read memory and swap

    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
  2. List what is using it

    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
  3. Ask whether Linux or Docker ended it

    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
  4. In Ray, read its own record

    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

Match your result.

What you foundWhat it meansNext
Memory already in use before your jobAnother process holds it.Stop what you do not need
vLLM’s free-memory line at start-upThe share it asked for was more than was free.Free memory or lower the share
Fails while loadingWeights plus working memory do not fit that node.Smaller or quantized model
Fails under trafficLonger inputs or more requests at once.Lower context and concurrency
Kernel killed it; the whole Spark stalledSystem memory ran out, not just the GPU part.Leave more for the system
Only one of two Sparks failsThat node has less free, or its settings or processes differ.Compare the two

Fix

Make room, one change at a time.

Stop what you do not need

Restarts or stops something. Stops that container and anything running inside it. Check whose it is first.

docker stop NAME

Ask for less

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.

Clear the file cache, as a test

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'

Splitting across two Sparks

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

Load it, then use it as you really will.

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

Take a change back.

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

Keep going.

About Server AI Hub

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.

See what Server AI Hub does

Sources

Check the makers’ own pages.

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.