From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: linux-pm@lists.linux-foundation.org
Cc: Pekka Enberg <penberg@cs.helsinki.fi>,
linux-pm@lists.osdl.org, nigel@nigel.suspend2.net,
Pavel Machek <pavel@ucw.cz>
Subject: Re: Re: [RFC/PATCH 2/2] kernel: don't update load average during snapshot/shutdown
Date: Sat, 28 Apr 2007 20:07:17 +0200 [thread overview]
Message-ID: <200704282007.18681.rjw@sisk.pl> (raw)
In-Reply-To: <200704281249.06774.rjw@sisk.pl>
On Saturday, 28 April 2007 12:49, Rafael J. Wysocki wrote:
> On Saturday, 28 April 2007 10:26, Pekka Enberg wrote:
> > Nigel Cunningham wrote:
> > > I therefore have to ask: Please. Go away. Hand the maintainership of
> > > hibernation over to Rafael. Work on things you do care about and where
> > > you do want to see a fully functional implementation. But stop being a
> > > hindrance to us making Linux hibernation support everything that it
> > > ought to be.
> >
> > [snip]
> >
> > Please. The load average is a problem and no the fix is not to make
> > kernel/timer.c worse for everybody but to snapshot the load averages
> > _before_ I/O and restore them after resume.
>
> I'm having an impression that this problem is suspend2-specific. With swsusp
> we can have it only if the writing of snapshot fails.
>
> Namely, with swsusp we have the pre-snapshot value of the load average in the
> image and it should be, so to speak, "normal". Then, once we've restored the
> image, this "normal" value gets recovered and everything is fine. If the writing
> of image fails, we can have a "wrong" (i.e. too high) value of the load average
> afterwards, but then this is an error condition anyway. At least, as a user, I
> can expect some glitches to happen after a failing hibernation.
>
> With suspend2, in turn, the contents of LRU pages are saved before we create
> the snapshot. They can be compressed etc. in the process, so the load average
> can grow quite substantially and this "unusual" load average is then
> snapshotted. Hence, the problem appears after the restore. I think the
> solution could be to save the post-tasks-freezing load average and restore it
> right before snapshotting, but that's only needed for suspend2.
Well, I was wrong. We can have this problem too with swsusp if we need to free
much memory before snapshotting the system.
Greetings,
Rafael
next prev parent reply other threads:[~2007-04-28 18:07 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-27 13:29 [RFC/PATCH 2/2] kernel: don't update load average during snapshot/shutdown Pekka J Enberg
2007-04-27 14:52 ` Pavel Machek
2007-04-27 14:55 ` Pekka Enberg
2007-04-27 21:32 ` Nigel Cunningham
2007-04-27 22:12 ` Pavel Machek
2007-04-27 22:18 ` Nigel Cunningham
2007-04-27 22:25 ` Pavel Machek
2007-04-27 23:05 ` Nigel Cunningham
2007-04-28 8:01 ` Pavel Machek
2007-04-28 8:26 ` Pekka Enberg
2007-04-28 10:49 ` Rafael J. Wysocki
2007-04-28 18:07 ` Rafael J. Wysocki [this message]
2007-04-28 22:52 ` Nigel Cunningham
2007-04-27 15:00 ` Rafael J. Wysocki
2007-04-27 14:59 ` Pekka Enberg
2007-04-27 15:31 ` Rafael J. Wysocki
2007-04-27 15:02 ` Johannes Berg
2007-04-27 15:05 ` Pavel Machek
2007-04-27 15:12 ` Johannes Berg
2007-04-27 15:14 ` Pavel Machek
2007-04-27 15:53 ` Rafael J. Wysocki
2007-04-27 19:56 ` Johannes Berg
2007-04-27 15:16 ` Gautham R Shenoy
2007-04-27 15:30 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200704282007.18681.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-pm@lists.linux-foundation.org \
--cc=linux-pm@lists.osdl.org \
--cc=nigel@nigel.suspend2.net \
--cc=pavel@ucw.cz \
--cc=penberg@cs.helsinki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox