All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ash <ashrat@gmail.com>
To: reiserfs-list@namesys.com
Subject: ReiserFS post-crash issues
Date: Tue, 21 Sep 2004 14:02:22 +0530	[thread overview]
Message-ID: <e96ff120040921013254b63c93@mail.gmail.com> (raw)

Hi

I have been running a few tests on ReiserFS to check durability of
common filesystem operations.
For example, create a certain number of files and crash the machine
(poweroff) immediately after this.
On rebooting, check the number of files actually present on the
filesystem after log replay.

Similarly, I tried for some other operations like rename, link and delete.
I am using a C program with open, rename and link system calls to
perform these operations respectively
and crashing the system using a network power switch immediately after
my C program finishes doing its stuff.
So the delay in-between completion of the operations and the machine crashing
should be, according to me, less than 1-2 seconds (which is the time
required to establish a telnet connection to the power switch)

It seems that ReiserFS operations are not durable for most of the cases I tried.

For file create, when tried with 50K, 100K and 1M files, I got
34224, 99492, and 998594 files respectively after system rebooted from the
crash. Similarly for operations like rename and link, the number of files
renamed or linked after reboot is less than what the filesystem reports prior
to the crash.

Now introducing a fsync() after every open() call does solve the problem
but the performance degradation seen is very high. In fact, I did notice
the related discussion on the FAQ at namesys.com.

Also, operations like rename, link and delete also seem to give problems.

However, with other filesystems like XFS, I get much better results (almost
100% durability) on similar tests.

I am using ReiserFS with linux kernel 2.6.7

Any comments/suggestions will be helpful.

Thanks,
Ash

             reply	other threads:[~2004-09-21  8:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-21  8:32 Ash [this message]
2004-09-21  9:51 ` ReiserFS post-crash issues Will Smith
2004-09-21 15:09   ` Hans Reiser
2004-09-30  9:18     ` Ash
2004-09-21 15:01 ` Hans Reiser
2004-09-22 11:16   ` Ash

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=e96ff120040921013254b63c93@mail.gmail.com \
    --to=ashrat@gmail.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.