Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932392AbVLASYJ (ORCPT ); Thu, 1 Dec 2005 13:24:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932395AbVLASYJ (ORCPT ); Thu, 1 Dec 2005 13:24:09 -0500 Received: from e31.co.us.ibm.com ([32.97.110.149]:12769 "EHLO e31.co.us.ibm.com") by vger.kernel.org with ESMTP id S932392AbVLASYI (ORCPT ); Thu, 1 Dec 2005 13:24:08 -0500 Subject: Re: Better pagecache statistics ? From: Badari Pulavarty To: Marcelo Tosatti Cc: Arjan van de Ven , linux-mm , lkml In-Reply-To: <20051201175711.GA17169@dmt.cnet> References: <1133377029.27824.90.camel@localhost.localdomain> <20051201152029.GA14499@dmt.cnet> <1133452790.27824.117.camel@localhost.localdomain> <1133453411.2853.67.camel@laptopd505.fenrus.org> <20051201170850.GA16235@dmt.cnet> <1133457315.21429.29.camel@localhost.localdomain> <1133457700.2853.78.camel@laptopd505.fenrus.org> <20051201175711.GA17169@dmt.cnet> Content-Type: text/plain Date: Thu, 01 Dec 2005 10:24:17 -0800 Message-Id: <1133461457.21429.51.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1191 Lines: 29 On Thu, 2005-12-01 at 15:57 -0200, Marcelo Tosatti wrote: > On Thu, Dec 01, 2005 at 06:21:39PM +0100, Arjan van de Ven wrote: > > On Thu, 2005-12-01 at 09:15 -0800, Badari Pulavarty wrote: > > > > Most of the issues you mention are null if you move the stats > > > > maintenance burden to userspace. > > > > > > > > The performance impact is also minimized since the hooks > > > > (read: overhead) can be loaded on-demand as needed. > > > > > > > > > > The overhead is - going through each mapping/inode in the system > > > and dumping out "nrpages" - to get per-file statistics. This is > > > going to be expensive, need locking and there is no single list > > > we can traverse to get it. I am not sure how to do this. > > Can't you add hooks to add_to_page_cache/remove_from_page_cache > to record pagecache activity ? BTW, the hook can't be dynamically loaded (using kprobes) - since we miss what happend till then. Thanks, Badari - 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/