Skip to contentSkip to conversation

nice values zeroed after hibernate/suspend?

DISCUSSION Marc Koschewski 2 participants 4 messages Apr 9, 2011 – Apr 11, 2011

lore
Share & tools
lore
#0 lore raw

Hi all,

I could report a false positive here when I'm dumb but ... it seems like the nice values given to a process (-20) are zeroed (=0) when I resume. Could anyone please re-test this?

Regards,
Marc

Signature · 1 line
Marc Koschewski
#1 lore raw
Quoted 8 lines · Marc Koschewski

Hi all,

I could report a false positive here when I'm dumb but ... it seems like the nice values given to a process (-20) are zeroed (=0) when I resume. Could anyone please re-test this?

Regards,
Marc

Ah, I forgot: this is on git HEAD.

Quoted 3 lines
Signature · 2 lines
-- 
Marc Koschewski
Signature · 1 line
Marc Koschewski
#2 lore raw
Quoted 5 lines · Marc Koschewski
Quoted 5 lines

I could report a false positive here when I'm dumb but ... it seems like the nice values given to a process (-20) are zeroed (=0) when I resume. Could anyone
please re-test this?

A suspend to ram/resume still shows a correctly set nice value on my 2.6.39-rc2-00120-g94c8a98:

# nice -n -20 sleep 200 &
[1] 2460
# ps -eo "%c %n"  | grep [s]leep
sleep           -20
pm-suspend
<resume>
# ps -eo "%c %n"  | grep [s]leep
sleep           -20
Signature · 1 line
Sitsofe | http://sucs.org/~sits/
#3 lore raw

* Sitsofe Wheeler <[email protected]> [2011-04-10 16:09:44 +0100]:

Thanks, Sitsofe,

I was playing with it again as well and it seemded like the nice values must somehow have been changed another way. Weird thing. I just wanted to have it confirmed that it was a PEBKAC error. :)

Regards,
Marc

Quoted 23 lines · Marc Koschewski
Quoted 5 lines
Quoted 5 lines

I could report a false positive here when I'm dumb but ... it seems like the nice values given to a process (-20) are zeroed (=0) when I resume. Could anyone
please re-test this?

A suspend to ram/resume still shows a correctly set nice value on my 2.6.39-rc2-00120-g94c8a98:

# nice -n -20 sleep 200 &
[1] 2460
# ps -eo "%c %n"  | grep [s]leep
sleep           -20
pm-suspend
<resume>
# ps -eo "%c %n"  | grep [s]leep
sleep           -20
Signature · 1 line
Sitsofe | http://sucs.org/~sits/
Signature · 1 line
Marc Koschewski