public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@clusterfs.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Dave Kleikamp <shaggy@austin.ibm.com>,
	ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: Updated ext4/jbd2 patches based on 2.6.19-rc1
Date: Fri, 6 Oct 2006 00:48:56 -0600	[thread overview]
Message-ID: <20061006064856.GK22010@schatzie.adilger.int> (raw)
In-Reply-To: <20061005231056.174ee381.akpm@osdl.org>

On Oct 05, 2006  23:10 -0700, Andrew Morton wrote:
> On Thu, 5 Oct 2006 23:58:29 -0600
> Andreas Dilger <adilger@clusterfs.com> wrote:
> > but the patches have not been changed for ext4 (which should really
> > default to using extents on a filesystem with the INCOMPAT_EXTENT feature
> > set unless told otherwise).  That is a necessity for filesystems larger
> > than 2^32 blocks, since there is no way to create old block-mapped files
> > past that limit.
> 
> That's news to me.  So we only use 48-bit block numbers for extents and
> not for old-style indirect blocks?

Correct.  The block-mapped {d,t,}indirect blocks chewed up enough space
as it was (0.1% of the file size) without doubling the block pointers.
Things like truncate hurt pretty badly because of that, as does the
increased IO load to read them and memory pressure due to keeping them
in RAM.

> How much performance improvement do they get, btw?  CPU or IO? I'm not
> noticing any difference.

As mentioned in my other email, the big performance win will come from
the multi-block allocation (mballoc) and delayed allocation (delalloc)
from Alex.

The mballoc patch allows a 1MB write to get a 1MB-aligned and contiguous
chunk of disk, instead of the next 256 blocks that might be free.
Having 1MB alignment is good for 10% or more on some RAID systems to
avoid writing partial stripes (which also requires a read).

Delalloc allows the filesystem to actually submit 1MB writes at once
without doing the block allocation in prepare_write().  Better for
picking free space, and avoids needless extent tree insertion/rebalancing.

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


      reply	other threads:[~2006-10-06  6:48 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-05 18:23 Updated ext4/jbd2 patches based on 2.6.19-rc1 Dave Kleikamp
2006-10-05 20:19 ` Andrew Morton
2006-10-05 23:25   ` Linus Torvalds
2006-10-06 12:50     ` Dave Kleikamp
2006-10-06 16:11       ` Linus Torvalds
2006-10-05 21:59 ` Andrew Morton
2006-10-06  0:39 ` Andrew Morton
2006-10-10  6:29   ` Andrew Morton
2006-10-10  7:54     ` Suparna Bhattacharya
2006-10-10  8:14       ` Andrew Morton
2006-10-10 20:02         ` [RFC] [PATCH] Documentation/filesystems/ext4.txt Dave Kleikamp
2006-10-10 20:56           ` Andrew Morton
2006-10-11 17:03           ` Andreas Dilger
2006-10-12 14:18           ` Valerie Clement
2006-10-06  3:55 ` Updated ext4/jbd2 patches based on 2.6.19-rc1 Andrew Morton
2006-10-06  3:58   ` Andrew Morton
2006-10-06 10:34     ` Alex Tomas
2006-10-06  4:54   ` Randy Dunlap
2006-10-06  5:05     ` Andrew Morton
2006-10-06  5:53     ` Andreas Dilger
2006-10-06  6:04       ` Andrew Morton
2006-10-06  6:41         ` Andreas Dilger
2006-10-06  6:50           ` Andrew Morton
2006-10-06 10:31             ` Alex Tomas
2006-10-06 13:57               ` Andrew Morton
2006-10-07 20:09                 ` alex
2006-10-06  6:52           ` Suparna Bhattacharya
2006-10-06 12:21   ` Theodore Tso
2006-10-06 21:10     ` [PATCH] Get rid of extents mount option Dave Kleikamp
2006-10-06 21:21       ` [PATCH] Get rid of extents mount option - try 2 Dave Kleikamp
2006-10-06 22:32         ` Andrew Morton
2006-10-06 23:20           ` Dave Kleikamp
2006-10-07  4:14             ` Theodore Tso
2006-10-07 15:53               ` Dave Kleikamp
2006-10-07 17:20                 ` Theodore Tso
2006-10-07 19:45                   ` Alex Tomas
2006-10-07 19:57                   ` Andrew Morton
2006-10-10 18:48                   ` Dave Kleikamp
2006-10-10 21:07                     ` Theodore Tso
2006-10-10 21:18                       ` Andrew Morton
2006-10-11 17:16         ` Andreas Dilger
2006-10-06  4:31 ` Updated ext4/jbd2 patches based on 2.6.19-rc1 Andrew Morton
2006-10-06  5:58   ` Andreas Dilger
2006-10-06  6:10     ` Andrew Morton
2006-10-06  6:48       ` Andreas Dilger [this message]

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=20061006064856.GK22010@schatzie.adilger.int \
    --to=adilger@clusterfs.com \
    --cc=akpm@osdl.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=shaggy@austin.ibm.com \
    /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