How to set default nice level for an application

Matthias Andersson matthias.andersson at pp1.inet.fi
Wed Nov 24 06:32:53 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/24/2010 08:09 AM, Nils Kassube wrote:
> Matthias Andersson wrote:
>> I want to make thunderbird always start with a nice level of 20
>> instead of the default 0. What is the easiest way of achieving this?
> 
> The nice level range doesn't include 20 (see "man nice"). Do you mean 
> -20 (highest priority) or 19 (lowest priority)? If you mean -20, I have 
> no idea because only root can raise the priority and I would never 
> suggest to run thunderbird as root. But if you mean 19, I would suggest 
> you create a starter for thunderbird on your desktop which starts the 
> command
> 
> /usr/bin/nice -19 /usr/bin/thunderbird
> 
> and maybe you should also consider using ionice (see "man ionice") which 
> would make the command:
> 
> /usr/bin/nice -19 /usr/bin/ionice -c3 /usr/bin/thunderbird
> 
> 
> Nils
> 

Sorry, I meant level 19. I have run the command renice -n 19 -p <pid>
to set thunderbird to run at a higher nice level. However, is there some
way of doing this automagically?

//Matthias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJM7LGVAAoJEDF8u+ZDBCZ5FrgIAKj/DspJlSU0Slcznb/IYxEu
rh6O3kMy5V67vf8y82vctLfDUuXPefTHdomm6h5vtdIVptsbXOYOkcTgu1nzPGth
S5vGzAoRZHqlizOgelQTqkT5zB29/yI7vEqYXhAAVq6ofUirMmOyqaE5XjYYQVwa
fX1WhrU1qM5tptvy8zzVno+FL4E72yTzPJDSuKcXeb1R7YJTRwpxAznbfdHOJ/iA
pUvWsxLrcF00w6IRspcvEPKZoArqEA1dWT4TLynSArNxD8hZLYpBNQexTN0POSXj
3ohpVryu3cZhv5Vo8n9w4SP65WvFLP4ccY0aqHKH0Fx/PY38lRrAaByULeA4/D4=
=Kk3E
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list