[slurm-users] qos on partition

636 views
Skip to first unread message

LEROY Christine 208562

unread,
Mar 9, 2021, 5:11:07 AM3/9/21
to Slurm User Community List
Hello,

I’d like to reproduce a configuration we had with torque on queues/partitions :
• how to set a maximum number of running jobs on a queue ?
• and a maximum number of running jobs per user for all the users (whatever is the user)?
There is a qos with slurm but it seems always attached to a user or an account, not to a partition ?
What would be the best thing to do here ?

Thanks in advance,
Christine Leroy

Paul Edmon

unread,
Mar 9, 2021, 9:46:08 AM3/9/21
to slurm...@lists.schedmd.com
For the first does MaxJobs not do that?  For the second you can set
MaxJobsPerUser.  That's what we do here for our test partition, we set a
limit of 5 jobs per user running at any given time.

You can then tie the QoS to a specific partition using the QoS option in
the partition config in slurm.conf

-Paul Edmon-

LEROY Christine 208562

unread,
Mar 18, 2021, 8:27:57 AM3/18/21
to Slurm User Community List

Hi all,

 

I've finally configured a qos on partition in the slurm.conf(*), and then with the sacctmgr(**), I try to configure different values for the max running job per user, or the max running jobs (for all users ?), but it doesn’t seem to be possible to have different values; could someone confirm?

 

Thanks in advance,

Christine

 

(*)

PartitionName=lsmgui AllowGroups=xxx Nodes=xxxx QOS=lsmgui MaxTime=INFINITE State=UP

 

(**)

# sacctmgr modify qos lsmgui set MaxJobs=2

# sacctmgr modify qos lsmgui set MaxJobsPU=1

#  sacctmgr show qos lsmgui format=MaxJobs,MaxJobsPU

MaxJobs MaxJobsPU

------- ---------

      1         1

 

# sacctmgr modify qos lsmgui set MaxJobs=2

#  sacctmgr show qos lsmgui format=MaxJobs,MaxJobsPU

MaxJobs MaxJobsPU

------- ---------

      2         2

 

-----Message d'origine-----
De : slurm-users <slurm-use...@lists.schedmd.com> De la part de LEROY Christine 208562
Envoyé : mardi 9 mars 2021 11:11
À : Slurm User Community List <slurm...@lists.schedmd.com>
Objet : [PROVENANCE INTERNET] [slurm-users] qos on partition

Christoph Brüning

unread,
Mar 18, 2021, 10:01:06 AM3/18/21
to slurm...@lists.schedmd.com
Dear Christine,

if I read the documentation correctly, MaxJobs would be valid for an
association, not a QoS.
You'll probably want to try GrpJobs instead of MaxJobs.

I can, however confirm that setting MaxJobs on a QoS actually quietly
sets MaxJobsPU; likewise with MaxSubmitJobs and MaxSubmitJobsPerUser.
I don't know if this an intended shorthand or something, at least I am
not aware of any documentation on this. I had expected this to fail if
it's not a valid option for QoS.

Best
Christoph

On 18/03/2021 13.27, LEROY Christine 208562 wrote:
> Hi all,
>
> I've finally configured a qos on partition in the slurm.conf(*), and
> then with the sacctmgr(**), I try to configure different values for the
> max running job per user, or the max running jobs (for all users ?), but
> it doesn’t seem to be possible to have different values; could someone
> confirm?
>
> Thanks in advance,
>
> Christine
>
> (*)
>
> PartitionName=*lsmgu*i AllowGroups=xxx Nodes=xxxx *QOS=lsmgui*
--
Dr. Christoph Brüning
Universität Würzburg
HPC & DataManagement @ ct.qmat & RZUW
Am Hubland
D-97074 Würzburg
Tel.: +49 931 31-80499

LEROY Christine 208562

unread,
Mar 18, 2021, 11:09:16 AM3/18/21
to Slurm User Community List
Thanks a lot, GrpJobs was what I was looking for.
Many thanks,
Christine

-----Message d'origine-----
De : slurm-users <slurm-use...@lists.schedmd.com> De la part de Christoph Brüning
Envoyé : jeudi 18 mars 2021 15:00
À : slurm...@lists.schedmd.com
Objet : Re: [slurm-users] qos on partition
Reply all
Reply to author
Forward
0 new messages