From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934997AbdBQU42 (ORCPT ); Fri, 17 Feb 2017 15:56:28 -0500 Received: from mout.gmx.net ([212.227.15.19]:52965 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934271AbdBQU41 (ORCPT ); Fri, 17 Feb 2017 15:56:27 -0500 Message-ID: <1487364947.2871.3.camel@gmx.de> Subject: Re: [RT] lockdep munching nr_list_entries like popcorn From: Mike Galbraith To: Sebastian Andrzej Siewior Cc: Peter Zijlstra , Thomas Gleixner , RT , LKML Date: Fri, 17 Feb 2017 21:55:47 +0100 In-Reply-To: <1487268380.15359.4.camel@gmx.de> References: <1487224986.5258.45.camel@gmx.de> <1487235000.5258.48.camel@gmx.de> <20170216110618.GC6557@twins.programming.kicks-ass.net> <1487256179.28442.8.camel@gmx.de> <20170216145354.unz44uocud4ybrfq@linutronix.de> <1487268380.15359.4.camel@gmx.de> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ZVEKNY6B+1A5onwbn9lmKiQ4Yi1mbp3vgdbgtvd/w2HKLR0DwEV fQQZV6HwE/qcC31SX6wDs5LJHciFv1mU3rhbHBjsBjc8AnGswguSuPVfqVAtMxHCPY+Ww7L T9RzWny+A1es+F0Wgw+n3Echv6EByHtyeunitb43aZcMloLfEsi0YzS3aIFE/TugOwF97ax H0lOiDz5WFdWE1jtJUkoQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:UrXnxnsRArc=:vuC/K73SPd+ci2e59B4wZQ tmsUFDpaG3NUHspGg79WAT2jvOx8XvmXhcLZSStEAM6ISv3vxgfZ6qJEAryxxWnRcu0cS6bEi nmgqhsPij1mOE14zPVPiRL52y06dGjkdP4/6fRtJxVeDasSoI6jWqr9uO6cp/nQ1jOdOYMRaM vVy7/ShRzT81rjMcLXaCOLqcjzggRi+cpazcjF5SK0k02p7cILKlJnNdiUTFQGRnOWw094KFM mAGdj6DfmkCKicyHb5AquAGf72evJUzQtK2SHuGYYuw0eEN7/M3Tcs+WaLjbJlhf/kRmS+y0U TvcDYJS9/cuKTyJHIxGzJ85FxqS1i+q/N6AaArMuXFG5aaxIuR9lVEeFR6uIy4J9TVvDT1Ars ABGEniTO3Qkn5HLbYZNHHtlXtGlpyT/R53R6a5pPNh79UKrfDCZrvod01hs68uMaT508Ciov+ 5bdTS9xk8/GdJwYWmwQbOP19Rt7Qsxpa/LZrXgFpM4hjfCcxb1xf2EKe+h74OETXQUqvTMKSQ IRNyG+u0A1vvvhEEK2F84Vr59JBS0tyRsHAsAtLQPo7h+Q5AmDVl7KF0lknwvKHoq5CdUNMR0 FnnWXDZZnG2egnKf+eo+vOaVTpQ4jJnOH40lqdDM9hnmQrlB824603MWcd/UzM3/emgsQ3WH8 l/cNTxXCfSpXtyo/o41aatyEkzHRZApirDfNqYsx5+aDAqWZkRPbdAOOIaqL7Tbu5kQoYeSW9 C1Efa/NinsJJdw3BagfYMmp3ZNqSVLJ48rJ0Zq5r1ZmOmAuJxa11pGXN6uF+W15lXLY4ev4pS eSnYkVO Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2017-02-16 at 19:06 +0100, Mike Galbraith wrote: > On Thu, 2017-02-16 at 15:53 +0100, Sebastian Andrzej Siewior wrote: > > On 2017-02-16 15:42:59 [+0100], Mike Galbraith wrote: > > > > > > Weeell, I'm trying to cobble something kinda like that together using > > > __RT_SPIN_INITIALIZER() instead, but seems mean ole Mr. Compiler NAKs > > > the PER_CPU_DEP_MAP_INIT() thingy. > > > > > > CC mm/swap.o > > > mm/swap.c:54:689: error: braced-group within expression allowed only > > > inside a function > > > > so this is what I have now. I need to get the `static' symbol working > > again and PER_CPU_DEP_MAP_INIT but aside from that it seems to do its > > job. > > ... > > Yeah, works, I should be able to do an ltp run with stock lockdep > settings without it taking it's toys and going home in a snit. > > berio:/sys/kernel/debug/tracing/:[0]# !while > while sleep 60; do tail -1 trace; done > <...>-10315 [064] d...1.. 226.953935: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14223 > w-13148 [120] d...111 287.414978: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14465 > w-16492 [089] d...111 347.128742: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14653 > (starts kbuild loop) > btrfs-transacti-1964 [016] d...1.. 411.101549: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 17011 > <...>-100268 [127] d...112 472.271769: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 18153 > w-18864 [011] d...1.. 534.386443: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 18543 > <...>-50390 [035] dN..2.. 597.794164: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 18765 > <...>-80098 [127] d...111 659.912145: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 18977 > checkproc-11123 [017] d...1.. 721.483463: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 19247 > -0 [055] d..h5.. 782.685953: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 19383 > <...>-93632 [055] d...111 835.527817: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 19441 And now Thomas's patch. Spiffiness. Now to start ltp. berio:/sys/kernel/debug/tracing/:[0]# !while while sleep 60; do tail -1 trace; done <...>-12462 [105] d...1.. 211.489528: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 12847 btrfs-transacti-3136 [002] d...211 272.672777: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 12947 irq/155-eth2-Tx-4495 [096] dN..213 332.035236: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 13001 (starts kbuild loop) <...>-44245 [087] d...114 396.892748: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 13917 <...>-105411 [067] dN..211 457.708259: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14367 w-21800 [113] dN..2.. 519.231735: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14449 modpost-31558 [020] d....11 576.065855: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14601 kworker/dying-11860 [133] d...112 637.170497: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14679 <...>-118853 [055] d....11 703.884755: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14759 <...>-52143 [090] d...1.. 767.624735: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14813 <...>-71788 [126] d...1.. 829.160330: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14857 kworker/u289:5-2991 [002] d...1.. 892.402939: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14883 sh-15106 [008] d...211 953.172196: add_lock_to_list.isra.24.constprop.42: nr_list_entries: 14937 >