linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yuanhan Liu <yuanhan.liu@linux.intel.com>
To: John Stultz <john.stultz@linaro.org>
Cc: Fengguang Wu <fengguang.wu@intel.com>,
	Huang Ying <ying.huang@intel.com>,
	linux-kernel@vger.kernel.org, Ingo Molnar <mingo@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>
Subject: Re: performance regressions by "seqcount: Add lockdep functionality to seqcount/seqlock structures"
Date: Thu, 14 Nov 2013 09:16:31 +0800	[thread overview]
Message-ID: <20131114011631.GA11857@yliu-dev.sh.intel.com> (raw)
In-Reply-To: <5283B9A0.2080502@linaro.org>

On Wed, Nov 13, 2013 at 09:40:48AM -0800, John Stultz wrote:
> On 11/13/2013 01:14 AM, Yuanhan Liu wrote:
> > Hi,
> >
> > FYI, we found some performance regressions caused by commit 1ca7d67c
> > ("seqcount: Add lockdep functionality to seqcount/seqlock structures")
> 
> So this is expected. seqlock readers are usually very very cheap

Yeah, sorry for not mentioning that we knew it's expected, but we want
to show you the exact number of slow downs.

Thanks.

	--yliu
> operations, and we're now doing lockdep tracking on every iteration
> around the loop. As the lockdep help states:
> 
>   | If you say Y here, the lock dependency engine will
> do                   |  
>   | additional runtime checks to debug itself, at the
> price                 |  
>   | of more runtime overhead.
> 
> 
> So now since we're also tracking seqlocks in addition to spinlocks, it
> creates more overhead.
> 
> 
> Disabling CONFIG_LOCKDEP should restore performance.
> 
> thanks
> -john

  reply	other threads:[~2013-11-14  1:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-13  9:14 performance regressions by "seqcount: Add lockdep functionality to seqcount/seqlock structures" Yuanhan Liu
2013-11-13 17:40 ` John Stultz
2013-11-14  1:16   ` Yuanhan Liu [this message]
2013-11-15 19:24 ` Paul E. McKenney
2013-11-20  9:57   ` Yuanhan Liu
2013-11-20 12:48     ` Paul E. McKenney

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=20131114011631.GA11857@yliu-dev.sh.intel.com \
    --to=yuanhan.liu@linux.intel.com \
    --cc=fengguang.wu@intel.com \
    --cc=john.stultz@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=ying.huang@intel.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;
as well as URLs for NNTP newsgroup(s).