<div dir="ltr">Hi,<div><br></div><div>can someone help me? How can I limit the maximum number of CPUs that a partition can use.<br></div><div><br></div><div>Thank You.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-02 18:28 GMT+01:00 Nicolò Parmiggiani <span dir="ltr"><<a href="mailto:nicolo.parmiggiani@gmail.com" target="_blank">nicolo.parmiggiani@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.800000190734863px">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. </div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">My first solution was to split the CPU of the server in two partition, one for each pipeline. </div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">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.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">What solution do you recommend? And how can I implement it?</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Thank You.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-01-02 13:33 GMT+01:00 Ole Holm Nielsen <span dir="ltr"><<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk" target="_blank">Ole.H.Nielsen@fysik.dtu.dk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 01/02/2018 12:59 PM, Nicolò Parmiggiani wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>
</blockquote>
<br></span>
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.<br>
<br>
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:<br>
<br>
PartitionName=partition1 Nodes=a[001-050]<br>
PartitionName=partition2 Nodes=a[051-100]<br>
<br>
If you wish, you can look at my Slurm Wiki pages for inspiration:<br>
<a href="https://wiki.fysik.dtu.dk/niflheim/SLURM" rel="noreferrer" target="_blank">https://wiki.fysik.dtu.dk/nifl<wbr>heim/SLURM</a><br>
<a href="https://wiki.fysik.dtu.dk/niflheim/Slurm_configuration" rel="noreferrer" target="_blank">https://wiki.fysik.dtu.dk/nifl<wbr>heim/Slurm_configuration</a><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2018-01-02 11:29 GMT+01:00 Nicolò Parmiggiani <<a href="mailto:nicolo.parmiggiani@gmail.com" target="_blank">nicolo.parmiggiani@gmail.com</a> <mailto:<a href="mailto:nicolo.parmiggiani@gmail.com" target="_blank">nicolo.parmiggiani@gma<wbr>il.com</a>>>:<span><br>
<br>
    Hi,<br>
<br>
    how can i limit the number of CPU that a partition can use?<br>
<br>
    For instance when a partition reach its maximum CPUs number you can<br>
    submit new job but they are put in queue.<br>
</span></blockquote><span class="m_-1187504046345617134HOEnZb"><font color="#888888">
<br>
/Ole<br>
<br>
-- <br>
You received this message because you are subscribed to a topic in the Google Groups "slurm-users" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/slurm-users/lLpRTC1rvKA/unsubscribe" rel="noreferrer" target="_blank">https://groups.google.com/d/to<wbr>pic/slurm-users/lLpRTC1rvKA/un<wbr>subscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:slurm-users%2Bunsubscribe@googlegroups.com" target="_blank">slurm-users+unsubscribe@google<wbr>groups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="noreferrer" target="_blank">https://groups.google.com/d/op<wbr>tout</a>.<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>