All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: reiserfs-dev@namesys.com, reiserfs-list@namesys.com
Subject: Using filename-hash as part of key
Date: Mon, 23 Dec 2002 14:16:41 +0300	[thread overview]
Message-ID: <20021223141641.B31759@namesys.com> (raw)

Hello!

   We had a discussion with Hans on read performance now.
   As everybody probably already knows, reiserfs (v3 and v4) is 
   very sensitive to order in which you write files to it if you
   want to read these files back quick. (actually this issue is the same
   with anything that uses filename hashes to quickly navigate through
   directories). In order to achieve best results you need to write
   files in the same order as hashes of their names would appear in directory.
   We refer to this order as "read optimised" ;)
   Of course writing files in read-optimised order is not always possible,
   so the idea is to use hash of file name as part of the key.
   That would allow us to allocate blocks for files in right order (only
   true for reiesr4 where we have delayed allocation).

   Obvious disadvantages are: larger keys mean more fs overhead,
   this optimisation won't work if file gets renamed later, if this directory
   is never read in sequentional order.

   But as Hans argues, usually these sequentional-read operations are ones most
   noticed because they are usually performed by humans:
   ls, tar, copy of a directory and this kind of stuff.

   Now let's listen to all the different opinions on this plan, your comments
   are welcome.

Bye,
    Oleg

             reply	other threads:[~2002-12-23 11:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-23 11:16 Oleg Drokin [this message]
2002-12-23 11:27 ` Using filename-hash as part of key Anders Widman
2002-12-23 11:52 ` Nikita Danilov
2002-12-23 11:58   ` Oleg Drokin
2002-12-23 15:49   ` Valdis.Kletnieks

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=20021223141641.B31759@namesys.com \
    --to=green@namesys.com \
    --cc=reiserfs-dev@namesys.com \
    --cc=reiserfs-list@namesys.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 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.