Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757785AbZKERyg (ORCPT ); Thu, 5 Nov 2009 12:54:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757625AbZKERyf (ORCPT ); Thu, 5 Nov 2009 12:54:35 -0500 Received: from smtp4.ultrahosting.com ([74.213.175.253]:47184 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757529AbZKERyf (ORCPT ); Thu, 5 Nov 2009 12:54:35 -0500 Date: Thu, 5 Nov 2009 10:04:01 -0500 (EST) From: Christoph Lameter X-X-Sender: cl@V090114053VZO-1 To: KOSAKI Motohiro cc: KAMEZAWA Hiroyuki , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "hugh.dickins@tiscali.co.uk" , akpm@linux-foundation.org Subject: Re: [PATCH] show per-process swap usage via procfs In-Reply-To: <20091105082357.54D3.A69D9226@jp.fujitsu.com> Message-ID: References: <20091104152426.eacc894f.kamezawa.hiroyu@jp.fujitsu.com> <20091105082357.54D3.A69D9226@jp.fujitsu.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 830 Lines: 22 On Thu, 5 Nov 2009, KOSAKI Motohiro 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? > > per-cpu swap counter? > It seems overkill effort.... The other alternative is to use atomic ops which are significantly slower and have an impact on critical sections. -- 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/