Skip to main content

smtop

Live Slurm GPU and job monitor derived from slmtop, installed as a separate package and command so the original package remains untouched.

Run smtop in a terminal to refresh continuously. Press q to quit.

Useful options:

  • smtop --once: print one snapshot.
  • smtop --free: only show nodes with free GPUs.
  • smtop -d 5: refresh every five seconds.
  • smtop -n 10: refresh ten times and exit.
  • smtop --gpu-metrics local: show live nvidia-smi util, memory, power, temp, and fan data for the current node.
  • smtop --gpu-metrics ssh: query Slurm GPU nodes with ssh <node> nvidia-smi ....
  • smtop --gpu-interval 10: sample GPU telemetry every ten seconds while still refreshing Slurm state at the main delay.
  • smtop --no-ssh-unlock: disable helper jobs and use plain ssh telemetry only.

The main table is node-level: each row aggregates all GPUs on one Slurm node. GPU utilization is averaged, GPU memory and power are summed, and temperature is the hottest GPU on that node.

The live curses UI uses an nvitop-style layout with boxed node telemetry, block bars for memory and utilization, cluster resource bars, and a boxed job queue.

Interactive controls:

  • Up/down arrows select node or job rows; Tab switches between the node and job panels.
  • Mouse clicks select visible node or job rows; mouse wheel moves selection within the panel under the cursor.
  • Click outside selectable rows, or press c, to clear the current selection.
  • Press Enter on a selected GPU node to open nvitop on that node over ssh; press q in nvitop to return to smtop.
  • Press k on your own selected job to open a confirmation dialog for scancel.

By default, smtop uses ssh telemetry and, for nodes that reject ssh, submits CPU-only helper jobs to establish persistent SSH master connections. Helper jobs request one CPU, 100M memory, no GPU, and sleep for two minutes by default. They are submitted in parallel. For unlocked nodes, smtop starts a persistent SSH telemetry channel while the helper job is active, then cancels the helper job after that node returns its first successful GPU telemetry sample. Use --unlock-hold-jobs if your cluster needs the helper jobs to stay alive for every telemetry refresh, or --unlock-keep-jobs to leave helper jobs running after smtop exits. To avoid repeated helper churn on nodes that keep rejecting or dropping telemetry, smtop submits at most three helper jobs per node per run by default; change this with --unlock-max-attempts. If a helper does not produce an SSH master before the unlock timeout, smtop cancels that helper immediately unless --unlock-hold-jobs or --unlock-keep-jobs is set.

Nodes that Slurm reports as unavailable, such as DOWN or NODE_FAIL, are not unlocked or sampled; the node table reports the Slurm state instead.

Unlocking retries SSH master setup for up to 60 seconds by default. The curses UI keeps accepting q and r while telemetry and unlock work runs in the background. If a node still cannot be sampled, the ERR column prefers unlock diagnostics such as unlock submit denied, unlock PD Resources, unlock timeout, unlock metric denied, or unlock nvidia missing over the original access-denied message. If ssh is unlocked but nvidia-smi itself fails with a terminal NVML or driver error, smtop reports that compactly, such as unlock nvml failed, and releases its helper job instead of leaving it running.

When Enter opens nvitop for a GPU node, smtop temporarily suspends its curses screen and starts ssh -tt <node> bash -lc '<nvitop command>'. At startup, smtop resolves the default nvitop executable and terminfo paths from the local environment and stores those values for later Enter launches, which works well on clusters with shared home directories or shared conda paths. A small transition screen hides the shell while ssh and remote nvitop initialize. Existing smtop SSH masters and persistent telemetry channels stay open; they are only cleaned up when smtop itself exits. Use --nvitop-command to override the remote command or --nvitop-term to override the exported terminal type.

Metadata

Release files for smtop 0.10.13

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

Source distribution (sdist)

Source distribution for smtop 0.10.13
File Size Uploaded Provenance Actions
smtop-0.10.13.tar.gz 33.5 kB Without provenance Details for smtop-0.10.13.tar.gz

Built distribution (wheel)

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

Total release size: 67.6 kB

Release files / smtop-0.10.13.tar.gz

Download URL smtop-0.10.13.tar.gz
Size 33.5 kB
Tags Source
SHA-256 checksum
How to use checksums
855a8dab1b0570cdbea207c31553f99368508adaef1a45f7a38ea3a35074cc26
BLAKE2b-256 checksum
How to use checksums
29267065bc858a509da9d9055303f67388f331f36cfa71b8fede7232f9c5d742
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / smtop-0.10.13-py3-none-any.whl

Download URL smtop-0.10.13-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fe1543aedacdc3d02d282ef451ea990b3d6385a6c872763c828aec36b4077dc
BLAKE2b-256 checksum
How to use checksums
e61b442f54ba05893c5d8415f08a558dc8e8366f941e57c6b102bd2260b0745f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Security for smtop 0.10.13

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.

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