[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200903151541.36223.phillips@phunq.net>
Date: Sun, 15 Mar 2009 15:41:35 -0700
From: Daniel Phillips <phillips@...nq.net>
To: Theodore Tso <tytso@....edu>
Cc: Nick Piggin <nickpiggin@...oo.com.au>,
linux-fsdevel@...r.kernel.org, tux3@...3.org,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [Tux3] Tux3 report: Tux3 Git tree available
Hi Ted,
On Sunday 15 March 2009, Theodore Tso wrote:
> On Sun, Mar 15, 2009 at 02:45:04PM +1100, Nick Piggin wrote:
> > > As it happens, Tux3 also physically allocates each _physical_ metadata
> > > block (i.e., what is currently called buffer cache) at the time it is
> > > dirtied. I don't know if this is the best thing to do, but it is
> > > interesting that you do the same thing. I also don't know if I want to
> > > trust a library to get this right, before having completely proved out
> > > the idea in a non-trival filesystem. But good luck with that! It
> >
> > I'm not sure why it would be a big problem. fsblock isn't allocating
> > the block itself of course, it just asks the filesystem to. It's
> > trivial to do for fsblock.
>
> So the really unfortunate thing about allocating the block as soon as
> the page is dirty is that it spikes out delayed allocation. By
> delaying the physical allocation of the logical->physical mapping as
> long as possible, the filesystem can select the best possible physical
> location.
Tux3 does not dirty the metadata until data cache is flushed, so the
allocation decisions for data and metadata are made at the same time.
That is the reason for the distinction between physical metadata above,
and logical metadata such as directory data and bitmaps, which are
delayed. Though physical metadata is positioned when first dirtied,
physical metadata dirtying is delayed until delta commit.
Implementing this model (we are still working on it) requires taking
care of a lot of subtle details that are specific to the Tux3 cache
model. I have a hard time imagining those allocation decisions driven
by callbacks from a buffer-like library.
Regards,
Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists