# Slurm Job Resource Monitor
A python command line tool to monitor the resources of your slurm jobs in form of a regularly updated table.

## Installation
Install via pip:
`bash pip install slurm-job-resource-monitor `
## Usage
On a slurm managed cluster, run the following command to monitor your jobs:
`bash slurm_job_monitor `
To get all the possible options run:
`bash slurm_job_monitor --help `
The preferred way to use the tool is with the group-by-cmd option to not spam the table when running multi-cpu jobs:
`bash slurm_job_monitor --group-by-cmd "sum" `
## Assumptions / Preliminary
The tool assumes that:
you are running on a slurm managed cluster.
The tool assumes that you have a slurm account.
You can ssh in all allocated notes.
For ssh within the cluster no password is needed (only ssh key).
You need nvidia-smi to display GPU info of nodes (optional).
You can run “ps auxfww” to display CPU info of nodes.
## Some Further Info
Only processes are displayed that have a CPU load > 0.0 $ as shown by “ps auxfww”. This is to avoid the spamming of the table with processes that are not doing anything.
The table is grouped by jobs. So if one job runs on multiple GPUs and nodes they will all be displayed in the same “section” of row. Sections are separated by a horizontal line.
There is a minimal width that the terminal needs to have to display the table correctly. The only column that allows wrapping is the “Command” column.
Release files for slurm-job-resource-monitor 2.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| slurm-job-resource-monitor-2.7.1.tar.gz | 114.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slurm_job_resource_monitor-2.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 123.9 kB
Release files / slurm-job-resource-monitor-2.7.1.tar.gz
| Download URL | slurm-job-resource-monitor-2.7.1.tar.gz |
|---|---|
| Size | 114.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff0dd484d08f83ff96507a8fc2a3ce56fa88ce8a7e9754507f1acf11c8b9b287
|
|
BLAKE2b-256 checksum How to use checksums |
6d43e6f73dfc5d7ab9242b917a70b2b8c612c7115935e17aff266e8055049c73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / slurm_job_resource_monitor-2.7.1-py3-none-any.whl
| Download URL | slurm_job_resource_monitor-2.7.1-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e909f5fac314b4698751c283597596a223f72c46c1da8e5bb73354fc735eb4e5
|
|
BLAKE2b-256 checksum How to use checksums |
50d3da8946e2de5a728ff07ae03cd920700bfb509d61a4c5fa7ce6b8b3518536
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|