linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Mel Gorman <mel@csn.ul.ie>,
	linux-mm@kvack.org, Nick Piggin <npiggin@suse.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>,
	Andreas Krebbel <krebbel@linux.vnet.ibm.com>
Subject: Re: oom-killer killing even if memory is available?
Date: Tue, 17 Mar 2009 11:11:06 +0100	[thread overview]
Message-ID: <20090317111106.1fb3f919@osiris.boeblingen.de.ibm.com> (raw)
In-Reply-To: <200903172051.13907.nickpiggin@yahoo.com.au>

On Tue, 17 Mar 2009 20:51:13 +1100
Nick Piggin <nickpiggin@yahoo.com.au> wrote:
> On Tuesday 17 March 2009 20:00:49 Heiko Carstens wrote:
> > the below looks like there is some bug in the memory management code.
> > Even if there seems to be plenty of memory available the oom-killer
> > kills processes.
> >
> > The below happened after 27 days uptime, memory seems to be heavily
> > fragmented,
> 
> What slab allocator are you using?

That was SLAB.

> > but there are stills larger portions of memory free that
> > could satisfy an order 2 allocation. Any idea why this fails?
> 
> We still keep some watermarks around for higher order pages (for
> GFP_ATOMIC and page reclaim etc purposes).
> 
> Possibly it is being a bit aggressive with the higher orders; when I
> added it I just made a guess at a sane function. See
> mm/page_alloc.c:zone_watermark_ok(). In particular, the for loop at the
> end of the function is the slowpath where it is calculating higher
> order watermarks. The min >>= 1 statement, 1 could be replaced with 2.
> Or we could just keep reserves for 0..PAGE_ALLOC_COSTLY_ORDER and then
> give away _any_ free pages for higher orders than that.
> 
> Still would seem to just prolong the inevitable? Exploding after 27 days
> of uptime is rather sad :(

Yes, it seems to look more like a memory leak. Hmm..

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2009-03-17 10:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-17  9:00 Heiko Carstens
2009-03-17  9:46 ` Andrew Morton
2009-03-17 10:17   ` Heiko Carstens
2009-03-17 10:28     ` Heiko Carstens
2009-03-17 10:49       ` Nick Piggin
2009-03-17 11:39         ` Heiko Carstens
2009-03-20  5:08         ` Wu Fengguang
2009-03-20 15:27   ` Mel Gorman
2009-03-20 21:02     ` Andrew Morton
2009-03-23 11:55       ` Mel Gorman
2009-03-23 14:58       ` Mel Gorman
2009-03-17  9:51 ` Nick Piggin
2009-03-17 10:11   ` Heiko Carstens [this message]

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=20090317111106.1fb3f919@osiris.boeblingen.de.ibm.com \
    --to=heiko.carstens@de.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=krebbel@linux.vnet.ibm.com \
    --cc=linux-mm@kvack.org \
    --cc=mel@csn.ul.ie \
    --cc=nickpiggin@yahoo.com.au \
    --cc=npiggin@suse.de \
    --cc=schwidefsky@de.ibm.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