From: Andreas Dilger <adilger@clusterfs.com>
To: Badari Pulavarty <pbadari@us.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
lkml <linux-kernel@vger.kernel.org>,
ext4 <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] ext2 statfs improvement for block and inode free count
Date: Fri, 20 Jul 2007 03:01:19 -0600 [thread overview]
Message-ID: <20070720090119.GD5992@schatzie.adilger.int> (raw)
In-Reply-To: <1184858282.18188.83.camel@dyn9047017100.beaverton.ibm.com>
On Jul 19, 2007 08:18 -0700, Badari Pulavarty wrote:
> In my setups (4 & 8-way), I didn't measure any significant performance
> improvements (in any reasonable workload). I see some decent
> improvements on cooked-up (1 million stats) tests :(
I don't have any numbers to publish, but this did help internally
for large filesystems.
> > Well there's a tradeoff here. At large CPU counts, percpu_counter_sum()
> > becomes quite expensive - it takes a global lock and then goes off fishing
> > in every CPU's percpu_alloced memory.
> >
> > So there is some value of (num_online_cpus / sb->s_groups_count) at which
> > this change becomes a loss. Where does that value lie?
>
> Yes. I debated long time whether I should submit this or not - due to
> very reason. Old code wasn't holding any locks. I don't have any high
> count CPU machine (>8way) with me. I will request for time on one.
Considering that large (16TB) filesystems have 128000 groups in them,
I'd suspect that iterating over all of the group descriptors is a loss
until you have an unusually huge number of CPUs. What was even worse
was before caching "overhead" it walked the groups list twice (once
for "overhead" and once for the per-group summary).
It might be that for the filesystem sizes ext2 is used on this isn't
a win, but I didn't submit the patch for ext2...
> I added WARN_ON() to see if percpu sum doesn't match
> computed sum. I saw few stacks in a 24 hour run of fsx runs.
That could just be because the filesystem is changing between these
two checks...
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
next prev parent reply other threads:[~2007-07-20 9:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-14 1:36 Badari Pulavarty
2007-07-19 3:18 ` Andrew Morton
2007-07-19 15:18 ` Badari Pulavarty
2007-07-20 9:01 ` Andreas Dilger [this message]
2007-10-16 22:00 ` Andrew Morton
2007-10-16 22:18 ` Badari
2007-10-17 23:15 ` Andreas Dilger
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=20070720090119.GD5992@schatzie.adilger.int \
--to=adilger@clusterfs.com \
--cc=akpm@linux-foundation.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbadari@us.ibm.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
Powered by JetHome