public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Badari Pulavarty <pbadari@gmail.com>
To: Andreas Dilger <adilger@clusterfs.com>
Cc: ext4 <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] speed up statfs
Date: Wed, 04 Jul 2007 20:51:07 -0700	[thread overview]
Message-ID: <1183607467.29435.6.camel@dyn9047017100.beaverton.ibm.com> (raw)
In-Reply-To: <20070704222344.GA5135@schatzie.adilger.int>

On Wed, 2007-07-04 at 16:23 -0600, Andreas Dilger wrote:
> Hi,
> this is a patch we are currently using that speeds up statfs.
> It is very simple - the "overhead" calculation, which takes a
> huge amount of time for large filesystems, never changes unless
> the size of the filesystem itself changes.  That means we can
> store it in memory and only recalculate if the filesystem has
> been resized (almost never).
> 
> It is based on ext3 but is trivally updated to ext4.  It also
> fixes a minor problem that we never update the on-disk superblock
> free blocks/inodes counts until the filesystem is unmounted.
> While not fatal, we may as well update that on disk when we have
> the information, and it makes things like debugfs and dumpe2fs
> report a bit more accurate info.
> 
> I'd be happy if someone could update this to the latest kernel and
> for ext2 and ext4 also.
> 

I forward ported it to latest + did the same for ext2 and ext4 also.
Compiles fine. I will post them tomorrow after little testing.

Thanks,
Badaru

      reply	other threads:[~2007-07-05  3:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-04 22:23 [PATCH] speed up statfs Andreas Dilger
2007-07-05  3:51 ` Badari Pulavarty [this message]

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=1183607467.29435.6.camel@dyn9047017100.beaverton.ibm.com \
    --to=pbadari@gmail.com \
    --cc=adilger@clusterfs.com \
    --cc=linux-ext4@vger.kernel.org \
    /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