Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752870Ab0A2QZt (ORCPT ); Fri, 29 Jan 2010 11:25:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752695Ab0A2QZr (ORCPT ); Fri, 29 Jan 2010 11:25:47 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:53449 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752308Ab0A2QZq (ORCPT ); Fri, 29 Jan 2010 11:25:46 -0500 Message-ID: In-Reply-To: <20100129162137.79b2a6d4@lxorguk.ukuu.org.uk> References: <20100129162137.79b2a6d4@lxorguk.ukuu.org.uk> Date: Sat, 30 Jan 2010 01:25:43 +0900 (JST) Subject: Re: [PATCH v3] oom-kill: add lowmem usage aware oom kill handling From: "KAMEZAWA Hiroyuki" To: "Alan Cox" Cc: "KAMEZAWA Hiroyuki" , 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" User-Agent: SquirrelMail/1.4.16 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-2022-jp Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 25 Alan Cox wrote: >> panic_on_oom=1 works enough well.For Vedran's, overcommit memory will >> work >> well. But oom-killer kills very bad process if not tweaked. >> So, I think some improvement should be done. > > That is why we have the per process oom_adj values - because for nearly > fifteen years someone comes along and says "actually in my environment > the right choice is ..." > > 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. 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/