[slurm-users] Specify number of cpus allocated to each partition when nodes are shared

Bruno Santos bacmsantos at gmail.com
Mon Jan 21 16:01:51 UTC 2019


Hi everyone,

I am scratching my head to find a way to do this on slurm. We have three
nodes configured as such:

> # COMPUTE NODES
> NodeName=brassica NodeAddr=10.1.10.83 CPUs=64 RealMemory=950000 Sockets=4
> CoresPerSocket=8 ThreadsPerCore=2 State=UNKNOWN
> NodeName=triticum NodeAddr=10.1.10.170 CPUs=144 RealMemory=3000000
> Sockets=4 CoresPerSocket=18 ThreadsPerCore=2 State=UNKNOWN
> NodeName=ni-compute-01 NodeAddr=10.1.10.192 CPUs=80 RealMemory=370000
> Sockets=2 CoresPerSocket=20 ThreadsPerCore=2 State=UNKNOWN


So each node has a different number of CPUs and we are using CPUs and
memory as consumable resources SelectTypeParameters=CR_CPU_Memory.

We then have three queues essential defined as high to low priority and
would like to allocate a specific number of cpus per node to each partition
is this possible?
We would want  something like this:

> PartitionName=high-prior  Nodes=brassica Default=NO MaxTime=01:00:00
> State=UP CPUs=10
> PartitionName=medium-prior Nodes=brassica,triticum,ni-compute-01
> Default=NO MaxTime=1-00:00:00 State=UP
> CPUs=brassica[16-47],triticum[0-35],ni-compute-01[0-19]
> PartitionName=unlimited Nodes=brassica,triticum,ni-compute-01 Default=YES
> MaxTime=INFINITE State=UP
> CPUs=brassica[48-63],triticum[36-143],ni-compute-01[20-79]


However, I cannot find any option to allow to do this. Best I can see
is MaxCPUsPerNode but due to the heterogeneous nature of the nodes this
isn't ideal. We would like to always have those 10CPUs available on the
high priority while allocating the majority of the CPUs to the unlimited
partition.

Thank you very much in advance,

Bruno Santos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20190121/effc8d43/attachment.html>


More information about the slurm-users mailing list