From: Hans Reiser <reiser@namesys.com>
To: Valdis.Kletnieks@vt.edu
Cc: raymond jennings <highwind747@hotmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [IDEA] - run-length compaction of block numbers
Date: Fri, 16 Jan 2004 23:47:55 +0300 [thread overview]
Message-ID: <40084DFB.5040106@namesys.com> (raw)
In-Reply-To: <200401161954.i0GJsEgj003906@turing-police.cc.vt.edu>
Valdis.Kletnieks@vt.edu wrote:
>On Fri, 16 Jan 2004 11:38:59 PST, raymond jennings <highwind747@hotmail.com> said:
>
>
>>Is there any value in creating a new filesystem that encodes long contiguous
>>blocks as a single block run instead of multiple block numbers? A long file
>>may use only a few block runs instead of many block numbers if there is
>>little fragmentation (usually the case).
>>
This is already done, they are called "extent"s. Reiser4 uses them, XFS
uses them, I think Veritas may have been the first to use them but I am
not sure of this, maybe it was IBM.
>> Also dynamic allocation of
>>inodes...etc.
>>
ReiserFS does dynamic allocation of stat data (what stat() returns), we
don't have inodes. Many filesystems do dynamic allocation of inodes.
>> The details are long; anyone interested can e-mail me
>>privately.
>>
>>
>
>Only question I have is how you make an efficient scheme for finding the block
>number for an offset several gigabytes into the file.
>
Use a tree to store everything in. See www.namesys.com for extensive
details.
> You either get to run
>through the list linearly (gaak) or you need to stick a tree or hash on the
>front to allow semi-random access to a starting point to scan linearly from, at
>which point you've probably blown any space savings unless you have a VERY low
>fragmentation rate...
>
>On the other hand, dynamic allocation of inodes is interesting, as it means
>you're not screwed if over time, the NBPI value for the filesystem changes (or
>if you simply guessed wrong at mkfs time) and you run out of inodes when you
>still have space free. Reiserfs V3 already does this, in fact...
>
>
>
Cheers,
--
Hans
next prev parent reply other threads:[~2004-01-16 20:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-16 19:38 [IDEA] - run-length compaction of block numbers raymond jennings
2004-01-16 19:52 ` Randy.Dunlap
2004-01-16 19:54 ` Valdis.Kletnieks
2004-01-16 20:36 ` Ian Pilcher
2004-01-16 21:57 ` Mike Fedyk
2004-01-16 20:47 ` Hans Reiser [this message]
2004-01-16 22:38 ` Valdis.Kletnieks
2004-01-19 10:45 ` Hans Reiser
2004-01-19 16:20 ` Valdis.Kletnieks
2004-01-19 17:06 ` Hans Reiser
2004-02-08 11:38 ` Keith Owens
[not found] <1eI8L-5fS-9@gated-at.bofh.it>
2004-01-16 20:01 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2004-01-29 16:40 raymond jennings
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=40084DFB.5040106@namesys.com \
--to=reiser@namesys.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=highwind747@hotmail.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox