linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Peter Bergmann <bergmann.peter@gmx.net>
Cc: Jens Axboe <axboe@suse.de>, maze@cela.pl, linux-kernel@vger.kernel.org
Subject: Re: oom killer in 2.4.23
Date: Fri, 5 Dec 2003 00:58:24 +0100	[thread overview]
Message-ID: <20031204235824.GC22517@dualathlon.random> (raw)
In-Reply-To: <956.1070570308@www27.gmx.net>

On Thu, Dec 04, 2003 at 09:38:28PM +0100, Peter Bergmann wrote:
> > > effect is still unchanged. 
> > > processes get killed by VM and not oom_kikll.c
> > > 
> > > any hints ??
> > 
> > You probably want to look at the change to
> > vmscan.c:try_to_free_pages_zone().
> > 
> > -- 
> > Jens Axboe
> 
> I did, but my vm knolege is rather limited.
> I don't really know really know _where_ to place 
> out_of_memory() in the new try_to_free_pages_zone()...
> and what  other changes would be necessary in vmscan.c.
> 
> My try & error approach did not succeed.
> 
> I would be really glad if someone (aa may be :) could
> provide the information where/how to place the call for a custom
> (or the old) oom killer -  if it's really that simple ...

it's that simple to reenable it in 2.4.22 status, so if you're ok to
deadlock. 2.4.23 can't deadlock, it can live lock if you're unlucky with
timings yes (think if you add 32G of swap and your ram runs at 1k/sec
instead of 1G/sec), but not deadlock and it won't random kill tasks even
if it shouldn't to.  deadlock is a bug, killing task despite there's ram
free is a bug, livelock is something you can avoid by dropping all swap.
if you drop all swap with 2.4.22 it'll go nuts killing tasks (see the
bugreports).

Since doing it right wasn't possible in 2.4, I dropped it years ago, -aa
users are w/o an oom killer for years and I never heard a single
complain. somebody asked why yes, but they were happy afterwards. I
don't think I asked Marcelo to merge it, I explained why I dropped it,
people sent him bugreports about the oom killer going nuts, and he
agreed my solution was the best short term w/o adding lots of effort to
make the oom killer right. Note the oom killer goes nuts in 2.6 too,
nobody did it right yet, that's why I don't think it's a 2.4 issue.

Marcelo asked me to to make it configurable at runtime so you could go
in the deadlock prone stautus of 2.4.22 on demand, but I'm not going to
add more features to 2.4 today unless they're blocker bugs (even if that
would be simple to implement), actually it's not even my choice so don't
ask me for that sorry.

  parent reply	other threads:[~2003-12-04 23:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-04 16:12 oom killer in 2.4.23 Peter Bergmann
2003-12-04 17:02 ` Maciej Zenczykowski
2003-12-04 17:20   ` Guillermo Menguez Alvarez
2003-12-04 23:52     ` Andrea Arcangeli
2003-12-04 18:33   ` Peter Bergmann
2003-12-04 18:42     ` Jens Axboe
2003-12-04 20:38       ` Peter Bergmann
2003-12-04 20:28         ` Szakacsits Szabolcs
2003-12-04 23:58         ` Andrea Arcangeli [this message]
     [not found] <Z6Iv-7O2-29@gated-at.bofh.it>
     [not found] ` <Z8Ag-3BK-3@gated-at.bofh.it>
     [not found]   ` <Zbyn-23P-29@gated-at.bofh.it>
2003-12-05 13:05     ` Kristian Peters
2003-12-05 13:56       ` Robert L. Harris
2003-12-05 19:58       ` Andrea Arcangeli
2003-12-06  9:31         ` Kristian Peters
2003-12-09 14:21           ` Andrea Arcangeli
2003-12-09 14:52             ` Richard B. Johnson
2003-12-09 17:06               ` Andrea Arcangeli
2003-12-09 18:50                 ` Kristian Peters
2003-12-05 22:38       ` Mike Fedyk
2003-12-05 22:56         ` Andrea Arcangeli

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=20031204235824.GC22517@dualathlon.random \
    --to=andrea@suse.de \
    --cc=axboe@suse.de \
    --cc=bergmann.peter@gmx.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maze@cela.pl \
    /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;
as well as URLs for NNTP newsgroup(s).