Metadata-Version: 2.4
Name: slurmscope
Version: 2.4.5
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Rust
Classifier: Topic :: System :: Clustering
Classifier: Topic :: System :: Monitoring
License-File: LICENSE
Summary: Live terminal dashboard for Slurm clusters: queue, GPUs, QoS, nodes, memory and storage.
Keywords: slurm,hpc,cluster,gpu,dashboard,tui,monitoring,rust
Author: Fabio Bozzoli
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/FabioBozzoli/slurmscope
Project-URL: Issues, https://github.com/FabioBozzoli/slurmscope/issues
Project-URL: Source, https://github.com/FabioBozzoli/slurmscope/tree/slurmscope-rust/rust

# slurmscope

Live terminal dashboard for Slurm clusters: queue, GPUs, QoS, nodes, memory and storage, in one
interactive view. Since 2.3.0 the stable release is this Rust implementation (a single static-ish
binary, no runtime dependency beyond the Slurm client commands and glibc ≥ 2.17).

    pip install slurmscope            # or: pipx install slurmscope / uv tool install slurmscope
    slurmscope                        # interactive dashboard
    slurmscope --once --page 2        # one snapshot of the jobs page
    slurmscope --help

It needs the Slurm client commands (`squeue`, `scontrol`) in `PATH`, typically on a login node.
Wheels are provided for Linux x86_64 and aarch64 (glibc ≥ 2.17); elsewhere pip builds from the
source distribution, which needs a Rust toolchain (`cargo`). The previous Python implementation
remains available: `pip install "slurmscope<2"`. Both are protocol-compatible: they share the
per-login-node collector, its snapshots and cache files.

## Pokémon thumbnails

When a job name is a Pokémon species (`Pikachu`, `Mr. Mime`, `★ Snorlax shiny ★`, …) a small hopping
sprite is drawn next to it, in terminals that can show images: iTerm2, WezTerm, kitty, Ghostty
(animated), and Sixel terminals such as Windows Terminal, foot, Konsole or VS Code with
`"terminal.integrated.enableImages": true` (static); also inside tmux. Elsewhere nothing changes.
Cached sprites start automatically in supported terminals. `p` turns them on and off; `--no-sprites` disables them.
No image is shipped: press `p` or use `--sprites` to download missing sprites once from PokeAPI with `curl` into
`~/.cache/slurmscope/sprites.zip` (without internet it simply runs without them). Inside tmux < 3.3 the terminal background cannot be
detected: set it with `SLURMSCOPE_SPRITE_BG='#RRGGBB'` (or `--sprite-bg`).

Pokémon and the sprites are © The Pokémon Company / Nintendo; slurmscope is not affiliated with them.

## Job resource monitor

Open your running job's details and press `M` to start GPU, RAM and per-CPU monitoring. Monitoring is initially
off; one persistent overlapping Slurm step serves updates until you stop monitoring or leave the details.
GPU and RAM samples target 0.5 seconds, CPU samples 0.25 seconds. The dashboard warns of roughly 3% slowdown,
with actual overhead depending on the workload. Pending jobs still use `M` to modify their resources.

## GPU allocation map and updates

Nodes show one GPU tile per allocation slot, consistent user colours in initials/symbol views, links for GPUs
belonging to the same job, and a user legend. Press `i` to switch views. These indicate scheduler allocations,
not physical GPU indices or measured utilisation. Jobs start on your own jobs (`mine`; `m` switches users).

Interactive startup checks for newer stable versions in the background. When available, a warning appears
at the top of each page. For `uv tool` installations, press `U` to update and restart; failed installations
restore the previous environment. Other installations show the version to update using their original installer.

## Status

The Rust implementation is compared with the Python one by differential tests (function-level
fuzzing, the App driven event by event, real-process scenarios and byte-for-byte `--once` output);
the documented differences are listed in
[rust/README.md](https://github.com/FabioBozzoli/slurmscope/blob/slurmscope-rust/rust/README.md).
Please report problems at https://github.com/FabioBozzoli/slurmscope/issues.

