From: Chris Mason <mason@suse.com>
To: Sonny Rao <sonny@burdell.org>
Cc: reiserfs-list@namesys.com
Subject: Re: Odd Block allocation behavior on Reiser3
Date: Mon, 09 Aug 2004 16:30:51 -0400 [thread overview]
Message-ID: <1092083451.10651.218.camel@watt.suse.com> (raw)
In-Reply-To: <20040809201939.GA55683@kevlar.burdell.org>
On Mon, 2004-08-09 at 16:19, Sonny Rao wrote:
> Hi, I'm investigating filesystem performance on sequential read
> patterns of large files, and I discovered an odd pattern of block
> allocation and subsequent re-allocation after overwrite under reiser3:
>
Exactly which kernel is this? The block allocator in v3 has changed
recently.
> This was done on a newly created filesystem with plenty of available
> space and no other files. I tried this test several times and saw the
> number of extents for the file vary from 5,6,7 and 134 extents, but it
> is always different after each over-write.
>
You've hit a "feature" of the journal. When you delete a file, the data
blocks aren't available for reuse until the transaction that allocated
them is committed to the log. If you were to put a sync in between each
run of dd, you should get roughly the same blocks allocated each time.
ext3 does the same things, although somewhat differently. The
asynchronous commit is probably just finishing a little sooner on ext3.
> First, I expect that an extent-based filesystem like reiserfs
reiser4 is extent based, reiser3 is not.
-chris
next prev parent reply other threads:[~2004-08-09 20:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-09 20:19 Odd Block allocation behavior on Reiser3 Sonny Rao
2004-08-09 20:30 ` Chris Mason [this message]
2004-08-09 22:04 ` Sonny Rao
2004-08-10 7:16 ` Hans Reiser
2004-08-10 15:45 ` Sonny Rao
2004-08-10 17:52 ` Hans Reiser
2004-08-10 18:25 ` Chris Mason
2004-08-10 18:50 ` Chris Mason
2004-08-10 19:42 ` Hans Reiser
2004-08-10 20:29 ` Chris Mason
2004-08-10 21:47 ` Hans Reiser
2004-08-10 23:12 ` Sonny Rao
2004-08-11 1:31 ` Jeff Mahoney
2004-08-10 19:40 ` Hans Reiser
2004-08-10 23:00 ` Sonny Rao
2004-08-10 20:12 ` Why larger extent counts aren't necessarily bad (was Re: Odd Block allocation behavior on Reiser3) Jeff Mahoney
2004-09-09 17:04 ` Hans Reiser
2004-08-10 12:53 ` Odd Block allocation behavior on Reiser3 Chris Mason
2004-08-10 16:12 ` Sonny Rao
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=1092083451.10651.218.camel@watt.suse.com \
--to=mason@suse.com \
--cc=reiserfs-list@namesys.com \
--cc=sonny@burdell.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.