All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: Phil Howard <phil-reiserfs@ipal.net>
Cc: reiserfs-list@namesys.com
Subject: Re: using reiserfs as a DB
Date: Mon, 22 Apr 2002 17:20:09 +0400	[thread overview]
Message-ID: <20020422172009.A1109@namesys.com> (raw)
In-Reply-To: <20020421205328.GA8407@vega.ipal.net>

Hello!

On Sun, Apr 21, 2002 at 03:53:28PM -0500, Phil Howard wrote:
> Given the balanced tree directory structure of reiserfs, it seems it
> could be usable as a DB in place of a DB library (such as Berkeley DB).
> Has anyone done any timing/benchmarks of reiserfs used as a replacement
> for a DB library, as compared to one such as Berkeley DB?  There would
> be an advantage to using conventional file tools to access the data
> instead of having to code some up for a DB library.  The issue would
> certainly involve the open/read/close timings for reiserfs for each
> piece of data accessed.  The uses for which I have an interest in doing
> this would most be small data, usually less than 128 bytes, and almost
> always less than 512 bytes.  For example, one use involves indexing a
> lot of (100s to maybe even 1000000) URLs under special short keywords.

I do not have any numbers, but take in account that while DB database
generally have to updata atime/mtime/ctime on only 3 files (or even 2),
in case of a filesystem each file accessed will change atime and/or mtime/ctime.

(you can turn off atime updates of course). Also directory lookups ain't going
to be free either.
I've not heard of a test like you are describing, so feel free to implement
one that will suit all your needs.

But I remember that squid people decided lookup/open/close operations are
too expensive for them and raw reiserfs access was born, where you was able
directly access filesystems objects by the keys. 

Bye,
    Oleg

  reply	other threads:[~2002-04-22 13:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-21 20:53 using reiserfs as a DB Phil Howard
2002-04-22 13:20 ` Oleg Drokin [this message]
2002-04-22 13:47   ` Hans Reiser
2002-04-22 14:03     ` Nikita Danilov
2002-04-22 17:44   ` Phil Howard
2002-04-22 18:12     ` Yura Umanets
2002-04-22 19:26       ` Richard Emslie
2002-04-23  6:44         ` Oleg Drokin
2002-04-22 23:16       ` Phil Howard
2002-04-23  6:46         ` Oleg Drokin
2002-04-23  8:50     ` Nikita Danilov

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=20020422172009.A1109@namesys.com \
    --to=green@namesys.com \
    --cc=phil-reiserfs@ipal.net \
    --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.