How to generate a usage report from SLURM: Difference between revisions

From RCSWiki
Jump to navigation Jump to search
m (Added categories)
(Added navbox)
 
Line 27: Line 27:
[[Category:Guides]]
[[Category:Guides]]
[[Category:How-Tos]]
[[Category:How-Tos]]
{{Navbox Guides}}

Latest revision as of 20:27, 21 September 2023

General

SLURM provides the sreport command to generate reports.

Use cases

Getting usage report for specific users

The default usage is given in minutes, to get it in hours use the -t Hours option.

For user1 and user2, starting from Jan 1st, 2022 until now:

$ sreport cluster AccountUtilizationByUser -t Hours Users=user1,user2 Start=2022-01-01
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 2022-01-01T00:00:00 - 2022-08-18T23:59:59 (19868400 secs)
Usage reported in CPU Hours
--------------------------------------------------------------------------------
  Cluster         Account     Login     Proper Name       Used   Energy 
--------- --------------- --------- --------------- ---------- -------- 
arc-admin             all     user1           user1     545651        0 
arc-admin             all     user2           user2     264997        0 

For all users, do not specify the list of users:

$ sreport cluster AccountUtilizationByUser -t Hours Start=2022-01-01