From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rik van Riel Subject: Re: [PATCH 10/15] readahead: add /debug/readahead/stats Date: Thu, 25 Feb 2010 17:40:17 -0500 Message-ID: <4B86FC51.80903@redhat.com> References: <20100224031001.026464755@intel.com> <20100224031055.024165020@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Andrew Morton , Jens Axboe , Ingo Molnar , Peter Zijlstra , Chris Mason , Clemens Ladisch , Olivier Galibert , Vivek Goyal , Christian Ehrhardt , Matt Mackall , Nick Piggin , Linux Memory Management List , linux-fsdevel@vger.kernel.org, LKML To: Wu Fengguang Return-path: In-Reply-To: <20100224031055.024165020@intel.com> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On 02/23/2010 10:10 PM, Wu Fengguang wrote: > Collect readahead stats when CONFIG_READAHEAD_STATS=y. > > This is enabled by default because the added overheads are trivial: > two readahead_stats() calls per readahead. > > Example output: > (taken from a fresh booted NFS-ROOT box with rsize=16k) > > $ cat /debug/readahead/stats > pattern readahead eof_hit cache_hit io sync_io mmap_io size async_size io_size > initial 524 216 26 498 498 18 7 4 4 > subsequent 181 80 1 130 13 60 25 25 24 > context 94 28 3 85 64 8 7 2 5 > thrash 0 0 0 0 0 0 0 0 0 > around 162 121 33 162 162 162 60 0 21 > fadvise 0 0 0 0 0 0 0 0 0 > random 137 0 0 137 137 0 1 0 1 > all 1098 445 63 1012 874 0 17 6 9 > > The two most important columns are > - io number of readahead IO > - io_size average readahead IO size > > CC: Ingo Molnar > CC: Jens Axboe > CC: Peter Zijlstra > Signed-off-by: Wu Fengguang Acked-by: Rik van Riel -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org