From: Ernie Petrides <petrides@redhat.com>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: Peter Bergmann <bergmann.peter@gmx.net>,
nfedera@esesix.at, andrea@suse.de, riel@redhat.com,
linux-kernel@vger.kernel.org
Subject: Re: Configurable OOM killer Re: old oom-vm for 2.4.32 (was oom killer in 2.4.23)
Date: Mon, 15 Dec 2003 17:28:12 -0500 [thread overview]
Message-ID: <200312152228.hBFMSCJf010565@pasta.boston.redhat.com> (raw)
In-Reply-To: Your message of "Mon, 08 Dec 2003 15:15:48 -0200." <Pine.LNX.4.44.0312081512510.1289-100000@logos.cnet>
On Monday, 8-Dec-2003 at 15:15 -0200, Marcelo Tosatti wrote:
> The following patch makes OOM killer configurable (its the same as the
> other patches posted except its around CONFIG_OOM_KILLER).
>
> I hope the Configure.help entry is clear enough.
>
> Peter, can you please try this.
>
> Comments are appreciated.
[...]
> --- linux-2.4.24.orig/mm/page_alloc.c 2003-12-08 14:18:51.000000000 +0000
> +++ linux-2.4.24/mm/page_alloc.c 2003-12-08 15:49:35.000000000 +0000
> @@ -378,7 +378,8 @@
>
> /* here we're in the low on memory slow path */
>
> - if (current->flags & PF_MEMALLOC && !in_interrupt()) {
> + if (((current->flags & PF_MEMALLOC) && !in_interrupt()) ||
> + (current->flags & (PF_MEMALLOC | PF_MEMDIE))) {
> zone = zonelist->zones;
> for (;;) {
> zone_t *z = *(zone++);
[...]
Hi, Marcelo. I haven't studied this patch, but the change above looks
suspicious. The part added after the || makes the original condition
irrelevant (because the 2nd part is true if either the PF_MEMALLOC or
PF_MEMDIE flags are set).
Were you perhaps thinking of something like this?
if ((current->flags & PF_MEMALLOC) &&
((current->flags & PF_MEMDIE) || !in_interrupt())) {
Cheers. -ernie
next prev parent reply other threads:[~2003-12-15 22:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-05 15:03 Peter Bergmann
2003-12-05 19:02 ` Marcelo Tosatti
2003-12-05 23:08 ` Peter Bergmann
2003-12-08 17:15 ` Configurable OOM killer " Marcelo Tosatti
2003-12-08 22:00 ` Peter Bergmann
2003-12-15 22:28 ` Ernie Petrides [this message]
2003-12-16 0:48 ` Marcelo Tosatti
[not found] <Zxp0-1lf-9@gated-at.bofh.it>
[not found] ` <10xwC-2O0-7@gated-at.bofh.it>
2003-12-09 18:34 ` Kristian Peters
2003-12-16 13:08 ` Marcelo Tosatti
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=200312152228.hBFMSCJf010565@pasta.boston.redhat.com \
--to=petrides@redhat.com \
--cc=andrea@suse.de \
--cc=bergmann.peter@gmx.net \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
--cc=nfedera@esesix.at \
--cc=riel@redhat.com \
/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
all inboxes | Powered by JetHome®