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
File details
Details for the file sprofile-0.2.2.tar.gz
.
File metadata
- Download URL: sprofile-0.2.2.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692818d956907de28c645aef6dc46e459bb6ea6e59df33a841ec4fa52f74f711 |
|
MD5 | 455c86f64402cf1dbaec51639d9609d2 |
|
BLAKE2b-256 | e1df37a7454b19debfa33fae44045f4dae4a8cc47ae9945316d7059c3598e9c3 |
File details
Details for the file sprofile-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: sprofile-0.2.2-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e0f9bdbca2c158bcc3d89b305ea3b5bea9ff4a9172e983616ec85e0c7172082 |
|
MD5 | ed23440aeacbd7b846f47688b8e2fbf8 |
|
BLAKE2b-256 | 3ac7372e0098f498d63689f4968ae5631138e9efe47685fae58da57feb8b4823 |