Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753942Ab0AaU3j (ORCPT ); Sun, 31 Jan 2010 15:29:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753343Ab0AaU3i (ORCPT ); Sun, 31 Jan 2010 15:29:38 -0500 Received: from mail-fx0-f220.google.com ([209.85.220.220]:54605 "EHLO mail-fx0-f220.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752023Ab0AaU3h (ORCPT ); Sun, 31 Jan 2010 15:29:37 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:organization:user-agent:mime-version :to:cc:subject:references:in-reply-to:x-enigmail-version :content-type; b=L8s0nALevtBOug/DDY/mwLw1Ye0pDOPyRljcmp9uXfrvT+a9G16pJSLtfFq+wvrrxh DOmcrpQe80VWPorlb+K+6Tyrwye7OMUqnzXFdrQAu/sTzaT+mD2INByWKHniVj5adEKR Z2dLVzl36NtVWY97b2UHGI9Q3gt+moFlT9zls= Message-ID: <4B65E82D.5010408@gmail.com> Date: Sun, 31 Jan 2010 21:29:33 +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/20091109 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: David Rientjes CC: KAMEZAWA Hiroyuki , Alan Cox , Andrew Morton , minchan.kim@gmail.com, Balbir Singh , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3] oom-kill: add lowmem usage aware oom kill handling References: <20100129162137.79b2a6d4@lxorguk.ukuu.org.uk> <20100129163030.1109ce78@lxorguk.ukuu.org.uk> <5a0e6098f900aa36993b2b7f2320f927.squirrel@webmail-b.css.fujitsu.com> <4B642A40.1020709@gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: multipart/mixed; boundary="------------040708000906000408070205" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2658 Lines: 63 This is a multi-part message in MIME format. --------------040708000906000408070205 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit David Rientjes wrote: > On Sat, 30 Jan 2010, Vedran Furac wrote: > >>> The oom killer has been doing this for years and I haven't noticed a huge >>> surge in complaints about it killing X specifically because of that code >>> in oom_kill_process(). >> Well you said it yourself, you won't see a surge because "oom killer has >> been doing this *for years*". So you'll have a more/less constant number >> of complains over the years. Just google for: linux, random, kill, memory; > > You snipped the code segment where I demonstrated that the selected task > for oom kill is not necessarily the one chosen to die: if there is a child > with disjoint memory that is killable, it will be selected instead. If > Xorg or sshd is being chosen for kill, then you should investigate why > that is, but there is nothing random about how the oom killer chooses > tasks to kill. I know that it isn't random, but it sure looks like that to the end user and I use it to emphasize the problem. And about me investigating, that simply not possible as I am not a kernel hacker who understands the code beyond the syntax level. I can only point to the problem in hope that someone will fix it. > The facts that you're completely ignoring are that changing the heuristic > baseline to rss is not going to prevent Xorg or sshd from being selected In my tests a simple "ps -eo rss,command --sort rss" always showed the cuprit, but OK, find another approach in fixing the problem in hope for a positive review. Just... I feel everything will be put under the carpet with fingers in ears while singing everything is fine. Prove me wrong. Regards, Vedran -- http://vedranf.net | a8e7a7783ca0d460fee090cc584adc12 --------------040708000906000408070205 Content-Type: text/x-vcard; charset=utf-8; name="vedran_furac.vcf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="vedran_furac.vcf" YmVnaW46dmNhcmQNCmZuO3F1b3RlZC1wcmludGFibGU6VmVkcmFuIEZ1cmE9QzQ9OEQNCm47 cXVvdGVkLXByaW50YWJsZTpGdXJhPUM0PThEO1ZlZHJhbg0KYWRyOjs7Ozs7O0Nyb2F0aWEN CmVtYWlsO2ludGVybmV0OnZlZHJhbi5mdXJhY0BnbWFpbC5jb20NCngtbW96aWxsYS1odG1s OkZBTFNFDQp1cmw6aHR0cDovL3ZlZHJhbmYubmV0DQp2ZXJzaW9uOjIuMQ0KZW5kOnZjYXJk DQoNCg== --------------040708000906000408070205-- -- 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/