lkml.org 
[lkml]   [2013]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: performance regressions by "seqcount: Add lockdep functionality to seqcount/seqlock structures"
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


\
 
 \ /
  Last update: 2013-11-14 02:41    [W:0.306 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site