Reporting tool for resources actually consumed by a SLURM job.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sprofile-0.2.3.tar.gz.
File metadata
- Download URL: sprofile-0.2.3.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eacd3f2ab4de47e7b93f7be712a33806a92b5cf45a97e4f2e704e496c67ddd7
|
|
| MD5 |
fc1a9f3593de8f3dc9267ea762f94db7
|
|
| BLAKE2b-256 |
77b02f36e7a9edd7266a254b4cd1a184e41fe09dffc45a297b0463888d14aa29
|
File details
Details for the file sprofile-0.2.3-py3-none-any.whl.
File metadata
- Download URL: sprofile-0.2.3-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6f3973deecb32c3496ca9e95623d760d32b808b40dc45455f90516f7fda2443
|
|
| MD5 |
0b6cf5f10a6c25d5c95cd899e2648878
|
|
| BLAKE2b-256 |
00fce309c49936e4a7a68fece778fdd00e3711fdf878439db065ee78088cc025
|