public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nigel Cunningham <ncunningham@cyclades.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Freezer Patches.
Date: Thu, 02 Jun 2005 11:45:54 +1000	[thread overview]
Message-ID: <1117676753.10888.105.camel@localhost> (raw)
In-Reply-To: <20050601230235.GF11163@elf.ucw.cz>

Hi.

On Thu, 2005-06-02 at 09:02, Pavel Machek wrote:
> On Čt 02-06-05 08:45:33, Benjamin Herrenschmidt wrote:
> > On Thu, 2005-06-02 at 00:31 +0200, Pavel Machek wrote:
> > > Hi!
> > > 
> > > (Well, it is just after midnight here :-).
> > > 
> > > > > > Here are the freezer patches. They were prepared against rc3, but I
> > > > > > think they still apply fine against rc5. (Ben, these are the same ones I
> > > > > > sent you the other day).
> > > > > 
> > > > > 304 seems ugly and completely useless for mainline
> > > > 
> > > > That's because you don't understand what it's doing.
> > > > 
> > > > The new refrigerator implementation works like this:
> > > > 
> > > > Userspace processes that begin a sys_*sync gain the process flag
> > > > PF_SYNCTHREAD for the duration of their syscall.
> > > 
> > > swsusp1 should not need any special casing of sync, right? We can
> > > simply do sys_sync(), then freeze, or something like that. We could
> > > even remove sys_sync() completely; it is not needed for correctness.

Wrong. I guess you're only trying it on a machine that isn't actually
doing anything :). I've forgotten whether it was this freezer
implementation or the last, but we've been testing freezing processes
when the load average exceeds 100. If you have a thread that is syncing
and another that's submitting I/O continually (think dd, for example),
you want this.

> > It's still quite nice to have ... I put it in my pre-freeze callback in
> > fact for both STR and STD :) We really want it for STD but I think it
> > doesn't work properly after freeze.
> 
> I agree that sync() is nice to have, but I'm not going to slow down
> fork/exit for it. And besides, sys_sync() just before suspend works
> just fine.

Again, try it under load... and stop talking about fork and exit like
they're real hot paths. (Unless you regularly submit your machines to
fork bombs :)).

Regards,

Nigel


  parent reply	other threads:[~2005-06-02  1:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-01 12:33 Freezer Patches Nigel Cunningham
2005-06-01 13:02 ` Pavel Machek
2005-06-01 22:02   ` Benjamin Herrenschmidt
2005-06-01 22:13     ` Nigel Cunningham
2005-06-01 22:23       ` Benjamin Herrenschmidt
2005-06-01 22:08   ` Nigel Cunningham
2005-06-01 22:31     ` Pavel Machek
2005-06-01 22:45       ` Benjamin Herrenschmidt
2005-06-01 23:02         ` Pavel Machek
2005-06-02  0:35           ` Benjamin Herrenschmidt
2005-06-02  1:46             ` Nigel Cunningham
2005-06-02  1:49               ` Benjamin Herrenschmidt
2005-06-02  1:45           ` Nigel Cunningham [this message]
2005-06-02  1:48             ` Benjamin Herrenschmidt
2005-06-02  7:14             ` Pavel Machek
2005-06-02  7:26               ` Nigel Cunningham
2005-06-02  7:31                 ` Pavel Machek
2005-06-02  7:36                   ` Benjamin Herrenschmidt
2005-06-02  8:18                     ` Nigel Cunningham
2005-06-02 21:47                       ` Pavel Machek

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=1117676753.10888.105.camel@localhost \
    --to=ncunningham@cyclades.com \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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