public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Rogge <lu01@rogge.yi.org>
To: Andreas Dilger <adilger@turbolinux.com>,
	Martin Dalecki <dalecki@evision-ventures.com>
Cc: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>,
	Jonathan Morton <chromi@cyberspace.org>,
	Rogier Wolff <R.E.Wolff@bitwizard.nl>,
	linux-kernel@vger.kernel.org
Subject: Re: OOM killer???
Date: Tue, 27 Mar 2001 23:13:47 +0200	[thread overview]
Message-ID: <237970000.985727627@hades> (raw)
In-Reply-To: <200103271955.f2RJtoH05928@webber.adilger.int>

--On Tuesday, March 27, 2001 12:55:50 -0700 Andreas Dilger 
<adilger@turbolinux.com> wrote:

> Every time this subject comes up, I point to AIX and SIGDANGER - a signal
> sent to processes when the system gets OOM.  If the process has registered
> a SIGDANGER handler, it has a chance to free cache and such (or do a clean
> shutdown), otherwise the default signal handler will kill the process.

Having a SIGDANGER would be a fine thing, but this will need patching in all
current daemons and there has to be a possibility to configure the behaviour
of the process when recieving a SIGDANGER. i.e. it is a good idea to kill
apache on a workstation, but a very bad idea to kill apache on a webserver.
Generally I'd like to see such an implementation, but wouldn't it be better
to have a pre-seclction of the processes getting SIGDANGER?

For example: if OOM occours, send SIGDANGER to all non-root-processes with a
nice-level of n or higher (where n should be discussed).

This would make it easy to "configure" SIGDANGER-unaware Applications - in 
the meantime, until all applications are SIGDANGER-aware -  to deal with
OOM-situations. You just do an "nice -n -1 httpd" and one's httpd won't
get killed when OOM occours.

IMO this would dramatically improve the OOM-Problems right now.

--
Andreas Rogge <lu01@rogge.yi.org>
Available on IRCnet:#linux.de as Dyson

  reply	other threads:[~2001-03-27 21:14 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-27 10:59 OOM killer??? Rogier Wolff
2001-03-27 12:14 ` Jonathan Morton
2001-03-27 13:24   ` Martin Dalecki
2001-03-27 15:31     ` Jonathan Lundell
2001-03-27 16:07       ` Config bug? In 2.2.19 CONFIG_RTL8139 depends on CONFIG_EXPERIMENTAL Greg Ingram
2001-03-27 16:14         ` Jeff Garzik
2001-03-27 16:37           ` [PATCH] 2.2.19 drivers/net/Config.in Greg Ingram
2001-03-27 18:08     ` OOM killer??? Ingo Oeser
2001-03-27 19:07       ` Martin Dalecki
2001-03-27 19:55         ` Andreas Dilger
2001-03-27 21:13           ` Andreas Rogge [this message]
2001-03-27 18:37     ` Jonathan Morton
2001-03-27 13:57   ` Jonathan Morton
     [not found] <200103282138.f2SLcT824292@webber.adilger.int>
2001-03-29  9:29 ` Dr. Michael Weller
2001-03-29 11:01   ` Guest section DW
2001-03-29 12:02     ` Sean Hunter
2001-03-29 12:57       ` Guest section DW
2001-03-29 15:41     ` David Konerding
2001-03-29 17:52       ` David Lang
2001-03-30  2:26       ` Michael Peddemors
2001-03-30 14:48         ` J. Scott Kasten
2001-03-29 17:21     ` Stephen Satchell
2001-03-29 13:53   ` Szabolcs Szakacsits
2001-03-29 15:01     ` Dr. Michael Weller
2001-03-29 16:29       ` Szabolcs Szakacsits
2001-03-29 16:51       ` Szabolcs Szakacsits
  -- strict thread matches above, loose matches on Subject: below --
2001-03-29 16:22 Jesse Pollard
2001-03-29 19:20 Jesse Pollard

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=237970000.985727627@hades \
    --to=lu01@rogge.yi.org \
    --cc=R.E.Wolff@bitwizard.nl \
    --cc=adilger@turbolinux.com \
    --cc=chromi@cyberspace.org \
    --cc=dalecki@evision-ventures.com \
    --cc=ingo.oeser@informatik.tu-chemnitz.de \
    --cc=linux-kernel@vger.kernel.org \
    /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