public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Chris Friesen" <cfriesen@nortel.com>
To: Samuel Tardieu <sam@rfc1149.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: OOM notifications
Date: Fri, 19 Oct 2007 10:58:55 -0600	[thread overview]
Message-ID: <4718E24F.3060805@nortel.com> (raw)
In-Reply-To: <87lk9zgmkx.fsf@willow.rfc1149.net>

Samuel Tardieu wrote:
>>>>>>"Pavel" == Pavel Machek <pavel@ucw.cz> writes:

> Pavel> That works okay on a PC, but try cellphone one day.
> 
> Pavel> You want management app to close the least used
> Pavel> application. You do not want _kernel_ to select "who to send
> Pavel> SIGTERM to".
> 
> That's why I would prefer that *all* processes receive the
> SIGDANGER/whatever (and of course ignore it by default). Only the
> management app would handle it in the case you describe and would
> select one or more applications to unload to free some memory.

It's still helpful to have two stages...one that all apps can listen to 
(and try to reduce their footprint if possible), and a second one that 
only the manager would handle (and would kill some suitable target). 
Finally, if all that fails then the kernel starts whacking things.

Chris

  reply	other threads:[~2007-10-19 16:59 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-18 20:25 OOM notifications Marcelo Tosatti
2007-10-18 20:38 ` Rene Herman
2007-10-18 20:52   ` Rik van Riel
2007-10-18 21:06     ` Rene Herman
2007-10-18 21:18       ` Rik van Riel
2007-10-18 22:01         ` Rene Herman
2007-10-18 22:10           ` Ulrich Drepper
2007-10-19  5:15             ` Chris Friesen
2007-10-19 10:17             ` Pavel Machek
2007-10-19 15:18               ` Samuel Tardieu
2007-10-19 16:58                 ` Chris Friesen [this message]
2007-10-18 22:16           ` Rene Herman
  -- strict thread matches above, loose matches on Subject: below --
2007-10-18 20:15 Marcelo Tosatti
2007-10-26 21:02 ` Andrew Morton
2007-10-26 21:05   ` Martin Bligh
2007-10-26 21:11     ` Andrew Morton
2007-10-26 21:35       ` Rik van Riel
2007-10-26 21:59         ` Martin Bligh
2007-10-26 22:30           ` Rik van Riel
2007-10-28 21:16   ` Balbir Singh
2007-10-30 14:57 ` Jan Kara
2007-10-30 15:23   ` Rik van Riel
2007-10-30 15:55     ` Jan Kara
2007-10-30 17:31       ` Rik van Riel

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=4718E24F.3060805@nortel.com \
    --to=cfriesen@nortel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@rfc1149.net \
    /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