From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id DE1346B007E for ; Mon, 15 Feb 2010 17:06:51 -0500 (EST) Received: from kpbe19.cbf.corp.google.com (kpbe19.cbf.corp.google.com [172.25.105.83]) by smtp-out.google.com with ESMTP id o1FM6sQK031100 for ; Mon, 15 Feb 2010 14:06:54 -0800 Received: from pwi5 (pwi5.prod.google.com [10.241.219.5]) by kpbe19.cbf.corp.google.com with ESMTP id o1FM6rTT031693 for ; Mon, 15 Feb 2010 14:06:53 -0800 Received: by pwi5 with SMTP id 5so522637pwi.34 for ; Mon, 15 Feb 2010 14:06:53 -0800 (PST) Date: Mon, 15 Feb 2010 14:06:50 -0800 (PST) From: David Rientjes Subject: Re: [patch 1/7 -mm] oom: filter tasks not sharing the same cpuset In-Reply-To: <20100215115154.727B.A69D9226@jp.fujitsu.com> Message-ID: References: <20100215115154.727B.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: KOSAKI Motohiro Cc: Andrew Morton , Rik van Riel , KAMEZAWA Hiroyuki , Nick Piggin , Andrea Arcangeli , Balbir Singh , Lubos Lunak , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On Mon, 15 Feb 2010, KOSAKI Motohiro wrote: > > Tasks that do not share the same set of allowed nodes with the task that > > triggered the oom should not be considered as candidates for oom kill. > > > > Tasks in other cpusets with a disjoint set of mems would be unfairly > > penalized otherwise because of oom conditions elsewhere; an extreme > > example could unfairly kill all other applications on the system if a > > single task in a user's cpuset sets itself to OOM_DISABLE and then uses > > more memory than allowed. > > > > Killing tasks outside of current's cpuset rarely would free memory for > > current anyway. > > > > Signed-off-by: David Rientjes > > This patch does right thing and looks promissing. but unfortunately > I have to NAK this patch temporary. > > This patch is nearly just revert of the commit 7887a3da75. We have to > dig archaeology mail log and find why this reverting don't cause > the old pain again. > Nick is probably wondering why I cc'd him on this patchset, and this is it :) We now determine whether an allocation is constrained by a cpuset by iterating through the zonelist and checking cpuset_zone_allowed_softwall(). This checks for the necessary cpuset restrictions that we need to validate (the GFP_ATOMIC exception is irrelevant, we don't call into the oom killer for those). We don't need to kill outside of its cpuset because we're not guaranteed to find any memory on those nodes, in fact it allows for needless oom killing if a task sets all of its threads to have OOM_DISABLE in its own cpuset and then runs out of memory. The oom killer would have killed every other user task on the system even though the offending application can't allocate there. That's certainly an undesired result and needs to be fixed in this manner. -- 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