All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Whitney <eric.whitney@hp.com>
To: Ted Ts'o <tytso@mit.edu>
Cc: john stultz <johnstul@us.ibm.com>,
	Ext4 Developers List <linux-ext4@vger.kernel.org>,
	Keith Maanthey <kmannth@us.ibm.com>
Subject: Re: [PATCH] jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stop
Date: Tue, 03 Aug 2010 15:22:21 -0400	[thread overview]
Message-ID: <4C586C6D.6090508@hp.com> (raw)
In-Reply-To: <20100803160611.GB3387@thunk.org>



Ted Ts'o wrote:
> On Mon, Aug 02, 2010 at 07:52:29PM -0700, john stultz wrote:
>> With the non-vfs scalability patched kernels, we see that the j_state
>> lock and atomic changes pull start_this_handle out of the top contender
>> handle, but there is still quite a large amount of contention on the
>> dput paths.
>>
>> So yea, the change does help, but its just not the top cause of
>> contention when aren't using the vfs patches, so we don't see as much
>> benefit at this point.
> 
> Great, thanks for uploading the lockstats.  Since dbench is so
> metadata heavy, it makes a lot of sense that further jbd2
> optimizations probably won't make much difference until the VFS
> bottlenecks can be solved.
> 
> Other benchmarks, such as the FFSB benchmarks used by Steven Pratt and
> Eric Whitney, would probably show more of a difference.
> 
> In any case, I've just sent two more patches which completely remove
> any exclusive spinlocks from start_this_handle() by converting
> j_state_lock to a rwlock_t, and dropping the need to take
> t_handle_lock.  This will add more cache line bouncing, so on NUMA
> workloads this may make things worse, but I guess we'll have to see.
> Anyone have access to an SGI Altix?  I'm assuming the old Sequent NUMA
> boxes are long gone by now...
> 
> 					- Ted

Ted:

The 48 core system I'm running on is an eight node NUMA box with three 
hop worst case latency, and it tends to let you know if you're bouncing 
cache lines too enthusiastically.  If someone's got access to a larger 
system with more hops across the topology, that would naturally be even 
better.

I'm taking my 2.6.35 ext4 baseline now.  It takes me about 36 hours of 
running time to get in a complete set of runs, so with luck I should 
have data and lockstats to post in a few days.

Eric

P.S.  And yes, I think I'll make a set of non-accidental no-journal runs 
this time as well...



      reply	other threads:[~2010-08-03 19:19 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
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 [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=4C586C6D.6090508@hp.com \
    --to=eric.whitney@hp.com \
    --cc=johnstul@us.ibm.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 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.