Learn / DGX Spark Cluster Troubleshooting by Symptom

Cluster problems, part 2: software, memory and restarts

Part two: the link works, but the job doesn't. Here's where to look. If you use Ray, compare its version on both Sparks.

Chapters

  1. 0:00Introduction
  2. 0:05Both nodes: Compare the software
  3. 0:15A quiet log: Stuck, or just slow?
  4. 0:28Memory: One pool on each Spark
  5. 0:42After a reboot: What came back?
  6. 0:56No GPU in a container: Check from the host
  7. 1:10Before the fix: Know what it stops
  8. 1:22Wrap up
Read the transcript

Introduction

Part two: the link works, but the job doesn't. Here's where to look.

Both nodes: Compare the software

If you use Ray, compare its version on both Sparks. Compare Python too. The two nodes should match. Then ask how many nodes Ray can see.

docker exec NAME ray --version
docker exec NAME python3 --version
docker exec NAME ray status

A quiet log: Stuck, or just slow?

It may still be downloading. Check whether the cache is growing. It may be reading a very large file from disk. It may be short of memory, and swapping. Or it may be waiting for the other Spark.

Memory: One pool on each Spark

The processor and GPU share this memory. Two Sparks don't become one pool. NVIDIA says the memory total here can read not supported. That's expected. And this shows whether Linux itself ended a process.

free -h
nvidia-smi
journalctl -k | grep -i 'out of memory'

After a reboot: What came back?

Did the cable addresses come back? Ones added by command don't. Is Docker running, and did your containers start? Did your own services start without you signing in? A cluster started from a terminal needs starting again.

No GPU in a container: Check from the host

First, check the GPU on the Spark itself. Next, see whether the container asked for a GPU. Then check the NVIDIA Container Toolkit's setup. Last, check the image is built for this machine.

Before the fix: Know what it stops

Restarting Docker can stop every container on that Spark. Rebooting ends everything running there, for everyone. And removing a container deletes files kept only inside it.

Wrap up

After a fix, repeat the same test. The written steps for each problem are on this page.

Sources

More lessons