CPU Overheating Problem When Running 4 CPU Intensive Threads with Latest Untained Kernel

CPU Overheating Problem When Running 4 CPU Intensive Threads with Latest Untained Kernel

Shlomi Fish shlomif at gmail.com
Mon May 19 19:05:07 IDT 2014


Hi Eliyahu,


On Mon, May 19, 2014 at 5:40 PM, E.S. Rosenberg <esr+linux-il at g.jct.ac.il>wrote:

>
>
>
> 2014-05-19 12:55 GMT+03:00 Shlomi Fish <shlomif at shlomifish.org>:
>
> Hi Efraim,
>>
>> On Mon, 19 May 2014 10:19:23 +0300
>> Efraim Flashner <efraim.flashner at gmail.com> wrote:
>>
>> > Also, nice -19 is higher priority than nice 19.
>> >
>>
>> No, it's not. When you run the "nice -19" it sets it to the lowest
>> possible
>> priority. I see these processes in htop where the nice is set at 19 and I
>> cannot lower it at all.
>>
> I may be misreading you but:
> 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...
>
> http://en.wikipedia.org/wiki/Nice_%28Unix%29
> Regards,
> Eliyahu - אליהו
>

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:

[SHELL]
shlomif at telaviv1:~$
shlomif at telaviv1:~$
shlomif at telaviv1:~$ nice 19 bash
nice: 19: No such file or directory
shlomif at telaviv1:~$ nice -19 bash
shlomif at telaviv1:~$ exit
exit
shlomif at telaviv1:~$ nice -n -19 bash
nice: cannot set niceness: Permission denied
shlomif at telaviv1:~$ exit
exit
shlomif at telaviv1:~$ nice -n 19 bash
shlomif at telaviv1:~$ exit
exit
shlomif at telaviv1:~$

[/SHELL]

all of the relevant processes have a nice value of "19" and a PRI of 39
which means they have the lowest priority.

Regards,

-- Shlomi Fish


-- 
------------------------------------------
Shlomi Fish http://www.shlomifish.org/

Chuck Norris helps the gods that help themselves.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140519/8a2d8a32/attachment.html>


More information about the Linux-il mailing list