2011-04-09 22:40:43

by Marc Burkhardt

[permalink] [raw]
Subject: nice values zeroed after hibernate/suspend?

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

--
Marc Koschewski


2011-04-09 22:40:17

by Marc Burkhardt

[permalink] [raw]
Subject: Re: nice values zeroed after hibernate/suspend?

* Marc Koschewski <[email protected]> [2011-04-10 00:30:43 +0200]:

> 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.

>
> --
> Marc Koschewski

--
Marc Koschewski

2011-04-10 15:09:51

by Sitsofe Wheeler

[permalink] [raw]
Subject: Re: nice values zeroed after hibernate/suspend?

On Sun, Apr 10, 2011 at 12:32:28AM +0200, Marc Koschewski wrote:
> >
> > 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

--
Sitsofe | http://sucs.org/~sits/

2011-04-11 07:00:01

by Marc Burkhardt

[permalink] [raw]
Subject: Re: nice values zeroed after hibernate/suspend?

* 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


> On Sun, Apr 10, 2011 at 12:32:28AM +0200, Marc Koschewski wrote:
> > >
> > > 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
>
> --
> Sitsofe | http://sucs.org/~sits/
>
>

--
Marc Koschewski