lkml.org 
[lkml]   [2017]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] lockdep: do not count lock class operations without CONFIG_DEBUG_LOCKDEP
On Fri, May 19, 2017 at 10:06:01AM +0300, Konstantin Khlebnikov wrote:
> Currently this counter shown in /proc/lockdep if CONFIG_DEBUG_LOCKDEP=y
> This patch disables it completely if this option is disabled.
>
> This counter might be useful for debugging lockdep itself, but for normal
> debugging it seems useless. Lockstat provides more detailed statistics.
>
> This atomic_inc is a hot spot inside __lock_acquire() for debug kernel.
>
> With patch "netperf -H localhost" shows some boost: 2500 -> 2600

Nothing against these patches, but I do wonder why you're performance
optimizing debug kernels ;-)

\
 
 \ /
  Last update: 2017-05-19 11:09    [W:0.334 / U:1.012 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site