Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932295AbZKBT4o (ORCPT ); Mon, 2 Nov 2009 14:56:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932251AbZKBT4m (ORCPT ); Mon, 2 Nov 2009 14:56:42 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:39713 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932278AbZKBT4k (ORCPT ); Mon, 2 Nov 2009 14:56:40 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:reply-to:organization:user-agent :mime-version:to:cc:subject:references:in-reply-to:x-age:x-location :x-os:x-face:content-type:content-transfer-encoding; b=iVWFWyvYDBx1ONGDQ8GBkD2XHSEjVVYn4MSYRUglJOCkTIUsqVVSL8H37Uh/eqXmWq fS8oFE694g3VatcOSnsVXGixfrwidgyr8i4eE8ocTwJV6nnjKmo1k8AzN4YUljOSpxcD cSBQiB5VtnLj/mBWcVPzg3VV7ozt9bGuC6DZ0= Message-ID: <4AEF3979.9090306@gmail.com> Date: Mon, 02 Nov 2009 20:56:41 +0100 From: =?UTF-8?B?VmVkcmFuIEZ1cmHEjQ==?= Reply-To: vedran.furac@gmail.com Organization: Home User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090701 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: David Rientjes CC: Hugh Dickins , KAMEZAWA Hiroyuki , linux-mm@kvack.org, linux-kernel@vger.kernel.org, KOSAKI Motohiro , minchan.kim@gmail.com, Andrew Morton , Andrea Arcangeli Subject: Re: Memory overcommit References: <20091014135119.e1baa07f.kamezawa.hiroyu@jp.fujitsu.com> <4ADE3121.6090407@gmail.com> <20091026105509.f08eb6a3.kamezawa.hiroyu@jp.fujitsu.com> <4AE5CB4E.4090504@gmail.com> <20091027122213.f3d582b2.kamezawa.hiroyu@jp.fujitsu.com> <4AE78B8F.9050201@gmail.com> <4AE792B8.5020806@gmail.com> <4AE846E8.1070303@gmail.com> <4AE9068B.7030504@gmail.com> <4AE97618.6060607@gmail.com> <4AEAEFDD.5060009@gmail.com> In-Reply-To: X-Age: 25 X-Location: Lovran, Croatia X-OS: Debian GNU/Linux X-Face: +Lg7^E:?#]P.Y{N@61yW{aY#>fRcOE6MMqgAM|Kwk"fK!y!i4+h6&?E`Jt@uame[-SLu#*?k:)dZv X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2388 Lines: 48 David Rientjes wrote: > On Fri, 30 Oct 2009, Vedran Furac wrote: > >> Well, you are kernel hacker, not me. You know how linux mm works much >> more than I do. I just reported a, what I think is a big problem, which >> needs to be solved ASAP (2.6.33). > > The oom killer heuristics have not been changed recently, why is this > suddenly a problem that needs to be immediately addressed? The heuristics > you've been referring to have been used for at least three years. It isn't "suddenly a problem", but only a problem, big long time problem. If it is three years old, then it should have been addressed asap three years ago (and we would not need to talk about it now, hopefully). > However, I don't think we can simply change the baseline (like the rss > change which has been added to -mm (??)) and consider it a major > improvement when it severely impacts how system administrators are able to > tune the badness heuristic from userspace via /proc/pid/oom_adj. I'm sure > you'd agree that user input is important in this matter and so that we > should maximize that ability rather than make it more difficult. That's > my main criticism of the suggestions thus far (and, sorry, but I have to > look out for production server interests here: you can't take away our > ability to influence oom badness scoring just because other simple > heuristics may be more understandable). > > What would be better, and what I think we'll end up with, is a root > selectable heuristic so that production servers and desktop machines can > use different heuristics to make oom kill selections. We already have > /proc/sys/vm/oom_kill_allocating_task which I added 1-2 years ago to > address concerns specifically of SGI and their enormously long tasklist > scans. This would be variation on that idea and would include different > simplistic behaviors (such as always killing the most memory hogging task, > killing the most recently started task by the same uid, etc), and leave > the default heuristic much the same as currently. OK, agreed. Did you take a look at the set of patches Kame sent today? Regards, Vedran -- 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/