All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Peter Bergmann <bergmann.peter@gmx.net>
Cc: Maciej Zenczykowski <maze@cela.pl>, linux-kernel@vger.kernel.org
Subject: Re: oom killer in 2.4.23
Date: Thu, 4 Dec 2003 19:42:48 +0100	[thread overview]
Message-ID: <20031204184248.GJ1086@suse.de> (raw)
In-Reply-To: <9405.1070562818@www45.gmx.net>

On Thu, Dec 04 2003, Peter Bergmann wrote:
> > 
> > Yes, and as a side question, couldn't oom killer be made into a config 
> > option?
> > 
> > Cheers,
> > MaZe.
> 
> I just tried it and - no it does not work.  
> At least not with the following changes:
> 
> added #define PF_MEMDIE  0x00001000 to sched.h
> 
> replaced oom_kill.c with the 2.4.22 version
> 
> added out_of_memory() to the end of try_to_free_pages_zone()
> 
> replaced if (current->flags & PF_MEMALLOC && !in_interrupt()) {
> with
> replaced if ((current->flags & (PF_MEMALLOC | PF_MEMDIE)) && !in_interrupt()
> ) {
> in page_alloc.c
> 
> 
> 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


  reply	other threads:[~2003-12-04 18:43 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 [this message]
2003-12-04 20:38       ` Peter Bergmann
2003-12-04 20:28         ` Szakacsits Szabolcs
2003-12-04 23:58         ` Andrea Arcangeli
     [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=20031204184248.GJ1086@suse.de \
    --to=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.