[slurm-users] How to check if there's a reservation

Chris Samuel chris at csamuel.org
Sat May 12 00:49:08 MDT 2018


Hey Prentice,

On Friday, 11 May 2018 6:23:06 AM AEST Prentice Bisbal wrote:

> They would like to have their submission framework automatically
> detect if there's a reservation that may interfere with their jobs, and
> act accordingly.

As an additional data point there is also srun's "--test-only" option which 
will give you an estimate of when a job of particular dimensions  might start. 

So this would let them test whether it is likely to be successfully completed 
within their deadline.

You don't need to tell it what you're going to run either, you can just do:

[csamuel at farnarkle1 ~]$ srun --test-only -t 7-0 -c 32
srun: Job 130288 to start at 2018-05-12T16:43:59 using 32 processors on john2

[csamuel at farnarkle1 ~]$ srun --test-only -t 7-0 -c 32 -n 64
srun: Job 130289 to start at 2018-05-14T10:36:02 using 2048 processors on 
bryan[1-8],john[1-4,6-10,15-31,34-35,37-45,52-53,65-66,72-86]

It does result in a job being allocated which will never appear in your 
accounting though, so you'll need to be prepared for that.

All the best,
Chris
-- 
 Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC




More information about the slurm-users mailing list