[slurm-users] how to allocate high priority to low cpu and memory jobs

203 views
Skip to first unread message

z1...@arcor.de

unread,
Jan 25, 2022, 4:20:02 PM1/25/22
to slurm-users

Dear all,

how can I reverse the priority, so that jobs with high cpu and memory
have a low priority?


The Priority/Multifactor plugin it is possible to calculate high
priority for high cpu and memory jobs.

With PriorityFavorSmall, jobs with a lower cpu number have a high
priority, but this only works for cpu, not memory.


Thanks,

Mike

Renfro, Michael

unread,
Jan 25, 2022, 4:32:29 PM1/25/22
to Slurm User Community List, slurm-users

Since there's only 9 factors to assign priority weights to, one way around this might be to set up separate partitions for high memory and low memory jobs (with a max memory allowed for the low memory partition), and then use partition weights to separate those jobs out.

 

From: slurm-users <slurm-use...@lists.schedmd.com> on behalf of z1...@arcor.de <z1...@arcor.de>
Date: Tuesday, January 25, 2022 at 3:20 PM
To: slurm-users <slurm...@schedmd.com>
Subject: [slurm-users] how to allocate high priority to low cpu and memory jobs

External Email Warning

This email originated from outside the university. Please use caution when opening attachments, clicking links, or responding to requests.

________________________________

Rémi Palancher

unread,
Jan 28, 2022, 3:21:29 AM1/28/22
to Slurm User Community List, slurm-users
------- Original Message -------
Well, there are several options available for this use case, and the best choice mostly depends of your current configuration.

Additionnaly to Michael proposal with the partitions, you could also set up a QOS for low memory jobs, with a high priority and MaxTRESPerJob.

--
Rémi Palancher
Rackslab: Open Source Solutions for HPC Operations
https://rackslab.io

z1...@arcor.de

unread,
Feb 1, 2022, 3:03:57 PM2/1/22
to slurm...@lists.schedmd.com
There aren't many mods in my slurm conf.

Since the priority/multifactor with PriorityWeightTres is already
active, it would be possible to take QOS.

Could you give a configuration example?
For example, jobs could occupy 1-128GB, i.e. categorization of ...16,
32, 64, 128 is necessary?
Two categories low and high would not be sufficient.


Many Thanks

Mike
Reply all
Reply to author
Forward
0 new messages