Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754730AbZKHRE4 (ORCPT ); Sun, 8 Nov 2009 12:04:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754667AbZKHREz (ORCPT ); Sun, 8 Nov 2009 12:04:55 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53012 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754652AbZKHREz (ORCPT ); Sun, 8 Nov 2009 12:04:55 -0500 Date: Sun, 8 Nov 2009 18:04:53 +0100 From: Pavel Machek To: Christoph Lameter Cc: KOSAKI Motohiro , 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 Message-ID: <20091108170453.GA1372@ucw.cz> References: <20091104152426.eacc894f.kamezawa.hiroyu@jp.fujitsu.com> <20091105082357.54D3.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1153 Lines: 31 On Thu 2009-11-05 10:04:01, Christoph Lameter wrote: > 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. ...but compared to disk i/o, overhead should be almost zero, right? Keep it simple... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/