Slurm htop-style TUI
A terminal dashboard for Slurm clusters, inspired by htop.
Project Links
Screenshot
Features
- Live jobs table with interactive sort, filters and free-text search
- Live node/server table (CPU and memory totals, reserved, and free), with a
per-node details popup (
Enter) listing the jobs on that node - Copy popup (
c) for the selected row of any panel, so values can be pasted elsewhere - Live disk table (
df -h) with usage, mount path, type, and size - Job statistics split by:
- all users
- your jobs
- other users
- GPU status under nodes:
- number of GPU types
- total GPUs
- active GPUs (running jobs)
- reserved GPUs (pending jobs)
- Auto refresh every 3 seconds that keeps your scroll position and selection
Requirements
- Python 3.9+
- Slurm CLI commands available in PATH:
squeuesinfo
- Python packages: see
requirements.txt(main dependencies:textual,rich)
Install
Install from PyPI:
pip install slurm-monitor-top
For local development (editable install), create and activate a virtual environment, then:
pip install -e .
Run
With that environment activated:
slurm-top
Alias command also works:
stop
You can still run it directly during development:
python stop.py
Build Package
python -m pip install --upgrade build twine
python -m build
twine check dist/*
Keybindings
qquitrrefreshstoggle sort-pick modedasc/descfowner filter (all,me,others)/open the job search popup (free-text filter, applied while you type)copen the copy popup for the selected row of the focused panelEnteropen selected job details popupAlt+Left/Rightshrink/grow currently focused panel (tab/click to focus)0reset panel layout- In the nodes panel,
Enteropens the node details popup - In GPU status panel,
Enteropens jobs using/reserving selected GPU type - In job details popup:
ccancel jobhhold joburelease jobrrequeue jobfrefresh now,atoggle auto-updateycopy popup for this job (work dir, command, stdout/stderr paths, ...)Escclose popup
- In node details popup:
Enteropen the details of the selected job on that nodefrefresh nowccopy popup for this nodeEscclose popup
- In the copy popup:
Enteror mouse click copies the highlighted fieldacopies the whole row as one tab-separated lineEscclose popup
Searching jobs
/ opens a popup with a single input box. Filtering happens live as you type
and every whitespace-separated term has to match somewhere in the row (job id,
user, state, partition, name, node list, CPUs, memory, GRES, time). An empty
box shows all jobs again. The active search, the owner filter, the sort key and
the number of shown/total jobs are all written into the Jobs panel border, e.g.
Jobs 4/50 | owner=me | sort=state asc | find="train".
Copying values
Terminal DataTables own the mouse for their own row cursor, so dragging over
the jobs or nodes table does not select text. Instead press c (or y in the
job details popup) to open the copy popup, then Enter / click a field. The
value is sent to the system clipboard with an OSC 52 escape, which works over
SSH in most modern terminals; if yours does not support it, the copied value is
echoed at the bottom of the popup as plain text that can be mouse-selected and
copied with ctrl+c. The free-text blocks of the job details popup (work dir,
command) can also be mouse-selected directly.
Panels
-
Left panel (Jobs)
- Interactive sorting and filtering (see keybindings)
- Includes GPU count per job
-
Right panel (Nodes)
- Uses full right-column height
Enteropens node details: state, CPU/memory/GRES allocation, features, boot and slurmd start time, plus the jobs currently placed on that node- Node state
- CPU total/allocated/idle
- Memory:
- total
- reserved
- free
- Memory is displayed in human-readable units (
M,G,T) - GPU total per node
-
GPU status (under Nodes)
- Cluster totals: total / active / reserved / free estimate
- Per GPU type: total / active / reserved / free estimate
-
Bottom panel (Job statistics)
-
Bottom row
- GPU status panel
- Disk usage panel
- Job statistics panel
-
Bottom panel (Job statistics)
- Per owner bucket: all / me / others
- For running and pending:
- jobs count
- GPU sum
- CPU sum
- memory sum
Notes
- Refresh interval is set in
stop.py(REFRESH_INTERVAL = 3.0). - Some Slurm deployments format memory fields differently; if numbers look off, adjust parsing in
stop.py.
Metadata
Release files for slurm-monitor-top 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slurm_monitor_top-0.3.0.tar.gz | 21.4 kB | Without provenance | Details for slurm_monitor_top-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slurm_monitor_top-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for slurm_monitor_top-0.3.0-py3-none-any.whl |
Total release size: 47.2 kB
Release files / slurm_monitor_top-0.3.0.tar.gz
| Download URL | slurm_monitor_top-0.3.0.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0173718e016b8a02a57f2f603f7a30457010b4cf086b0ff1f9cc1b9a30af0781
|
|
BLAKE2b-256 checksum How to use checksums |
352d6ee9b58087f1200bac1a7f8cb1f6fe1363b70e36ee3a796d7fbf51fc6516
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / slurm_monitor_top-0.3.0-py3-none-any.whl
| Download URL | slurm_monitor_top-0.3.0-py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6922920685f64728b16e887331c6a31f8b2d4694f0e8ea364184c744ddb6e4b5
|
|
BLAKE2b-256 checksum How to use checksums |
aba10023e4686889deb90f235f3695254960c6b5af04d391aa6fef79b7689056
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for slurm-monitor-top 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.