iury simoes-sousa
iury simoes-sousa

Reputation: 1600

Show all resources used by an user using SLURM

I want to estimate the total resources used by a user from SLURM since the creation of the user. Most of the answers on the web show how we can check the resources of a finished job, but I want to list the total use of a specific user, no matter which jobs.

Upvotes: 1

Views: 2268

Answers (1)

damienfrancois
damienfrancois

Reputation: 59260

The command you are looking for is sreport.

A typical usage would be

$ sreport cluster UserUtilizationByAccount start=2021-01-01 mylogin
--------------------------------------------------------------------------------
Cluster/User/Account Utilization 2021-01-01T00:00:00 - 2022-08-22T23:59:59 (51750000 secs)
Usage reported in CPU Minutes
--------------------------------------------------------------------------------
  Cluster     Login     Proper Name         Account      Used   Energy
--------- --------- --------------- --------------- --------- --------
mycluster   mylogin        My Login       myaccount   5960990        0

Make sure to replace mylogin in the command line by the actual login you want the information about. Your can use $USER for your own login.

Depending on the configuration of your cluster, more trackable resources will be reportable. You can also look for the top users with

$ sreport user top

Upvotes: 1

Related Questions