public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Hans Reiser <reiser@namesys.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Journal Filesystem Comparison on Netbench
Date: 28 Aug 2001 08:51:32 +0200	[thread overview]
Message-ID: <oupsneck77v.fsf@pigdrop.muc.suse.de> (raw)
In-Reply-To: <3B8A6122.3C784F2D@us.ibm.com.suse.lists.linux.kernel> <3B8AA7B9.8EB836FF@namesys.com.suse.lists.linux.kernel>
In-Reply-To: Hans Reiser's message of "27 Aug 2001 22:07:02 +0200"

Hans Reiser <reiser@namesys.com> writes:

> That said, it does not surprise me that our locking is coarser than other
> filesystems, and we will be fixing that in version 4.  Unfortunately we don't
> have the hardware to replicate your results.

It does not really look like a locking problem. If you look at the profiling
logs it is pretty clear that the problem is the algorithm used in 
bitmap.c:find_forward. find_forward and reiserfs_in_journal 
(called by find_forward)
are by most the biggest CPU users in file system space, and 
reiserfs_in_journal is called over 30 million times, far more often than
any other function. On looking at it it is pretty clear why it is slow;
the algorithm is just stupid. It also runs under the BKL, which explains 
the long locking times. Fix that function and it'll look much better.
i.e. one way would be to keep a shadow map of all bitmaps that has all
journaled blocks set also, to quickly skip them for the common case.

-Andi

 

       reply	other threads:[~2001-08-28  6:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3B8A6122.3C784F2D@us.ibm.com.suse.lists.linux.kernel>
     [not found] ` <3B8AA7B9.8EB836FF@namesys.com.suse.lists.linux.kernel>
2001-08-28  6:51   ` Andi Kleen [this message]
2001-08-28 10:41     ` Journal Filesystem Comparison on Netbench Emmanuel Varagnat
2001-08-28 10:50       ` Andi Kleen
2001-08-28 11:35         ` Emmanuel Varagnat
2001-08-28 15:07         ` Andrew Theurer
2001-08-27 15:02 Andrew Theurer
2001-08-27 20:04 ` Hans Reiser
2001-08-27 20:29   ` Andrew Theurer
2001-08-27 21:19   ` Randy.Dunlap
2001-08-28 10:05 ` Roberto Nibali
2001-08-28 15:28   ` Andrew Theurer
2001-08-28 18:38     ` Andrew Morton

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=oupsneck77v.fsf@pigdrop.muc.suse.de \
    --to=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reiser@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox