linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@clusterfs.com>
To: Theodore Ts'o <tytso@mit.edu>
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 02:10:02 -0600	[thread overview]
Message-ID: <20061013081002.GR6221@schatzie.adilger.int> (raw)
In-Reply-To: <E1GXeYv-0006rP-RV@candygram.thunk.org>

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.

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.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.


  parent reply	other threads:[~2006-10-13  8:10 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 [this message]
2006-10-13 10:49   ` Theodore Tso
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=20061013081002.GR6221@schatzie.adilger.int \
    --to=adilger@clusterfs.com \
    --cc=alex@clusterfs.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).