Hi Dietmar,

Dietmar Rieder via slurm-users <slurm-users@lists.schedmd.com> writes:

> Hi,
>
> is it possible to have slurm scheduling jobs automatical according to
> the "-t" time requirements to a fitting partition?
>
> e.g. 3 partitions
>
> PartitionName=standard Nodes=c-[01-10] Default=YES MaxTime=04:00:00
> DefaultTime=00:10:00 State=UP OverSubscribe=NO
> PartitionName=medium Nodes=c-[04-08] Default=NO MaxTime=24:00:00
> DefaultTime=04:00:00 State=UP OverSubscribe=NO
> PartitionName=long Nodes=c-[09-10] Default=NO MaxTime=336:00:00
> DefaultTime=24:00:00 State=UP OverSubscribe=NO
>
>
> So in the standard partition which is the default we have all nodes
> and a max time of 4h, in the medium partition we have 4 nodes with a
> max time of 24h and in the long partition we have 2 nodes with a max
> time of 336h.
>
> I was hoping that if I submit a job with -t 01:00:00 it can be run on
> any node (standard partition), whereas when specifying -t 05:00:00 or
> -t 48:00:00 the job will run on the nodes of the medium or long
> partition respectively.
>
> However, my job will not get scheduled at all when -t is greater than
> 01:00:00
>
> i.e.
>
> ]$ srun --cpus-per-task 1 -t 01:00:01  --pty bash
> srun: Requested partition configuration not available now
> srun: job 42095 queued and waiting for resources
>
> it will wait forever because the standard partition is selected, I was
> thinking that slurm would automatically switch to the medium
> partition.
>
> Do I misunderstand something there? Or can this be somehow configured.

You can specify multiple partitions, e.g.
 
  $ salloc --cpus-per-task=1 --time=01:00:01 --partition=standard,medium,long

Notice that rather than using 'srun ... --pty bash', as far as I
understand, the preferred method is to use 'salloc' as above, and to use
'srun' for starting MPI processes.

Cheers,

Loris

> Thanks so much and sorry for the naive question
>    Dietmar
-- 
Dr. Loris Bennett (Herr/Mr)
FUB-IT (ex-ZEDAT), Freie Universität Berlin

-- 
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com

Reply via email to