From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: Writeback tests Date: Fri, 15 Jul 2011 19:44:23 -0400 Message-ID: <20110715234423.GA10296@infradead.org> References: <20110715153324.GB2276@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , Wu Fengguang , Jan Kara , Andrew Morton , Dave Chinner , Michael Rubin , linux-fsdevel@vger.kernel.org To: Curt Wohlgemuth Return-path: Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:52892 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163Ab1GOXoi (ORCPT ); Fri, 15 Jul 2011 19:44:38 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Jul 15, 2011 at 04:41:38PM -0700, Curt Wohlgemuth wrote: > $ cat /proc/writeback/stats > call: balance_dirty_pages 2253 > call: background_writeout 45 > call: try_to_free_pages 0 > call: sync 14 > call: kupdate 228 > call: shrink_page_list 0 > call: fdatawrite 6755 > call: laptop_periodic 0 > call: free_more_memory 0 > page: balance_dirty_pages 455830 > page: background_writeout 391568 > page: try_to_free_pages 0 > page: sync 133 > page: kupdate 1158779 > page: shrink_page_list 0 > page: fdatawrite 777320 > page: laptop_periodic 0 > page: free_more_memory 0 > periodic writeback 241 > single inode wait 0 > writeback_wb wait 7 > metadata pages cleaned 19473 A fair amount of the page stats should be provided by Wu and Jan's recent patches, shouldn't they? I don't think the calls stats are such a good idea. We can triviall get these stats by using perf - just place a probe at the function and then count it using perf record. But if would be good to get the remaining page stats in, as they seems pretty useful.