Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262793AbUKXSnN (ORCPT ); Wed, 24 Nov 2004 13:43:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262784AbUKXSlC (ORCPT ); Wed, 24 Nov 2004 13:41:02 -0500 Received: from 213-239-205-147.clients.your-server.de ([213.239.205.147]:44716 "EHLO debian.tglx.de") by vger.kernel.org with ESMTP id S262782AbUKXSjl (ORCPT ); Wed, 24 Nov 2004 13:39:41 -0500 Subject: Re: [PATCH] fix spurious OOM kills From: Thomas Gleixner Reply-To: tglx@linutronix.de To: Martin =?iso-8859-2?Q?MOKREJ=A9?= Cc: Andrew Morton , piggin@cyberone.com.au, chris@tebibyte.org, marcelo.tosatti@cyclades.com, andrea@novell.com, LKML , linux-mm@kvack.org, Rik van Riel In-Reply-To: <41A4AE3A.4050906@ribosome.natur.cuni.cz> References: <20041111112922.GA15948@logos.cnet> <20041114094417.GC29267@logos.cnet> <20041114170339.GB13733@dualathlon.random> <20041114202155.GB2764@logos.cnet> <419A2B3A.80702@tebibyte.org> <419B14F9.7080204@tebibyte.org> <20041117012346.5bfdf7bc.akpm@osdl.org> <419CD8C1.4030506@ribosome.natur.cuni.cz> <20041118131655.6782108e.akpm@osdl.org> <419D25B5.1060504@ribosome.natur.cuni.cz> <419D2987.8010305@cyberone.com.au> <419D383D.4000901@ribosome.natur.cuni.cz> <20041118160824.3bfc961c.akpm@osdl.org> <419E821F.7010601@ribosome.natur.cuni.cz> <1100946207.2635.202.camel@thomas> <419F2AB4.30401@ribosome.natur.cuni.cz> <1100957349.2635.213.camel@thomas> <419FB4CD.7090601@ribosome.natur.cuni.cz> <1101037999.23692.5.camel@thomas> <41A08765.7030402@ribosome.natur.cuni.cz> <1101045469.23692.16.camel@thomas> <1101120922.19380.17.camel@tglx.tec.linutronix.de> <41A2E98E.7090109@ribosome.natur.cuni.cz> <1101205649.3888.6.camel@tglx.tec.linutronix.de> <41A4AE3A.4050906@ribosome.natur.cuni.cz> Content-Type: text/plain; charset=utf-8 Date: Wed, 24 Nov 2004 17:36:52 +0100 Message-Id: <1101314212.9481.13.camel@tglx.tec.linutronix.de> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1720 Lines: 46 On Wed, 2004-11-24 at 16:52 +0100, Martin MOKREJŠ wrote: > > No, it's not related to hyperthreading. It's on the way out. > > > > I put an additional check into the page allocator. Does this help ? > > The application got killed. But, consider yourself the stacktrace ... ;) > oom-killer: gfp_mask=0x1d2 > Free pages: 3932kB (112kB HighMem) > [] dump_stack+0x1e/0x22 > [] out_of_memory+0x97/0xcf > [] try_to_free_pages+0x163/0x184 > [] __alloc_pages+0x27e/0x400 > [] do_page_cache_readahead+0x15b/0x1b9 > [] filemap_nopage+0x2d4/0x375 > [] do_no_page+0xc4/0x38c > [] handle_mm_fault+0xde/0x189 > [] do_page_fault+0x456/0x6ad > [] error_code+0x2b/0x30 > Out of Memory: Killed process 6672 (RNAsubopt). > RNAsubopt: page allocation failure. order:0, mode:0x1d2 > [] dump_stack+0x1e/0x22 > [] __alloc_pages+0x22c/0x400 > [] do_page_cache_readahead+0x15b/0x1b9 > [] filemap_nopage+0x2d4/0x375 > [] do_no_page+0xc4/0x38c > [] handle_mm_fault+0xde/0x189 > [] do_page_fault+0x456/0x6ad > [] error_code+0x2b/0x30 Yep, that's expected. The first stacktrace is from my patch. I added this to see from where the allocation is called. The second trace is from the page fault handler, as the allocation request now returns failed to prevent the second call into oom. tglx - 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/