From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with ESMTP id D8C7E6B01D7 for ; Tue, 8 Jun 2010 19:54:37 -0400 (EDT) Received: from hpaq13.eem.corp.google.com (hpaq13.eem.corp.google.com [172.25.149.13]) by smtp-out.google.com with ESMTP id o58NsYAK008308 for ; Tue, 8 Jun 2010 16:54:34 -0700 Received: from pwi5 (pwi5.prod.google.com [10.241.219.5]) by hpaq13.eem.corp.google.com with ESMTP id o58NsXnP031221 for ; Tue, 8 Jun 2010 16:54:33 -0700 Received: by pwi5 with SMTP id 5so400425pwi.12 for ; Tue, 08 Jun 2010 16:54:32 -0700 (PDT) Date: Tue, 8 Jun 2010 16:54:31 -0700 (PDT) From: David Rientjes Subject: Re: [patch -mm 01/18] oom: filter tasks not sharing the same cpuset In-Reply-To: <20100608162513.c633439e.akpm@linux-foundation.org> Message-ID: References: <20100607084024.873B.A69D9226@jp.fujitsu.com> <20100608162513.c633439e.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Andrew Morton Cc: KOSAKI Motohiro , Rik van Riel , Nick Piggin , Oleg Nesterov , KAMEZAWA Hiroyuki , Balbir Singh , linux-mm@kvack.org List-ID: On Tue, 8 Jun 2010, Andrew Morton wrote: > And I wonder if David has observed some problem which the 2010 change > fixes! > Yes, as explained in my changelog. I'll paste it: 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. To use a sane heuristic, we must ensure that killing a task would likely free memory for current and avoid needlessly killing others at all costs just because their potential memory freeing is unknown. It is better to kill current than another task needlessly. -- 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