[slurm-users] How to find user limit in SLURM

13,019 views
Skip to first unread message

程迪

unread,
May 20, 2018, 9:31:00 PM5/20/18
to slurm...@lists.schedmd.com
Hi everyone,

I am using SLURM as a normal user. I want to find the usage limit of my user. I can access the slurm's config via `scontrol show config`. But it is my user's limit.

I can find the account of my user by `sacctmgr show user di`. But I cannot find the QOS or usage limit of my user. 

Is it possible to do that?

Di Cheng
Engineer of Research and Development Center, visiting scholar at University of Connecticut
China Academy of Aerospace Aerodynamics
Phone @ China: +86-l58Ol5949ll
Phone @ US: +l-86O-6l7-l886

Address: No.17, YunGang West Road, Fengtai District, Beijing, China

Zip Code:100074

Lachlan Musicman

unread,
May 20, 2018, 9:37:25 PM5/20/18
to Slurm User Community List
On 21 May 2018 at 11:29, 程迪 <chengd...@gmail.com> wrote:
Hi everyone,

I am using SLURM as a normal user. I want to find the usage limit of my user. I can access the slurm's config via `scontrol show config`. But it is my user's limit.

I can find the account of my user by `sacctmgr show user di`. But I cannot find the QOS or usage limit of my user. 

Is it possible to do that?

Yes :) QoS is managed by sacctmgr:

sacctmgr show qos

Cheers
L.


------
"The antidote to apocalypticism is apocalyptic civics. Apocalyptic civics is the insistence that we cannot ignore the truth, nor should we panic about it. It is a shared consciousness that our institutions have failed and our ecosystem is collapsing, yet we are still here — and we are creative agents who can shape our destinies. Apocalyptic civics is the conviction that the only way out is through, and the only way through is together. "

Greg Bloom @greggish https://twitter.com/greggish/status/873177525903609857

Lachlan Musicman

unread,
May 20, 2018, 9:41:30 PM5/20/18
to Slurm User Community List
On 21 May 2018 at 11:36, Lachlan Musicman <dat...@gmail.com> wrote:
On 21 May 2018 at 11:29, 程迪 <chengd...@gmail.com> wrote:
Hi everyone,

I am using SLURM as a normal user. I want to find the usage limit of my user. I can access the slurm's config via `scontrol show config`. But it is my user's limit.

I can find the account of my user by `sacctmgr show user di`. But I cannot find the QOS or usage limit of my user. 

Is it possible to do that?

Yes :) QoS is managed by sacctmgr:

sacctmgr show qos

Sorry Cheng, I only gave you half the answer.

That command will show you the QOS that have been set on the cluster.

To get a user's QoS, try

sacctmgr list associations format=Account,User,Partition,qos

If you have a lot of users (like me) I find that grep helps

sacctmgr list associations format=Account,User,Partition,qos | grep <id>


Cheers
L.


Sébastien VIGNERON

unread,
May 21, 2018, 4:45:48 AM5/21/18
to Slurm User Community List
Hi,

If it can help, I use these bash aliases for the same purpose (easier to read than default output format):

show every associations of every user.
# if user=username is passed, show only associations for the specific user username
# see "man sacctmgr" for more
function cri_show_assoc ()
{
    sacctmgr -p list associations $@ format=Account,User,Partition,Qos,DefaultQOS tree | column -ts'|'
}

show every QoS definition
# if name=qosname is passed, show only the specific QoS qosname definition
# see "man sacctmgr" for more
function cri_show_qos ()
{
    sacctmgr -p list qos $@ format=Name,Priority,GraceTime,GrpTRES,GrpJobs,GrpSubmit,GrpSubmit,MaxTRES,MaxTRESPerUser,MaxJobsPU | column -ts'|'
}

$ cri_show_assoc user=u
Account  User  Partition  QOS            Def QOS
acc1     u     part1      q_acc1_part1     q_acc1_part1
acc1     u     part2      q_acc1_part2     q_acc1_part2
acc1     u     part3      q_acc1_part3     q_acc1_part3
acc1     u     part4      q_acc1_part4     q_acc1_part4
acc1     u     part5      q_acc1_part5     q_acc1_part5
acc1     u     part6      q_acc1_part6     q_acc1_part6
acc1     u     part7      q_acc1_part7     q_acc1_part7
acc1     u     part7      q_acc1_part7     q_acc1_part7
acc1     u     part8      q_acc1_part8     q_acc1_part8
acc1     u     part9      q_acc1_part9     q_acc1_part9
acc1     u     part10     q_acc1_part10    q_acc1_part10
acc1     u                q_acc1           q_acc1

$ cri_show_qos name=q_acc1
Name    Priority  GraceTime  GrpTRES  GrpJobs  GrpSubmit  MaxTRES  MaxTRESPU  MaxJobsPU
q_acc1  0         00:00:00                     2000                cpu=4200

Cordialement / Best regards,

Sébastien VIGNERON 
CRIANN, 
Ingénieur / Engineer
Technopôle du Madrillet 
745, avenue de l'Université 
76800 Saint-Etienne du Rouvray - France 
tél. +33 2 32 91 42 91 
fax. +33 2 32 91 42 92 
http://www.criann.fr 
mailto:sebastien...@criann.fr
support: sup...@criann.fr
Reply all
Reply to author
Forward
0 new messages