Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751108AbZKEAJh (ORCPT ); Wed, 4 Nov 2009 19:09:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750972AbZKEAJg (ORCPT ); Wed, 4 Nov 2009 19:09:36 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:53015 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750879AbZKEAJf (ORCPT ); Wed, 4 Nov 2009 19:09:35 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Thu, 5 Nov 2009 09:06:59 +0900 From: KAMEZAWA Hiroyuki To: Christoph Lameter Cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "hugh.dickins@tiscali.co.uk" , akpm@linux-foundation.org, "kosaki.motohiro@jp.fujitsu.com" Subject: Re: [PATCH] show per-process swap usage via procfs Message-Id: <20091105090659.9a5d17b1.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: References: <20091104152426.eacc894f.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: 940 Lines: 26 On Wed, 4 Nov 2009 14:15:40 -0500 (EST) Christoph Lameter wrote: > On Wed, 4 Nov 2009, KAMEZAWA Hiroyuki wrote: > > > Now, anon_rss and file_rss is counted as RSS and exported via /proc. > > RSS usage is important information but one more information which > > is often asked by users is "usage of swap".(user support team said.) > > Hmmm... Could we do some rework of the counters first so that they are per > cpu? > I don't think swap_usage counter has much costs because it's call path is always slow path. But, I'm not in hurry. So rework is ok. I'll post my percpu array counter with some rework, CCing you. Maybe it can be used in this case. 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/