Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756525Ab0DUUjk (ORCPT ); Wed, 21 Apr 2010 16:39:40 -0400 Received: from mail2.shareable.org ([80.68.89.115]:42740 "EHLO mail2.shareable.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756426Ab0DUUjj (ORCPT ); Wed, 21 Apr 2010 16:39:39 -0400 Date: Wed, 21 Apr 2010 21:39:37 +0100 From: Jamie Lokier To: Evgeniy Polyakov Cc: Phillip Susi , linux-fsdevel@vger.kernel.org, Linux-kernel Subject: Re: readahead on directories Message-ID: <20100421203937.GX27575@shareable.org> References: <4BCC7C05.8000803@cfl.rr.com> <20100421004434.GA27420@shareable.org> <4BCF123C.6010400@cfl.rr.com> <20100421161211.GC27575@shareable.org> <20100421183853.GA14897@ioremap.net> <20100421185124.GM27575@shareable.org> <20100421185657.GA21249@ioremap.net> <20100421200243.GU27575@shareable.org> <20100421202134.GB25130@ioremap.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100421202134.GB25130@ioremap.net> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1354 Lines: 32 Evgeniy Polyakov wrote: > On Wed, Apr 21, 2010 at 09:02:43PM +0100, Jamie Lokier (jamie@shareable.org) wrote: > > FIEMAP might not be the answer, but what part of it requires fs > > knowledge? It's supposed to be fs-independent. I agree it's not > > always appropriate to use, and I don't know if it would be effective > > anyway. > > At least we have to know whether given fs supports such interface. > And more complex is to know how underlying fs is organized. What is > extent, which types can it have, where exactly information about extent > metadata is stored, i.e. where can we find what this object is about? Ummm... Does any of that matter? > And how to actually populate appropriate blocks into ram to speedup > readdir()? Blockdev readahead() :-) > FIEMAP (which is file mapper btw :) is useful for information gathering > about how fs is organized, but that's all I'm afraid. That's all you need to start fetching from the blockdev. You can't *use* the blockdev data, but that doesn't matter for this readahead operation, only that they are approximately the right data blocks. - Jamie -- 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/