<div dir="ltr">Hi Eliyahu,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 19, 2014 at 5:40 PM, E.S. Rosenberg <span dir="ltr"><<a href="mailto:esr+linux-il@g.jct.ac.il" target="_blank">esr+linux-il@g.jct.ac.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-19 12:55 GMT+03:00 Shlomi Fish <span dir="ltr"><<a href="mailto:shlomif@shlomifish.org" target="_blank">shlomif@shlomifish.org</a>></span>:<div class="">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Efraim,<br>
<div><br>
On Mon, 19 May 2014 10:19:23 +0300<br>
Efraim Flashner <<a href="mailto:efraim.flashner@gmail.com" target="_blank">efraim.flashner@gmail.com</a>> wrote:<br>
<br>
> Also, nice -19 is higher priority than nice 19.<br>
><br>
<br>
</div>No, it's not. When you run the "nice -19" it sets it to the lowest possible<br>
priority. I see these processes in htop where the nice is set at 19 and I<br>
cannot lower it at all.<br></blockquote></div><div>I may be misreading you but:<br></div><div>nice values go between -20 and 20 where negative numbers have a *higher* priority then positive numbers, it's a "rating" of how "nice" my program is to others, so -20 is absolutely rude to the others and doesn't share whereas 20 will always yield right of way...<br>
<br><a href="http://en.wikipedia.org/wiki/Nice_%28Unix%29" target="_blank">http://en.wikipedia.org/wiki/Nice_%28Unix%29</a><br></div><div>Regards,<br>Eliyahu - אליהו<br></div></div></div></div></blockquote><div><br></div>
<div>I know that but what the "nice -19" command actually does is increase the nice value to the maximum, which means it always tries to share, and has the lowest priority as far as the sytem is concerned. See for example this shell session:<br>
<br></div><div>[SHELL]<br></div><div>shlomif@telaviv1:~$ <br>shlomif@telaviv1:~$ <br>shlomif@telaviv1:~$ nice 19 bash<br>nice: 19: No such file or directory<br>shlomif@telaviv1:~$ nice -19 bash<br>shlomif@telaviv1:~$ exit<br>
exit<br>shlomif@telaviv1:~$ nice -n -19 bash<br>nice: cannot set niceness: Permission denied<br>shlomif@telaviv1:~$ exit<br>exit<br>shlomif@telaviv1:~$ nice -n 19 bash<br>shlomif@telaviv1:~$ exit<br>exit<br>shlomif@telaviv1:~$ <br>
</div><div>[/SHELL]<br><br></div><div>all of the relevant processes have a nice value of "19" and a PRI of 39 which means they have the lowest priority.<br></div><div> <br></div><div>Regards,<br><br></div><div>-- Shlomi Fish<br>
</div></div><br clear="all"><br>-- <br><div dir="ltr">------------------------------------------<br>Shlomi Fish <a href="http://www.shlomifish.org/" target="_blank">http://www.shlomifish.org/</a><br><br>Chuck Norris helps the gods that help themselves.<br>
<br>Please reply to list if it's a mailing list post - <a href="http://shlom.in/reply" target="_blank">http://shlom.in/reply</a> .<br></div>
</div></div>