From: Theodore Tso <tytso@mit.edu>
To: Andreas Dilger <adilger@clusterfs.com>
Cc: linux-ext4@vger.kernel.org, Alex Tomas <alex@clusterfs.com>
Subject: Re: Design alternatives for fragments/file tail support in ext4
Date: Fri, 13 Oct 2006 06:49:47 -0400 [thread overview]
Message-ID: <20061013104947.GB5519@thunk.org> (raw)
In-Reply-To: <20061013081002.GR6221@schatzie.adilger.int>
On Fri, Oct 13, 2006 at 02:10:02AM -0600, Andreas Dilger wrote:
> On Oct 11, 2006 09:55 -0400, Theodore Ts'o wrote:
> > Block allocation clusters
> > =========================
> > The basic idea is that we store in the superblock the size of a block
> > allocation cluster, and that we change the allocation algorithm and the
> > preallocation code to always try to allocate blocks so that whenever
> > possible, an inode will use contiguous clusters of blocks, which are
> > aligned in multiples of the cluster size.
>
> As mentioned in the weekly conference call - Alex has already implemented
> this as part of the mballoc code that CFS uses in conjunction with extents.
> There is a /proc tunable for the cluster size, which currently defaults to
> 1MB clusters (the Lustre RPC size) to optimize performance for RAID systems.
> The allocations are aligned with the LUN so that an integer number of RAID
> stripes are modified for a write. Smaller allocation chunks are packed
> together.
I suggest this be tunable by superblock field, and not by a /proc
tunable. This is the sort of thing which might be different
per-filesystem, and the algorithm will be most effective if the
filesystem always use the same cluster size from the time when it was
first created. I'd be happy to assign a superblock field for this
purpose, and add the appropriate tune2fs support if we have general
agreement on this point.
> Alex is working to update the multi-block allocator for the 2.6.18 kernel,
> in conjunction with delayed allocation for ext4, and will hopefully have
> a patch soon.
Great!
- Ted
next prev parent reply other threads:[~2006-10-13 10:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-11 13:55 Design alternatives for fragments/file tail support in ext4 Theodore Ts'o
2006-10-13 6:19 ` Michael Burschik
2006-10-13 8:10 ` Andreas Dilger
2006-10-13 10:49 ` Theodore Tso [this message]
2006-10-13 10:56 ` Alex Tomas
2006-10-13 12:23 ` Theodore Tso
2006-10-13 17:47 ` Andreas Dilger
2006-10-13 12:48 ` Erik Mouw
2006-12-02 11:02 ` Alex Tomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061013104947.GB5519@thunk.org \
--to=tytso@mit.edu \
--cc=adilger@clusterfs.com \
--cc=alex@clusterfs.com \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.