All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Mahoney <jeffm@suse.com>
To: Jan Kara <jack@suse.cz>
Cc: "Mike Benoit" <ipso@snappymail.ca>,
	"Jure Pečar" <pegasus@nerv.eu.org>,
	"Hans Reiser" <reiser@namesys.com>,
	reiserfs-list@namesys.com
Subject: Re: ReiserFS v3 choking when free space falls below 10%?
Date: Fri, 07 Jul 2006 14:08:05 -0400	[thread overview]
Message-ID: <44AEA305.9050509@suse.com> (raw)
In-Reply-To: <20060707180746.GA29487@atrey.karlin.mff.cuni.cz>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jan Kara wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Jan Kara wrote:
>>>   Hi,
>>>
>>>   just one note: I've looked to the in scan_bitmap() in bitmap.c. There is:
>>>         /* When the bitmap is more than 10% free, anyone can allocate.
>>>          * When it's less than 10% free, only files that already use the
>>>          * bitmap are allowed. Once we pass 80% full, this restriction
>>>          * is lifted.
>>>          *
>>>          * We do this so that files that grow later still have space
>>>          * close to
>>>          * their original allocation. This improves locality, and
>>>          * presumably
>>>          * performance as a result.
>>>          *
>>>          * This is only an allocation policy and does not make up for
>>>          * getting a
>>>          * bad hint. Decent hinting must be implemented for this to work
>>>          * well.
>>>          */
>>>         if (TEST_OPTION(skip_busy, s)
>>>             && SB_FREE_BLOCKS(s) > SB_BLOCK_COUNT(s) / 20) {
>>>
>>>    So the comment suggests we should lift the restriction when we are 80%
>>> full but if you see the condition, it checks wherher we are 95% full! I
>>> guess that is really asking for trouble and could explain the
>>> behaviour...
>>>   Mike could you try changing that 20 in the test to 5? IMHO that could
>>> fix your problem.
>> Shoot. I guess I never sent that mail out last night. I had discovered
>> the same thing. The thing is, I don't think it will cause the kind of
>> performance problem we're seeing here. Once it sees the 90% check it
>> will bail out. Minor slowdown, not anything like we're seeing.
>   Hmm, right. You'll only scan that one bitmap the file is in, won't
> you? That can still take some time so maybe it's worth trying this fix
> anyway.

Oh, I agree that it's a bug that needs to be fixed. I just don't think
it's causing 90% CPU usage. :)

- -Jeff

- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFErqMELPWxlyuTD7IRAnitAJ9rbkY8sKzJqqVZnwA1Gqo2aEcV1QCgqBgt
YsXQ7d6S/70du/bWQ28Xhkc=
=Jv9h
-----END PGP SIGNATURE-----

  reply	other threads:[~2006-07-07 18:08 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-29 17:41 ReiserFS v3 choking when free space falls below 10%? Mike Benoit
2006-06-29 19:12 ` Vladimir V. Saveliev
2006-06-29 20:15   ` Mike Benoit
2006-06-29 20:22     ` Vladimir V. Saveliev
2006-06-29 21:01       ` Mike Benoit
2006-06-29 20:36     ` Nate Diller
2006-06-30 16:33     ` Hans Reiser
2006-06-30 16:47       ` Jeff Mahoney
2006-06-30 17:04         ` Hans Reiser
2006-06-30 17:46           ` Mike Benoit
2006-06-30 18:18             ` Hans Reiser
2006-07-05  0:37         ` Mike Benoit
2006-07-05  2:37           ` Hans Reiser
2006-07-05 14:42             ` Tom Vier
2006-07-05 19:12             ` Jeff Mahoney
     [not found]             ` <20060706125856.fdac1d16.pegasus@nerv.eu.org>
2006-07-06 15:43               ` Mike Benoit
2006-07-06 16:01                 ` Jonathan Briggs
2006-07-06 17:26                 ` Toby Thain
2006-07-06 17:26                   ` Toby Thain
2006-07-06 18:02                 ` Jeff Mahoney
2006-07-06 18:12                   ` Hans Reiser
2006-07-06 18:19                     ` Jeff Mahoney
2006-07-06 18:47                       ` Mike Benoit
2006-07-06 19:17                         ` Hans Reiser
2006-07-06 18:27                   ` Mike Benoit
2006-07-06 18:39                     ` Jeff Mahoney
2006-07-07  7:29                       ` Mike Benoit
2006-07-07 17:49                         ` Jan Kara
2006-07-07 17:50                           ` Jeff Mahoney
2006-07-07 18:07                             ` Jan Kara
2006-07-07 18:08                               ` Jeff Mahoney [this message]
2006-07-07 19:05                               ` Hans Reiser
2006-07-07 19:18                                 ` Jan Kara
2006-07-07 19:38                                   ` Hans Reiser
2006-07-07 20:18                           ` Mike Benoit
2006-07-07 21:04                           ` Mike Benoit
2006-07-07 21:20                             ` Hans Reiser
2006-07-08 18:45                               ` Jeff Mahoney
2006-07-09  0:01                                 ` Hans Reiser
2006-07-09  0:02                                 ` Hans Reiser
2006-07-12  0:54                                 ` Jeffrey Mahoney
2006-07-12  5:42                                   ` Hans Reiser
2006-07-12  5:52                                     ` Jeffrey Mahoney
2006-07-12  8:18                                       ` Hans Reiser
2006-07-12 16:06                                         ` Jeff Mahoney
2006-07-24 22:26 ` ReiserFS v3 choking when free space falls below 10% - FIXED Mike Benoit
2006-07-24 22:32   ` Jeff Mahoney
2006-07-26  0:10   ` David Masover
2006-07-26  2:25     ` Mike Benoit
2006-07-26 14:29     ` Hans Reiser

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=44AEA305.9050509@suse.com \
    --to=jeffm@suse.com \
    --cc=ipso@snappymail.ca \
    --cc=jack@suse.cz \
    --cc=pegasus@nerv.eu.org \
    --cc=reiser@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.