From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757726AbdJMJfR (ORCPT ); Fri, 13 Oct 2017 05:35:17 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:55134 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751633AbdJMJfP (ORCPT ); Fri, 13 Oct 2017 05:35:15 -0400 X-Google-Smtp-Source: AOwi7QDE1RG0rNBdgv/t8qBXvtbAusHTHVeWtK3NZV0GzWLGdGGoLcwmdh2vpHKWiClWWiqZE3d3ig== Date: Fri, 13 Oct 2017 11:35:16 +0200 From: Johan Hovold To: Peter Zijlstra Cc: Johan Hovold , Byungchul Park , Ingo Molnar , linux-kernel@vger.kernel.org, tglx@linutronix.de, linux-mm@kvack.org, kernel-team@lge.com, Tony Lindgren , Arnd Bergmann , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thorsten Leemhuis Subject: Re: Dramatic lockdep slowdown in 4.14 Message-ID: <20171013093516.GB17356@localhost> References: <20171013090333.GA17356@localhost> <20171013090744.lvvc66qexmomsd5f@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171013090744.lvvc66qexmomsd5f@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 13, 2017 at 11:07:44AM +0200, Peter Zijlstra wrote: > On Fri, Oct 13, 2017 at 11:03:33AM +0200, Johan Hovold wrote: > > Hi, > > > > I had noticed that the BeagleBone Black boot time appeared to have > > increased significantly with 4.14 and yesterday I finally had time to > > investigate it. > > > > Boot time (from "Linux version" to login prompt) had in fact doubled > > since 4.13 where it took 17 seconds (with my current config) compared to > > the 35 seconds I now see with 4.14-rc4. > > > > I quick bisect pointed to lockdep and specifically the following commit: > > > > 28a903f63ec0 ("locking/lockdep: Handle non(or multi)-acquisition > > of a crosslock") > > > > which I've verified is the commit which doubled the boot time (compared > > to 28a903f63ec0^) (added by lockdep crossrelease series [1]). > > > > I also verified that simply disabling CONFIG_PROVE_LOCKING on 4.14-rc4 > > brought boot time down to about 14 seconds. > > > > Now since it's lockdep I guess this can't really be considered a > > regression if these changes did improve lockdep correctness, but still, > > this dramatic slow down essentially forces me to disable PROVE_LOCKING > > by default on this system. > > > > Is this lockdep slowdown expected and desirable? > > Expected yes, desirable not so much. Its the save_stack_trace() in > add_xhlock() (IIRC). > > I've not yet had time to figure out what to do about that. Thanks for confirming. Do you think it makes sense to track this as a 4.14 regression to avoid having others spend time on tracking this down meanwhile? (Adding Thorsten on CC.) Johan