From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 18 Sep 2007 14:25:01 -0700 (PDT) From: Christoph Lameter Subject: Re: [patch 6/4] oom: pass null to kfree if zonelist is not cleared In-Reply-To: Message-ID: References: <871b7a4fd566de081120.1187786931@v2.random> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: David Rientjes Cc: Andrew Morton , Andrea Arcangeli , linux-mm@kvack.org List-ID: On Tue, 18 Sep 2007, David Rientjes wrote: > If the kzalloc fails, we're in a system-wide OOM state that isn't > constrained by anything so we allow the OOM killer to be invoked just > like this patchset was never applied. We make no inference that it has > already been invoked, there is nothing to suggest that it has. All we > know is that none of the zones in the zonelist from __alloc_pages() are > currently in the OOM killer. kzalloc can be restricted by the cpuset / mempolicy context and the GFP_THISNODE flags. It may fail for other reasons. Maybe passing some flags like (PF_MEMALLOC) to kzalloc will make it ignore those limits? -- 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: email@kvack.org