From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755408AbZHCQRI (ORCPT ); Mon, 3 Aug 2009 12:17:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755366AbZHCQRH (ORCPT ); Mon, 3 Aug 2009 12:17:07 -0400 Received: from smtp-out.google.com ([216.239.45.13]:48970 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755345AbZHCQRG (ORCPT ); Mon, 3 Aug 2009 12:17:06 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=ax4U0H79Mh2d0eEUrDo3I+6dK+ktTzFJIzmzsTB44kflxc+ofaWT9modpu8RWmhdD 5bkO3XAfsOqE941gi8q3A== MIME-Version: 1.0 In-Reply-To: References: <20090730190216.5aae685a.kamezawa.hiroyu@jp.fujitsu.com> <20090731093305.50bcc58d.kamezawa.hiroyu@jp.fujitsu.com> <7f54310137837631f2526d4e335287fc.squirrel@webmail-b.css.fujitsu.com> <77df8765230d9f83859fde3119a2d60a.squirrel@webmail-b.css.fujitsu.com> Date: Mon, 3 Aug 2009 09:17:01 -0700 Message-ID: <6599ad830908030917v6c70ec01ke2ed15f0fb627f9@mail.gmail.com> Subject: Re: [patch -mm v2] mm: introduce oom_adj_child From: Paul Menage To: David Rientjes Cc: KAMEZAWA Hiroyuki , Andrew Morton , Rik van Riel , KOSAKI Motohiro , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 1, 2009 at 1:26 PM, David Rientjes wrote: > > It's more likely than not that applications were probably written to the > way the documentation described the two files: that is, adjust > /proc/pid/oom_score by tuning /proc/pid/oom_adj I'd actually be pretty surprised if anyone was really doing that - don't forget that the oom_score is something that varies dynamically depending on things like the VM size of the process, its running time, the VM sizes of its children, etc. So tuning oom_adj based on oom_score will be rapidly out of date. AFAIK, oom_score was added initially as a way to debug the OOM killer, and oom_adj was added later as an additional knob. My suspicion is that any automated users of oom_adj are working along the lines of http://www.google.com/codesearch/p?hl=en&sa=N&cd=4&ct=rc#X7-oBZ_RyNM/src/server/memory/base/oommanager.cpp&q=oom_score which just uses the values -16, 0 or 15, depending on whether the process is critical, important or expendable. Paul