[slurm-users] Limit number of CPU in a partition

Ade Fewings ade.fewings at hpcwales.co.uk
Fri Jan 5 04:15:34 MST 2018

Are the partitions dynamic?  i.e. is the desire to limit based on partitions that float across a larger number of nodes and so the desire is to limit a particular partition to maximum amount of those nodes?


From: slurm-users [mailto:slurm-users-bounces at lists.schedmd.com] On Behalf Of Nicolò Parmiggiani
Sent: 05 January 2018 09:56
To: slurm-users at googlegroups.com
Cc: slurm-users at lists.schedmd.com
Subject: Re: [slurm-users] Limit number of CPU in a partition


can someone help me? How can I limit the maximum number of CPUs that a partition can use.

Thank You.

2018-01-02 18:28 GMT+01:00 Nicolò Parmiggiani <nicolo.parmiggiani at gmail.com<mailto:nicolo.parmiggiani at gmail.com>>:
I have only one server and two data analysis pipelines, one for standard jobs and other one for high priority job that can be triggered sometimes.

My first solution was to split the CPU of the server in two partition, one for each pipeline.

A more complex (but i suppose better) solution could be to use one partition and manage the priority of the two pipeline and when i get jobs from high priority pipeline those jobs must start immediately, temporarily blocking standard jobs.

What solution do you recommend? And how can I implement it?

Thank You.

2018-01-02 13:33 GMT+01:00 Ole Holm Nielsen <Ole.H.Nielsen at fysik.dtu.dk<mailto:Ole.H.Nielsen at fysik.dtu.dk>>:
On 01/02/2018 12:59 PM, Nicolò Parmiggiani wrote:
My problem is that i have for instance 100 CPU, and i want to create two partition each with 50 CPU maximum usage. In this way i can submit job to both partitions independently.

I wonder what you really want to achieve?  Why do you want to divide your 100 CPUs (nodes or CPU cores?) into 2 partitions?  The queue will be much more flexible if identical nodes constitute 1 partition.

If you really insist on splitting up your nodes into 2 partitions, you can configure that in slurm.conf, for example with 100 nodes named a001..a100:

PartitionName=partition1 Nodes=a[001-050]
PartitionName=partition2 Nodes=a[051-100]

If you wish, you can look at my Slurm Wiki pages for inspiration:
2018-01-02 11:29 GMT+01:00 Nicolò Parmiggiani <nicolo.parmiggiani at gmail.com<mailto:nicolo.parmiggiani at gmail.com> <mailto:nicolo.parmiggiani at gmail.com<mailto:nicolo.parmiggiani at gmail.com>>>:


    how can i limit the number of CPU that a partition can use?

    For instance when a partition reach its maximum CPUs number you can
    submit new job but they are put in queue.


You received this message because you are subscribed to a topic in the Google Groups "slurm-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/slurm-users/lLpRTC1rvKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to slurm-users+unsubscribe at googlegroups.com<mailto:slurm-users%2Bunsubscribe at googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.


   [HPC Wales - www.hpcwales.co.uk] <http://www.hpcwales.co.uk>


The contents of this email and any files transmitted with it are confidential and intended solely for the named addressee only.  Unless you are the named addressee (or authorised to receive this on their behalf) you may not copy it or use it, or disclose it to anyone else.  If you have received this email in error, please notify the sender by email or telephone.  All emails sent by High Performance Computing Wales have been checked using an Anti-Virus system.  We would advise you to run your own virus check before opening any attachments received as we will not in any event accept any liability whatsoever, once an email and/or attachment is received.

High Performance Computing Wales is a private limited company incorporated in Wales on 8 March 2010 as company number 07181701.

Our registered office is at Finance Office, Bangor University, Cae Derwen, College Road, Bangor, Gwynedd. LL57 2DG. UK.

High Performance Computing Wales is part funded by the European Regional Development Fund through the Welsh Government.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20180105/0626ae3f/attachment-0001.html>

More information about the slurm-users mailing list