Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755851Ab0BKENc (ORCPT ); Wed, 10 Feb 2010 23:13:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:13484 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753328Ab0BKENb (ORCPT ); Wed, 10 Feb 2010 23:13:31 -0500 Message-ID: <4B7383D5.2080904@redhat.com> Date: Wed, 10 Feb 2010 23:13:09 -0500 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0 MIME-Version: 1.0 To: David Rientjes CC: Andrew Morton , KAMEZAWA Hiroyuki , Nick Piggin , Andrea Arcangeli , Balbir Singh , Lubos Lunak , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch 6/7 -mm] oom: avoid oom killer for lowmem allocations References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 906 Lines: 27 On 02/10/2010 11:32 AM, David Rientjes wrote: > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -1914,6 +1914,9 @@ rebalance: > * running out of options and have to consider going OOM > */ > if (!did_some_progress) { > + /* The oom killer won't necessarily free lowmem */ > + if (high_zoneidx< ZONE_NORMAL) > + goto nopage; > if ((gfp_mask& __GFP_FS)&& !(gfp_mask& __GFP_NORETRY)) { > if (oom_killer_disabled) > goto nopage; Are there architectures that only have one memory zone? s390 or one of the other virtualized-only architectures perhaps? -- All rights reversed. -- 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/