hpc:accounting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
hpc:accounting [2025/02/04 13:37] – [Job accounting] Yann Sagon | hpc:accounting [2025/03/13 09:57] (current) – [Report and statistics with sreport] Yann Sagon | ||
---|---|---|---|
Line 55: | Line 55: | ||
Example: | Example: | ||
< | < | ||
- | nodes=$(sinfo | + | ug_getNodeCharacteristicsSummary.sh |
- | ug_getNodeCharacteristicsSummary.sh --nodes $nodes | + | host sn |
- | host sn | + | ------ |
- | ------ | + | cpu084 |
- | cpu084 | + | cpu085 |
- | cpu085 | + | cpu086 |
- | cpu086 | + | cpu087 |
- | cpu087 | + | cpu088 |
- | cpu088 | + | cpu089 |
- | cpu089 | + | cpu090 |
- | [...] | + | cpu209 |
- | cpu213 | + | cpu210 |
- | cpu226 | + | cpu211 |
- | cpu227 | + | cpu212 |
- | cpu228 | + | cpu213 |
- | cpu229 | + | cpu226 |
- | cpu277 | + | cpu227 |
- | gpu002 | + | cpu228 |
- | gpu012 | + | cpu229 |
- | gpu017 | + | cpu277 |
- | gpu023 | + | gpu002 |
- | gpu024 | + | gpu012 |
- | gpu044 | + | gpu017 |
- | gpu047 | + | gpu023 |
- | gpu049 | + | gpu024 |
- | Total CPUs: 1364 Total CPUs memory[GB]: 6059 Total GPUs: 61, Total GPUs memory[MB] 142300 | + | gpu044 |
+ | gpu047 | ||
+ | gpu049 | ||
+ | |||
+ | ============================================================ Summary ============================================================ | ||
+ | Total CPUs: 1364 Total CPUs memory[GB]: 6059 Total GPUs: 61 Total GPUs memory[MB]: 142300 | ||
</ | </ | ||
+ | |||
+ | How to read the output: | ||
+ | * **host**: the hostname of the compute node | ||
+ | * **sn**: the serial number of the node | ||
+ | * **cpu**: the number of CPUs available in the node | ||
+ | * **mem**: the quantity of memory on the node in GB | ||
+ | * **gpunumber**: | ||
+ | * **gpudeleted**: | ||
+ | * **gpumodel**: | ||
+ | * **gpumemory**: | ||
+ | * **purchasedate**: | ||
+ | * **months remaining in prod. (Jan 2025)**: the number of months the node remains the property of the research group, the reference date is indicated in parenthesis. In this example it is January 2025. | ||
+ | * **billing**: | ||
+ | |||
+ | You can modify the reference year if you want to " | ||
===== Job accounting ===== | ===== Job accounting ===== | ||
Line 115: | Line 135: | ||
- | We wrote a helper that you can use to get your past resource usage on the cluster. | + | We wrote a helper that you can use to get your past resource usage on the cluster. |
+ | * for each user of a given account (PI) | ||
+ | * total usage of a given account (PI) | ||
< | < | ||
- | (baobab)-[sagon@login1 ~]$ ug_slurm_usage_per_user.py --help | + | (baobab)-[sagon@login1 ~]$ ug_slurm_usage_per_user.py -h |
- | usage: ug_slurm_usage_per_user.py [-h] [--user USER] [--start START] [--end END] [--pi PI] [--verbose] | + | usage: ug_slurm_usage_per_user.py [-h] [--user USER] [--start START] [--end END] [--pi PI] [--cluster CLUSTER] [--all_users] [--report_type {user, |
Retrieve HPC utilization statistics for a user within a specified time range. | Retrieve HPC utilization statistics for a user within a specified time range. | ||
options: | options: | ||
- | -h, --help | + | -h, --help |
- | --user USER The username to retrieve utilization for. | + | --user USER |
- | --start START Start date (default: first day of current month). | + | --start START |
- | --end END End date (default: current time). | + | --end END |
- | --pi PI Specify the PI manually (optional). If not provided, it will be auto-detected. | + | --pi PI |
- | --verbose | + | --cluster CLUSTER |
+ | --all_users | ||
+ | --report_type {user, | ||
+ | Report type: UserUtilizationByAccount or AccountUtilizationByUser | ||
+ | --time_format TIME_FORMAT | ||
+ | Specify the time formt for the reporting. Default is by hours. You can use Minutes or Seconds | ||
+ | --verbose | ||
</ | </ | ||
By default when you run this script, it will print your past usage of the current month, for all the accounts you are member of. | By default when you run this script, it will print your past usage of the current month, for all the accounts you are member of. | ||
+ | |||
+ | |||
hpc/accounting.1738676239.txt.gz · Last modified: 2025/02/04 13:37 by Yann Sagon