Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753405Ab0BPGUl (ORCPT ); Tue, 16 Feb 2010 01:20:41 -0500 Received: from cantor2.suse.de ([195.135.220.15]:45782 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752221Ab0BPGUk (ORCPT ); Tue, 16 Feb 2010 01:20:40 -0500 Date: Tue, 16 Feb 2010 17:20:35 +1100 From: Nick Piggin To: David Rientjes Cc: Andrew Morton , Rik van Riel , KAMEZAWA Hiroyuki , Andrea Arcangeli , Balbir Singh , Lubos Lunak , KOSAKI Motohiro , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch -mm 4/9 v2] oom: remove compulsory panic_on_oom mode Message-ID: <20100216062035.GA5723@laptop> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 23 On Mon, Feb 15, 2010 at 02:20:09PM -0800, David Rientjes wrote: > If /proc/sys/vm/panic_on_oom is set to 2, the kernel will panic > regardless of whether the memory allocation is constrained by either a > mempolicy or cpuset. > > Since mempolicy-constrained out of memory conditions now iterate through > the tasklist and select a task to kill, it is possible to panic the > machine if all tasks sharing the same mempolicy nodes (including those > with default policy, they may allocate anywhere) or cpuset mems have > /proc/pid/oom_adj values of OOM_DISABLE. This is functionally equivalent > to the compulsory panic_on_oom setting of 2, so the mode is removed. > > Signed-off-by: David Rientjes What is the point of removing it, though? If it doesn't significantly help some future patch, just leave it in. It's not worth breaking the user/kernel interface just to remove 3 trivial lines of code. -- 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/