[slurm-users] Job Preemption Time

13 views
Skip to first unread message

Jeherul Islam

unread,
Nov 22, 2021, 11:29:31 PM11/22/21
to Slurm User Community List
Dear All,

Is there any way to configure slurm, that the High Priority job waits for a certain amount of time(say 24 hours), before it preempts the other job?

--
Jeherul Islam
Technical Officer Grade I
Data Centre and High Performance Computing
Computer Centre
Indian Institute of Technology Guwahati
Guwahati-39
India
Office No :+91-361-258-3353

Brian Andrus

unread,
Nov 22, 2021, 11:55:57 PM11/22/21
to slurm...@lists.schedmd.com

Maybe submit the job with the option to not start for 24 hours...

From https://slurm.schedmd.com/sbatch.html :

--begin=now+1hour

Brian ANdrus

Jeherul Islam

unread,
Nov 23, 2021, 12:06:23 AM11/23/21
to Slurm User Community List
I want to do that from the admin side.  My actual intention is not to preempt jobs that are going to be completed within 24 hours.

Christopher Samuel

unread,
Nov 23, 2021, 12:08:12 AM11/23/21
to slurm...@lists.schedmd.com
On 11/22/21 8:28 pm, Jeherul Islam wrote:

> Is there any way to configure slurm, that the High Priority job waits
> for a certain amount of time(say 24 hours), before it preempts the other
> job?

Not quite, but you can set PreemptExemptTime which says how long a job
must have run for before it can be considered eligible for preemption.

In other words if that's set to 1 hour and there's a low priority job
that was submitted 55 minutes ago and a new high priority job comes
along it won't be able to preempt it for another 5 minutes.

You can set it on a QOS for instance so that different QOS's can
have different minimum times.

https://slurm.schedmd.com/qos.html#preemption

All the best,
Chris
--
Chris Samuel : http://www.csamuel.org/ : Berkeley, CA, USA

Reply all
Reply to author
Forward
0 new messages