Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752627AbZLQXhU (ORCPT ); Thu, 17 Dec 2009 18:37:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751264AbZLQXhS (ORCPT ); Thu, 17 Dec 2009 18:37:18 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:37191 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbZLQXhQ (ORCPT ); Thu, 17 Dec 2009 18:37:16 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Fri, 18 Dec 2009 08:33:48 +0900 From: KAMEZAWA Hiroyuki To: David Rientjes Cc: Andrew Morton , Daisuke Nishimura , KOSAKI Motohiro , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter Subject: Re: [BUGFIX][PATCH] oom-kill: fix NUMA consraint check with nodemask v4.2 Message-Id: <20091218083348.c75dbb81.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: References: <20091110162121.361B.A69D9226@jp.fujitsu.com> <20091111142811.eb16f062.kamezawa.hiroyu@jp.fujitsu.com> <20091111152004.3d585cee.kamezawa.hiroyu@jp.fujitsu.com> <20091111153414.3c263842.kamezawa.hiroyu@jp.fujitsu.com> <20091118095824.076c211f.kamezawa.hiroyu@jp.fujitsu.com> <20091214171632.0b34d833.akpm@linux-foundation.org> <20091215103202.eacfd64e.kamezawa.hiroyu@jp.fujitsu.com> <20091215134327.6c46b586.kamezawa.hiroyu@jp.fujitsu.com> <20091215140913.e28f7674.kamezawa.hiroyu@jp.fujitsu.com> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 2.5.0 (GTK+ 2.10.14; i686-pc-mingw32) 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: 946 Lines: 26 On Thu, 17 Dec 2009 14:23:39 -0800 (PST) David Rientjes wrote: > On Tue, 15 Dec 2009, KAMEZAWA Hiroyuki wrote: > > > What I can't undestand is the technique to know whether a (unknown) process is > > leaking memory or not by checking vm_size. > > Memory leaks are better identified via total_vm since leaked memory has a > lower probability of staying resident in physical memory. > Because malloc() writes header on newly allcoated memory, (vm_size - rss) cannot be far from a some important program which wakes up once in a day or sleep in the day works in the night. I hope user knows expected memory size of applications, but I know it can't. Sigh... 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/