Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932752Ab0BPIO2 (ORCPT ); Tue, 16 Feb 2010 03:14:28 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:44968 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932671Ab0BPIO1 (ORCPT ); Tue, 16 Feb 2010 03:14:27 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Tue, 16 Feb 2010 17:10:51 +0900 From: KAMEZAWA Hiroyuki To: Nick Piggin Cc: David Rientjes , Andrew Morton , Rik van Riel , 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: <20100216171051.aebbffe5.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20100216080817.GK5723@laptop> References: <20100216062035.GA5723@laptop> <20100216072047.GH5723@laptop> <20100216080817.GK5723@laptop> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1661 Lines: 40 On Tue, 16 Feb 2010 19:08:17 +1100 Nick Piggin wrote: > On Mon, Feb 15, 2010 at 11:53:33PM -0800, David Rientjes wrote: > > On Tue, 16 Feb 2010, Nick Piggin wrote: > > > > > > Because it is inconsistent at the user's expense, it has never panicked > > > > the machine for memory controller ooms, so why is a cpuset or mempolicy > > > > constrained oom conditions any different? > > > > > > Well memory controller was added later, wasn't it? So if you think > > > that's a bug then a fix to panic on memory controller ooms might > > > be in order. > > > > > > > But what about the existing memcg users who set panic_on_oom == 2 and > > don't expect the memory controller to be influenced by that? > > But that was a bug in the addition of the memory controller. Either the > documentation should be fixed, or the implementation should be fixed. > I'll add a documentation to memcg. As "When you exhaust memory resource under memcg, oom-killer may be invoked. But in this case, the system never panics even when panic_on_oom is set." Maybe I should add "memcg_oom_notify (netlink message or file-decriptor or some". Because memcg's oom is virtual oom, automatic management software can show report to users and can do fail-over. I'll consider something useful for memcg oom-fail-over instead of panic. In the simplest case, cgroup's notiifer file descriptor can be used. Thanks, -Kame -- 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/