Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752799Ab0A2QaS (ORCPT ); Fri, 29 Jan 2010 11:30:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751239Ab0A2QaQ (ORCPT ); Fri, 29 Jan 2010 11:30:16 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:48638 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751247Ab0A2QaP (ORCPT ); Fri, 29 Jan 2010 11:30:15 -0500 Date: Fri, 29 Jan 2010 16:30:30 +0000 From: Alan Cox To: "KAMEZAWA Hiroyuki" Cc: vedran.furac@gmail.com, "Andrew Morton" , "linux-mm@kvack.org" , rientjes@google.com, minchan.kim@gmail.com, "linux-kernel@vger.kernel.org" , "balbir@linux.vnet.ibm.com" Subject: Re: [PATCH v3] oom-kill: add lowmem usage aware oom kill handling Message-ID: <20100129163030.1109ce78@lxorguk.ukuu.org.uk> In-Reply-To: References: <20100129162137.79b2a6d4@lxorguk.ukuu.org.uk> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.5; x86_64-redhat-linux-gnu) 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: 964 Lines: 21 > > Ultimately it is policy. The kernel simply can't read minds. > > > If so, all heuristics other than vm_size should be purged, I think. > ...Or victim should be just determined by the class of application > user sets. oom_adj other than OOM_DISABLE, searching victim process > by black magic are all garbage. oom_adj by value makes sense as do some of the basic heuristics - but a lot of the complexity I would agree is completely nonsensical. There are folks who use oom_adj weightings to influence things (notably embedded and desktop). The embedded world would actually benefit on the whole if the oom_adj was an absolute value because they usually know precisely what they want to die and in what order. Alan -- 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/