User Tools

Site Tools


hpc:accounting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hpc:accounting [2025/02/10 16:13] – [Resources available for research group] Yann Sagonhpc:accounting [2025/03/13 09:57] (current) – [Report and statistics with sreport] Yann Sagon
Line 101: Line 101:
   * **billing**: the [[hpc:accounting#resource_accounting_uniformization|billing]] value of the compute node   * **billing**: the [[hpc:accounting#resource_accounting_uniformization|billing]] value of the compute node
  
-You can modify the reference year if you want to "simulate" the hardware you'll have in your private partition in a given year. To do so, use the argument ''--reference-year'' of the script.+You can modify the reference year if you want to "simulate" the hardware you'll have in your private partition in a given year. To do so, use the argument ''<nowiki>--reference-year</nowiki>'' of the script.
  
 ===== Job accounting ===== ===== Job accounting =====
Line 135: 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. This script can display the resource utilization  
 +  * for each user of a given account (PI)  
 +  * total usage of a given account (PI)
  
 <code> <code>
-(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,account}] [--time_format TIME_FORMAT] [--verbose]
  
 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     show this help message and exit +  -h, --help            show this help message and exit 
-  --user USER    The username to retrieve utilization for. +  --user USER           The username to retrieve utilization for. 
-  --start START  Start date (default: first day of current month). +  --start START         Start date (default: first day of current month). 
-  --end END      End date (default: current time). +  --end END             End date (default: current time). 
-  --pi PI        Specify the PI manually (optional). If not provided, it will be auto-detected. +  --pi PI               Specify the PI (account) manually (optional). If not provided, it will be auto-detected. 
-  --verbose      Print verbose msgs+  --cluster CLUSTER     Specify the cluster manually (optional). If not provided, all the clusters will be selected. 
 +  --all_users           If you want to see utilization of all users of a given account (PI) 
 +  --report_type {user,account} 
 +                        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             Print verbose msgs
 </code> </code>
  
 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.1739204021.txt.gz · Last modified: 2025/02/10 16:13 by Yann Sagon