Skip to main content

slmtop

slmtop is a small Python CLI for day-to-day Slurm resource inspection. It focuses on the views people usually need before submitting or debugging jobs:

  • nvitop-like top view: node resources above current job requests
  • free GPU model/count per node
  • current queue resource requests, including GPU, CPU, memory, nodes, and time limit
  • node GPU and CPU allocation/free capacity

It uses Slurm's own commands (scontrol, squeue, sinfo) and has no runtime Python dependencies.

Install

From PyPI:

python3 -m pip install slmtop

From this directory:

python3 -m pip install .

For editable development:

python3 -m pip install -e .

Usage

Show node resources above current job requests:

slmtop

The output is split into a compact resource dashboard and a job table:

slmtop  nodes 2  |  gpu free 9/16  |  cpu free 144/256

NODE    PARTITION  GPU_USE               CPU_FREE  CPU_USE           STATE
------  ---------  --------------------  --------  ----------------  -----
gpu001  gpu        [########..] 6/8 75%  32/128    [########..] 75%  MIXED
gpu002  gpu        [#.........] 1/8 12%  112/128   [#.........] 12%  IDLE

------------------------------------------------------------------------

JOBID  USER   STATE    GPU  MEM   CPU  NODE    PARTITION  TIME  NAME
-----  -----  -------  ---  ----  ---  ------  ---------  ----  -----
123    alice  RUNNING  4    128G  32   gpu001  gpu        2:31  train

Only show nodes with at least one free GPU in the top section:

slmtop --free

Notes

Slurm clusters differ in how precisely they report allocated GPU types. If a node has multiple GPU models but AllocTRES only says gres/gpu=2, Slurm does not expose which model is allocated in that field. In that case slmtop prints ? for typed free GPU counts and adds a note.

Metadata

Release files for slmtop 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slmtop 0.1.0
File Size Uploaded
slmtop-0.1.0.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slmtop 0.1.0
File Interpreter ABI Platform
slmtop-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / slmtop-0.1.0.tar.gz

Download URL slmtop-0.1.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ef87615de194bbaeedc91d000e91b1a937900902efe5a9fa843cd78e57d132ea
BLAKE2b-256 checksum
How to use checksums
1b979ba7609cecc9b9cbaa65bf2dd0d768e4561ae60b47f75f3c4d49ea9e20ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Release files / slmtop-0.1.0-py3-none-any.whl

Download URL slmtop-0.1.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88dd8a42257283376b226073354490f3c3bbf3cf2e5154d40786021227bd3c68
BLAKE2b-256 checksum
How to use checksums
9331f489199fef4551c51e1dc824f1cdb3749404b863f805f33fc03a00e6151f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page