skip to primary navigationskip to content
 

Accounting commands

The following commands are intended to behave similarly to the commands of the same names from Gold. They are wrappers around the underlying SLURM commands sacct and sreport which are much more powerful.

How many core hours available do I have?

mybalance
User            Usage |        Account     Usage | Account Limit Available (CPU hrs)
----------  --------- + -------------- --------- + ------------- ---------
abc123             18 |          STARS       171 |       100,000    99,829
abc123             18 |      STARS-SL2        35 |       101,000   100,965
abc123            925 |         BLACKH    10,634 |       166,667   156,033

This shows for each project of which the user is a member how many cores have been used, awarded, and remain available.

How many core hours does some other project or user have?

gbalance -p HALOS
User           Usage |   Account     Usage | Account Limit Available (CPU hrs)
---------- --------- + --------- --------- + ------------- ---------

pq345              0 |     HALOS   317,656 |       600,000   282,344
xyz10         11,880 |     HALOS   317,656 |       600,000   282,344
...

This outputs the total usage in core hours accumulated to date for the project, the total awarded and total remaining available (i.e. to all members). It also prints the component of the total usage due to each member.

I would like a listing of all jobs I have submitted through a certain project and between certain times

gstatement -p HALOS  -u xyz10 -s "2014-01-01-00:00:00" -e "2014-01-20-00:00:00" 
       JobID      User   Account  JobName  Partition                 End      NCPUS CPUTimeRAW ExitCode      State 
------------ --------- ---------- -------- ---------- ------------------- ---------- ---------- -------- ---------- 
14505            xyz10    halos       help sandybrid+ 2014-01-07T12:59:40         16         32      0:9  COMPLETED 
14506            xyz10    halos       help sandybrid+ 2014-01-07T13:00:11         16         48      2:0     FAILED 
14507            xyz10    halos       bash sandybrid+ 2014-01-07T13:05:20         16       4128      0:0 CANCELLED+ 
14541            xyz10    halos       bash sandybrid+ 2014-01-07T15:31:44         32      85216      0:9  COMPLETED 
14560            xyz10    halos       bash sandybrid+ 2014-01-07T16:19:36         32      89824      0:0  COMPLETED 
14569            xyz10    halos       bash sandybrid+ 2014-01-07T18:19:47         80     576240      0:1    TIMEOUT 
14598            xyz10    halos       bash sandybrid+ 2014-01-07T19:27:54         80     324080      0:0  COMPLETED 
15619            xyz10    halos    test.sh sandybrid+ 2014-01-09T16:10:35         16         64      0:0  COMPLETED 
...

This lists the charge for each job in the CPUTimeRAW column in core seconds.

I would like to add core hours to a particular member of my group

gdeposit -z 10000 -p halos-spqr1

This adds 10000 core hours to the HALOS-SPQR1 project assigned to the user spqr1. Note that if a core hour limit applies to the parent of the project in the project hierarchy - i.e. if the parent project HALOS has an overall core hour limit (which it almost certainly does) - then the global limit will still apply across all per-user projects.

Core hours may be added to a project by a designated project coordinator user. Reducing the core hours available to a project currently can only be done through the system administrators.