Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
doku:slurm_sacct [2015/05/29 11:29] – [Accounting script] irdoku:slurm_sacct [2021/09/14 13:13] – [Accounting script] goldenberg
Line 2: Line 2:
 ===== Accounting script ===== ===== Accounting script =====
  
-The script <html> <font color=#cc3300> <b> vsc3CoreHours.py </b> </font> </html> calculates the **elapsed core-hours per user** in your project and the **total amount of core-hours in your project**. The basic formula in this script takes into account the number of nodes per job and the time difference from start to end +The script <html> <font color=#cc3300> <b> vsc4CoreHours.py </b> </font> </html> on VSC4 or <html> <font color=#cc3300> <b> vsc3CoreHours.py </b> </font> </html> on VSC3+ calculates the **elapsed core-hours per user** in your project and the **total amount of core-hours in your project**. The basic formula in this script takes into account the number of nodes per job and the time difference from start to end 
 {{ :doku:corehours.png?500 |}} {{ :doku:corehours.png?500 |}}
  
 === Usage of the script === === Usage of the script ===
-You may give start time ''-S ...'' and end time ''-E ...''. Default start time is the start of VSC-3, 2015-04-01T00:00:00, default end time is today. Instead you may give a duration ''-D d'' which gives you the core-hours within the past //d// days.+You may give start time ''-S ...'' and end time ''-E ...''. Default start time is the start of VSC-3 (even on VSC4), 2015-04-01T00:00:00, default end time is today. Instead you may give a duration ''-D d'' which gives you the core-hours within the past //d// days.
 == Examples: == == Examples: ==
 <code> <code>
-vsc3CoreHours.py                     # total project time span +vsc4CoreHours.py                     # total project time span 
-vsc3CoreHours.py -D 7                # last week +vsc4CoreHours.py -D 7                # last week 
-vsc3CoreHours.py -S 2015-04-23 -E 2015-05-26T00:00:01 +vsc4CoreHours.py -S 2019-04-23 -E 2019-05-26T00:00:01 
-vsc3CoreHours.py -E 2015-05-26       # project start until 2015-05-26 +vsc4CoreHours.py -E 2020-05-26       # project start until 2020-05-26 
-vsc3CoreHours.py -S 2015-04-23       # 2015-04-23 until today+vsc4CoreHours.py -S 2019-04-23       # 2019-04-23 until today
 </code> </code>
  
Line 120: Line 120:
 </code> </code>
  
 +==== Job Memory Usage ====
 +<code>
 +sacct -j <job_ID> --format=JobID,MaxVMSize,MaxVMSizeNode,MaxVMSizeTask
 +</code>
  
  • doku/slurm_sacct.txt
  • Last modified: 2023/01/30 14:14
  • by goldenberg