Skip to content

Accounting

Whenever you log in you will see your accumulated compute hours for the current month (only for your user). If you need to check more details, you can run the my_account command from any login node.

You will see this after logging in
Resource consumption for user user1 (current month):
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 2025-10-01T00:00:00 - 2025-10-28T11:59:59 (2379600 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name     Used 
--------- ------------------------------ --------- -------------- -------- 
uc3mhpc                 slurm_account1    user1             cpu     3142 
uc3mhpc                 slurm_account1    user1        gres/gpu        0 

For more information about resource usage please use the my_account command

How to use my_account

Here you will find examples of how to use the my_account command.

Accounts and Users

Let us say you want to see the resource consumption of an entire account, not just of your user, for the current month:

my_account -a <account_name> -m

Example Output
[user1@srvlogin02 ~]$ my_account -a slurm_account1 -m
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 2025-10-01T00:00:00 - 2025-10-28T12:59:59 (2383200 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name     Used 
--------- ------------------------------ --------- -------------- -------- 
uc3mhpc                 slurm_account1                      cpu     3142 
uc3mhpc                 slurm_account1                 gres/gpu        0 

If you need the usage of each user in the Slurm account:

my_account -a <account_name> -v -m

Example Output
[user1@srvlogin02 ~]$ my_account -a slurm_account1 -v -m
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 2025-10-01T00:00:00 - 2025-10-28T12:59:59 (2383200 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name     Used 
--------- ------------------------------ --------- -------------- -------- 
uc3mhpc                 slurm_account1                      cpu     3142 
uc3mhpc                 slurm_account1                 gres/gpu        0 
uc3mhpc                 slurm_account1    user1             cpu     3142 
uc3mhpc                 slurm_account1    user1        gres/gpu        0 
uc3mhpc                 slurm_account1    user2             cpu       44 
uc3mhpc                 slurm_account1    user2        gres/gpu        0 

If you need the usage of a specific user within a specific account:

my_account -a <account_name> -u <user_name> -m

Example Output
[user1@srvlogin02 ~]$ my_account -a slurm_account1 -u user2 -m
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 2025-10-01T00:00:00 - 2025-10-28T13:59:59 (2386800 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name        Used 
--------- ------------------------------ --------- -------------- ----------- 
uc3mhpc                 slurm_account1    user2             cpu          44 
uc3mhpc                 slurm_account1    user2        gres/gpu           0 

If you need to check a specific user's usage:

my_account -u <user_name> -m

Example Output
[user1@srvlogin02 ~]$ my_account -u user2 -m
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 2025-10-01T00:00:00 - 2025-10-28T13:59:59 (2386800 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name        Used 
--------- ------------------------------ --------- -------------- ----------- 
uc3mhpc                 slurm_account1    user2             cpu          44 
uc3mhpc                 slurm_account1    user2        gres/gpu           0 

To show the usage during the current month use the -m flag:

my_account -a <account_name> -m

Example Output
[user1@srvlogin02 ~]$ my_account -a slurm_account1 -m
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 2025-10-01T00:00:00 - 2025-10-28T12:59:59 (2383200 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name     Used 
--------- ------------------------------ --------- -------------- -------- 
uc3mhpc                 slurm_account1                      cpu     3142 
uc3mhpc                 slurm_account1                 gres/gpu        0 

To show the all-time usage (since the account was created until now) use the -t flag:

my_account -a <account_name> -t

Example Output
[user1@srvlogin02 ~]$ my_account -a slurm_account1 -t
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 1970-01-01T00:00:00 - 2025-10-27T23:59:59 (1761609600 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name       Used 
--------- ------------------------------ --------- -------------- ---------- 
uc3mhpc                 slurm_account1                      cpu    2364799 
uc3mhpc                 slurm_account1                 gres/gpu        953 

You can also specify a custom date range with the -s and -e options. Note that the date format must be YYYY-MM-DDTHH:MM:SS:

my_account -a <account_name> -s <YYYY-MM-DDTHH:MM:SS> -e <YYYY-MM-DDTHH:MM:SS>

Example Output
[user1@srvlogin02 ~]$ my_account -a slurm_account1 -s 2025-09-01T00:00:00 -e 2025-10-31T23:59:59
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 2025-09-01T00:00:00 - 2025-10-28T12:59:59 (4975200 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name     Used 
--------- ------------------------------ --------- -------------- -------- 
uc3mhpc                 slurm_account1                      cpu    19027 
uc3mhpc                 slurm_account1                 gres/gpu      109 

Multiple accounts/users

If you need to display the usage of multiple Slurm accounts and/or users, you can specify a comma-separated list of them:

my_account -a <account_name>[,<account_name>]* -t

Example Output
[user1@srvlogin02 ~]$ my_account -a slurm_account1,slurm_account2 -t
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 1970-01-01T00:00:00 - 2025-10-27T23:59:59 (1761609600 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name     Used 
--------- ------------------------------ --------- -------------- -------- 
uc3mhpc                 slurm_account1                      cpu        1 
uc3mhpc                 slurm_account1                 gres/gpu        0 
uc3mhpc                 slurm_account2                      cpu  2364799 
uc3mhpc                 slurm_account2                 gres/gpu      953 
my_account -u <user_name>[,<user_name>]* -t
Example Output
[user1@srvlogin02 ~]$ my_account -u user1,user2 -t
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 1970-01-01T00:00:00 - 2025-10-27T23:59:59 (1761609600 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name     Used 
--------- ------------------------------ --------- -------------- -------- 
uc3mhpc                 slurm_account1    user1             cpu     7242 
uc3mhpc                 slurm_account1    user1        gres/gpu        2 
uc3mhpc                 slurm_account1    user2             cpu       44 
uc3mhpc                 slurm_account1    user2        gres/gpu        0 
my_account -a <account_name>[,<account_name>]* -u <user_name>[,<user_name>]* -t
Example Output
[user1@srvlogin02 ~]$ my_account -a slurm_account1,slurm_account2 -u user1,user2 -t
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 1970-01-01T00:00:00 - 2025-10-27T23:59:59 (1761609600 secs)
Usage reported in TRES Hours
--------------------------------------------------------------------------------
Cluster                        Account     Login      TRES Name     Used 
--------- ------------------------------ --------- -------------- -------- 
uc3mhpc                 slurm_account1    user1             cpu        1 
uc3mhpc                 slurm_account1    user1        gres/gpu        0 
uc3mhpc                 slurm_account2    user1             cpu     7242 
uc3mhpc                 slurm_account2    user1        gres/gpu        2 
uc3mhpc                 slurm_account2    user2             cpu       44 
uc3mhpc                 slurm_account2    user2        gres/gpu        0