SProfile
Sprofile prints the consumed CPU, RAM and GPU resources at the end of a slurm job. It parses readily available resource usage information and therefore incurs no overhead.
Sprofile can be installed from pypi or from source:
pip install sprofile
For CPU and RAM statistics, slurm must be configured to use the cgroup plugin.
For GPU resource informations, accounting mode must be unabled in the nvidia driver (nvidia-smi --accounting-mode=1).
In order to use sprofile, add the following lines at the beginning and the end of the slurm script:
#!/usr/bin/env sh
...
srun sprofile start
...
srun sprofile stop
The last command will print actual resource utilization:
-- sprofile report (node27) --
Time: 0:00:25 / 1:00:00
CPU load: 0.9 / 2.0
RAM peak: 3G / 8G
GPU load: 0.9 / 1.0
GPU peak mem: 3G / 32G
GPU energy: 0.0kWh
Release files for sprofile 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sprofile-0.2.3.tar.gz | 12.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sprofile-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.6 kB
Release files / sprofile-0.2.3.tar.gz
| Download URL | sprofile-0.2.3.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eacd3f2ab4de47e7b93f7be712a33806a92b5cf45a97e4f2e704e496c67ddd7
|
|
BLAKE2b-256 checksum How to use checksums |
77b02f36e7a9edd7266a254b4cd1a184e41fe09dffc45a297b0463888d14aa29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / sprofile-0.2.3-py3-none-any.whl
| Download URL | sprofile-0.2.3-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6f3973deecb32c3496ca9e95623d760d32b808b40dc45455f90516f7fda2443
|
|
BLAKE2b-256 checksum How to use checksums |
00fce309c49936e4a7a68fece778fdd00e3711fdf878439db065ee78088cc025
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|