[slurm-users] How to set priorities of actual obs

Dmitri Chebotarov dchebota at gmu.edu
Fri Sep 14 07:35:25 MDT 2018

Hi Ketiw, 

Wouldn't 'nice' work in this case?

$ man nice
       nice - run a program with modified scheduling priority

       nice [OPTION] [COMMAND [ARG]...]

In your submit script you would run the program as

nice -n 19 <program-name>

-----Original Message-----
From: slurm-users <slurm-users-bounces at lists.schedmd.com> On Behalf Of Loris Bennett
Sent: Friday, September 14, 2018 9:15 AM
To: slurm-users at lists.schedmd.com
Subject: Re: [slurm-users] How to set priorities of actual obs

kesim <ketiwsim at gmail.com> writes:

>> On Fri, Sep 14, 2018 at 2:41 PM Loris Bennett <loris.bennett at fu-berlin.de> wrote:
>>  Hi Ketiw,
>>  kesim <ketiwsim at gmail.com> writes:
>>  > Dear all,
>>  >
>>  > I would like to submit a job in such a way that the actual program 
>> is  > run with the lowest priority (nice=19 on linux). At the moment 
>> every  > task has priority 0. Is it possible to do that and how?
>>  >
>>  > Best regards,
>>  >
>>  > Ketiw
>>  I'm not aware that this is possible. What would be the use-case for  
>> this? Normally you would want a job to make full use of any cores it  
>> had reserved.

> I have slurm running on several desktops and we have only a few 
> application for its use. I would like the slurm submitted tasks to 
> have lowest priority so they are not hampering users who normally work 
> on their desktops.

Please write to the list, rather than to me directly.

I think you can probably achieve what you want with cgroups, but I have no experience of doing this myself.



Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universit├Ąt Berlin         Email loris.bennett at fu-berlin.de

More information about the slurm-users mailing list