All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Reiser <reiser@namesys.com>
To: Sonny Rao <sonny@burdell.org>
Cc: Chris Mason <mason@suse.com>, reiserfs-list@namesys.com
Subject: Re: Odd Block allocation behavior on Reiser3
Date: Tue, 10 Aug 2004 00:16:39 -0700	[thread overview]
Message-ID: <41187657.7030709@namesys.com> (raw)
In-Reply-To: <20040809220459.GA57121@kevlar.burdell.org>

Sonny Rao wrote:

>On Mon, Aug 09, 2004 at 04:30:51PM -0400, Chris Mason wrote:
>  
>
>>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.
>>    
>>
>
>2.6.7 stock
>
>  
>
>>>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.
>>    
>>
>
>
>Ah, I didn't know that.  I'm still confused as to why on the first
>allocation/create we get such bad fragmentation, you can see that even
>though the file is fragmented into 134 blocks, the blocks are very
>close together.  Most of the extents are only 2 blocks apart.
>
>Sonny
>
>
>  
>
Interesting.What happens without overwrite, that is, if you write more 
files without deleting the old ones?

  reply	other threads:[~2004-08-10  7:16 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
2004-08-09 22:04   ` Sonny Rao
2004-08-10  7:16     ` Hans Reiser [this message]
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=41187657.7030709@namesys.com \
    --to=reiser@namesys.com \
    --cc=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.