From: john stultz <johnstul@us.ibm.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>,
Keith Maanthey <kmannth@us.ibm.com>,
Eric Whitney <eric.whitney@hp.com>
Subject: Re: [PATCH] jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stop
Date: Mon, 02 Aug 2010 16:02:32 -0700 [thread overview]
Message-ID: <1280790152.3966.14.camel@localhost.localdomain> (raw)
In-Reply-To: <1280753306-23871-1-git-send-email-tytso@mit.edu>
On Mon, 2010-08-02 at 08:48 -0400, Theodore Ts'o wrote:
> By using an atomic_t for t_updates and t_outstanding credits, this
> should allow us to not need to take transaction t_handle_lock in
> jbd2_journal_stop().
>
> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
> Cc: John Stultz <johnstul@us.ibm.com>
> Cc: Keith Maanthey <kmannth@us.ibm.com>
> Cc: Eric Whitney <eric.whitney@hp.com>
> ---
>
> It would be interesting to get some quick performance tests with and
> without this patch on (a) dbench w/ PREEMPT-RT, (b) Keith's 8-way, and
> (c) Eric's 48-core machine. I have some other ideas for how to improve
> things in start_this_handle(), but they're going to be tricker, and I
> want to do some hard testing using xfstests on a big machine to make
> sure this is really safe before I keep going. This has passed light
> testing, but I haven't had a chance to do stress tests on a large SMP
> machine yet. That'll come later this week, hopefully.
So sort of quick and dirty numbers. I'd not trust them too far, but
gives a basic feel for how things are doing.
So this is dbench #s on an 8-core blade:
1 2 4 8
vfs+j_state lock 401 724 1203 1142
vfs+j_state lock+atomic 408 745 1266 1263
no vfs, no ext4 patches 410 711 1071 434
no vfs, j_state lock 411 714 1113 806
no vfs, j_state lock+atomic 411 723 1149 816
Graphically:
http://sr71.net/~jstultz/dbench-scalability/graphs/2.6.33-rt-ext4-atomic/preempt-rt-ext4-dbench.png
So the vfs-scalability patchset was reverted from -rt due to some
difficult stability issues that were seen in testing. Hopefully we'll be
able to sort them out when -rt moves forward to 2.6.35 or later and we
can use Nick's more cleaned up current queue rather then my poor forward
port of his work from last September.
Anyway, I wanted to show how this patch affects dbench numbers on -rt
both with and without the vfs-scalability patches and the earlier
j_state lock change.
The vfs versions use the 2.6.33-rt23 kernel, and the non vfs use the
2.6.33-rt26 kernel.
>From these numbers, it looks like the atomic variables are a minor
improvement for -rt, but the improvement isn't as drastic as the earlier
j_state lock change, or the vfs scalability patchset.
Didn't run into any troubles with this patch in my testing, but again,
it was a fairly quick set of runs.
thanks
-john
next prev parent reply other threads:[~2010-08-02 23:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-02 12:48 [PATCH] jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stop Theodore Ts'o
2010-08-02 23:02 ` john stultz [this message]
2010-08-03 0:06 ` Ted Ts'o
2010-08-03 0:53 ` john stultz
2010-08-03 2:52 ` john stultz
2010-08-03 16:06 ` Ted Ts'o
2010-08-03 19:22 ` Eric Whitney
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=1280790152.3966.14.camel@localhost.localdomain \
--to=johnstul@us.ibm.com \
--cc=eric.whitney@hp.com \
--cc=kmannth@us.ibm.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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;
as well as URLs for NNTP newsgroup(s).