<div dir="ltr">Dear Dimitri,<div><br></div><div>Thank you for the answer. I was considering this but I would have to relay on users to submit their jobs that way. I just found a simpler solution but also somewhat limited in scope:</div><div>If </div><div><b>PropagatePrioProcess</b> is set to 0  which is a default then the tasks will inherit slurmd priority. </div><div>You can set it by:  slurmd -n 19</div><div><br></div><div>However it would be nicer if the partitions itself can be separately managed - for short jobs with higher priority etc.</div><div><br></div><div>Best regards,</div><div><br></div><div>Ketiw  </div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 14, 2018 at 3:37 PM Dmitri Chebotarov <<a href="mailto:dchebota@gmu.edu">dchebota@gmu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ketiw, <br>
<br>
Wouldn't 'nice' work in this case?<br>
<br>
$ man nice<br>
...<br>
NAME<br>
       nice - run a program with modified scheduling priority<br>
<br>
SYNOPSIS<br>
       nice [OPTION] [COMMAND [ARG]...]<br>
...<br>
<br>
In your submit script you would run the program as<br>
<br>
nice -n 19 <program-name><br>
<br>
<br>
<br>
-----Original Message-----<br>
From: slurm-users <<a href="mailto:slurm-users-bounces@lists.schedmd.com" target="_blank">slurm-users-bounces@lists.schedmd.com</a>> On Behalf Of Loris Bennett<br>
Sent: Friday, September 14, 2018 9:15 AM<br>
To: <a href="mailto:slurm-users@lists.schedmd.com" target="_blank">slurm-users@lists.schedmd.com</a><br>
Subject: Re: [slurm-users] How to set priorities of actual obs<br>
<br>
<br>
kesim <<a href="mailto:ketiwsim@gmail.com" target="_blank">ketiwsim@gmail.com</a>> writes:<br>
<br>
>> On Fri, Sep 14, 2018 at 2:41 PM Loris Bennett <<a href="mailto:loris.bennett@fu-berlin.de" target="_blank">loris.bennett@fu-berlin.de</a>> wrote:<br>
>><br>
>>  Hi Ketiw,<br>
>><br>
>>  kesim <<a href="mailto:ketiwsim@gmail.com" target="_blank">ketiwsim@gmail.com</a>> writes:<br>
>><br>
>>  > Dear all,<br>
>>  ><br>
>>  > I would like to submit a job in such a way that the actual program <br>
>> is  > run with the lowest priority (nice=19 on linux). At the moment <br>
>> every  > task has priority 0. Is it possible to do that and how?<br>
>>  ><br>
>>  > Best regards,<br>
>>  ><br>
>>  > Ketiw<br>
>><br>
>>  I'm not aware that this is possible. What would be the use-case for  <br>
>> this? Normally you would want a job to make full use of any cores it  <br>
>> had reserved.<br>
<br>
> I have slurm running on several desktops and we have only a few <br>
> application for its use. I would like the slurm submitted tasks to <br>
> have lowest priority so they are not hampering users who normally work <br>
> on their desktops.<br>
<br>
Please write to the list, rather than to me directly.<br>
<br>
I think you can probably achieve what you want with cgroups, but I have no experience of doing this myself.<br>
<br>
Regards<br>
<br>
Loris<br>
<br>
--<br>
Dr. Loris Bennett (Mr.)<br>
ZEDAT, Freie Universität Berlin         Email <a href="mailto:loris.bennett@fu-berlin.de" target="_blank">loris.bennett@fu-berlin.de</a><br>
<br>
</blockquote></div>