linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nice values zeroed after hibernate/suspend?
@ 2011-04-09 22:30 Marc Koschewski
  2011-04-09 22:32 ` Marc Koschewski
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Koschewski @ 2011-04-09 22:30 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nice values zeroed after hibernate/suspend?
  2011-04-09 22:30 nice values zeroed after hibernate/suspend? Marc Koschewski
@ 2011-04-09 22:32 ` Marc Koschewski
  2011-04-10 15:09   ` Sitsofe Wheeler
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Koschewski @ 2011-04-09 22:32 UTC (permalink / raw)
  To: linux-kernel

* Marc Koschewski <marc@osknowledge.org> [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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nice values zeroed after hibernate/suspend?
  2011-04-09 22:32 ` Marc Koschewski
@ 2011-04-10 15:09   ` Sitsofe Wheeler
  2011-04-11  6:59     ` Marc Koschewski
  0 siblings, 1 reply; 4+ messages in thread
From: Sitsofe Wheeler @ 2011-04-10 15:09 UTC (permalink / raw)
  To: Marc Koschewski; +Cc: linux-kernel

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nice values zeroed after hibernate/suspend?
  2011-04-10 15:09   ` Sitsofe Wheeler
@ 2011-04-11  6:59     ` Marc Koschewski
  0 siblings, 0 replies; 4+ messages in thread
From: Marc Koschewski @ 2011-04-11  6:59 UTC (permalink / raw)
  To: Sitsofe Wheeler; +Cc: linux-kernel

* Sitsofe Wheeler <sitsofe@yahoo.com> [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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-11  7:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-09 22:30 nice values zeroed after hibernate/suspend? Marc Koschewski
2011-04-09 22:32 ` Marc Koschewski
2011-04-10 15:09   ` Sitsofe Wheeler
2011-04-11  6:59     ` Marc Koschewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).