From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 17 Apr 2007 14:27:14 -0700 (PDT) From: Christoph Lameter Subject: Re: sysctl_panic_on_oom broken In-Reply-To: <46250EB1.9010707@redhat.com> Message-ID: References: <46250EB1.9010707@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Larry Woodman Cc: linux-mm@kvack.org List-ID: On Tue, 17 Apr 2007, Larry Woodman wrote: > out_of_memory() does not panic when sysctl_panic_on_oom is set > if constrained_alloc() does not return CONSTRAINT_NONE. Instead, > out_of_memory() kills the current process whenever constrained_alloc() > returns either CONSTRAINT_MEMORY_POLICY or CONSTRAINT_CPUSET. > This patch fixes this problem: The patch recreates the problem that the system may OOM although lots of memory is still free. Constrained allocation means that the allocation was only to a portion of system memory. The rest may be free. No reason to oom. -- 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