LWN.net Logo

Re: [PATCH] fix spurious OOM kills

From:  Marcelo Tosatti <marcelo.tosatti-AT-cyclades.com>
To:  Andrew Morton <akpm-AT-osdl.org>
Subject:  Re: [PATCH] fix spurious OOM kills
Date:  Wed, 17 Nov 2004 04:38:32 -0200
Cc:  Chris Ross <chris-AT-tebibyte.org>, andrea-AT-novell.com, linux-kernel-AT-vger.kernel.org, linux-mm-AT-kvack.org, piggin-AT-cyberone.com.au, riel-AT-redhat.com, mmokrejs-AT-ribosome.natur.cuni.cz, tglx-AT-linutronix.de

On Wed, Nov 17, 2004 at 04:08:52AM -0200, Marcelo Tosatti wrote:
> On Wed, Nov 17, 2004 at 04:06:48AM -0200, Marcelo Tosatti wrote:
> > On Wed, Nov 17, 2004 at 01:23:46AM -0800, Andrew Morton wrote:
> > > Chris Ross <chris@tebibyte.org> wrote:
> > > >
> > > > As I suspected, like a recalcitrant teenager it was sneakily waiting 
> > > >  until everyone was out then it threw a wild party with several ooms and
> > > >  an oops. See below...
> > > 
> > > That's not an oops - it's just a stack trace.
> > > 
> > > >  This, obviously is still without Kame's patch, just the same tree as 
> > > >  before with the one change you asked for.
> > > 
> > > Please ignore the previous patch and try the below.  It looks like Rik's
> > > analysis is correct: when the caller doesn't have the swap token it just
> > > cannot reclaim referenced pages and scans its way into an oom.
Defeating
> > > that logic when we've hit the highest scanning priority does seem to fix
> > > the problem and those nice qsbench numbers which the thrashing control
gave
> > > us appear to be unaffected.
> > 
> > Oh, this fixes my testcase, and was the reason for the hog slow speed.
> > 
> > Excellent, wasted several days in vain. :(
> 
> Before the swap token patches went in you remember spurious OOM reports  
> or things were working fine then?

Just went on through the archives and indeed the spurious OOM kills started
happening when the swap token code was added to the tree.

Next time I should be looking into the easy stuff before trying miraculous 
solutions. :(
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


(Log in to post comments)

Re: [PATCH] fix spurious OOM kills

Posted May 16, 2008 8:59 UTC (Fri) by amitsharma91 (guest, #45358) [Link]

Hi guys

I am getting OOM-Killer with JFFS2 file system when i am testing with 400MB partition. I am
running fsstress with 3 process and 1000000 operations, please tell me how much memory is
required by JFFS2 on 100MB partiton for running this fsstress , 
fsstress -p 3 -n 1000000 &


thanks in advance
Amit

Copyright © 2004, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds