slurmwatch
Live per-process CPU / memory / GPU telemetry for a running Slurm job — the facts, so you can judge.
Install
pip install slurmwatch # or: uv tool install slurmwatch / pipx install slurmwatch
Python 3.10+ on Linux (cgroup v1/v2). GPU monitoring (pynvml) auto-activates on NVIDIA nodes and is skipped on CPU-only ones.
Usage
slurmwatch # auto-discover and attach to your running job
slurmwatch 12345 # a specific job (array 12345_3, het 12345+1)
sw 12345 # "sw" is a short alias
slurmwatch --demo # live TUI, no Slurm needed
slurmwatch 12345 --once --json # one machine-readable snapshot, then exit
slurmwatch 12345 --log run.jsonl # headless logging (JSONL or CSV)
slurmwatch 12345 # PENDING job? shows why it's waiting + where it could run
Keys — c/m/g CPU/memory/GPU detail · type a node number (or ◂ ▸) switch node · p reveal a truncated path · ↑ ↓ PgUp PgDn scroll · q quit.
Notes
- From a login node it attaches to the compute node via
srun --overlap, so the view runs inside your allocation. - Can't attach? You get an
sstatsummary — peak memory, CPU time, allocation — but no live GPU utilization, which Slurm doesn't track per device. SLURMWATCH_NO_HOP=1forces the summary ·--asciifor a non-UTF-8 terminal ·SLURMWATCH_MOUSE=1enables the wheel (off by default so text selection works).- Everything else:
slurmwatch --helpand theSLURMWATCH_*env vars.
Features
- Facts, not verdicts — labelled bars (
usage·used·compute·vram), each with its recent 60-second range and a health dot (●/▲/✖). An alarm strip surfaces only what needs action (MEMORY 91% of limit,1 OF 2 GPUS IDLE). - Per-process — NVML and cgroups count only your PIDs, so a neighbour on a shared node never inflates your numbers.
- Honest memory — working set (RSS minus reclaimable cache), against a configurable OOM guard.
- Multi-node — one process, every node: type a node's number (or step with
◂ ▸) to switch which node the dashboard shows — jump straight to node 199 of a 200-node job. - Pending jobs — point it at a queued job and instead of an error you get why it's waiting (the Slurm reason, in plain English), when the scheduler estimates it'll start, and where it could run right now — a cluster-wide view of free capacity that flags any partition your request would fit into, with the exact
scontrol updateto requeue there. - Runs anywhere — full live telemetry on the node; falls back to Slurm accounting (
sstat) when it can't attach. - Zero config — auto-discovers the job, cgroup v1/v2, GPUs, and where it's running.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file slurmwatch-0.5.0.tar.gz.
File metadata
- Download URL: slurmwatch-0.5.0.tar.gz
- Upload date:
- Size: 3.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8aa4a2ac5c94a3b31a1da728fdcc4e5965dfb44ee661d42ee2a214991a8448da
|
|
| MD5 |
0a349c5664aa6deff7d712dabaa8e4d7
|
|
| BLAKE2b-256 |
d607b403a3e0dc85903a9c16e79d246b7e2cc42c78e8cd9d30bd06d9db25c64c
|
Provenance
The following attestation bundles were made for slurmwatch-0.5.0.tar.gz:
Publisher:
release.yml on PursuitOfDataScience/slurmwatch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slurmwatch-0.5.0.tar.gz -
Subject digest:
8aa4a2ac5c94a3b31a1da728fdcc4e5965dfb44ee661d42ee2a214991a8448da - Sigstore transparency entry: 2148115804
- Sigstore integration time:
-
Permalink:
PursuitOfDataScience/slurmwatch@bf8e13289b5006f6f579ce8c36e0981de8702f1c -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/PursuitOfDataScience
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bf8e13289b5006f6f579ce8c36e0981de8702f1c -
Trigger Event:
push
-
Statement type:
File details
Details for the file slurmwatch-0.5.0-py3-none-any.whl.
File metadata
- Download URL: slurmwatch-0.5.0-py3-none-any.whl
- Upload date:
- Size: 97.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92ea7b0332e5679129c95d8da98ac4cedc0b6e124b13d8cb14eaf376ea9b57d1
|
|
| MD5 |
8e39b2b33e2c72b6cc4f4f379df99639
|
|
| BLAKE2b-256 |
becb2566d160d9789ecda5b47b480d489b8d9faddbd763772fc665bf3a30f0f6
|
Provenance
The following attestation bundles were made for slurmwatch-0.5.0-py3-none-any.whl:
Publisher:
release.yml on PursuitOfDataScience/slurmwatch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slurmwatch-0.5.0-py3-none-any.whl -
Subject digest:
92ea7b0332e5679129c95d8da98ac4cedc0b6e124b13d8cb14eaf376ea9b57d1 - Sigstore transparency entry: 2148115809
- Sigstore integration time:
-
Permalink:
PursuitOfDataScience/slurmwatch@bf8e13289b5006f6f579ce8c36e0981de8702f1c -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/PursuitOfDataScience
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bf8e13289b5006f6f579ce8c36e0981de8702f1c -
Trigger Event:
push
-
Statement type: