Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp734678imm; Wed, 10 Oct 2018 03:32:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV60HDNxEJXhP9NMCx0xMlJUM6tIW6PhJo951IeoUPn0CggF18rCSXRP/PG4D3bhlkVSVvtuo X-Received: by 2002:a63:e442:: with SMTP id i2-v6mr12505710pgk.381.1539167555820; Wed, 10 Oct 2018 03:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539167555; cv=none; d=google.com; s=arc-20160816; b=hgAKFuu8UkYuIe0U+tnZuvJw9D97kB+essd5N4nVFcU9jowE6UswjApxMUOnXsiFcQ R3NdYw4dfyjumQJ29AVdENhN/rNH5y/Wq9BP4e0FXudaVdMXwylgbAPmOIjRC0AOz/9x YFMgYxAO/z1l9fS693GgC4wSFEVEh4VYgnFPEla1pNp3qNBgJxyZpVDXjU83sJUVK++O 5bo8Wku26vw3y9WOSu2Qe/vIx3z0mqq7zjR+yQX2oD00Zl6Gz3XNcLUq1XqF4l/oY519 XSCJQgTnwa/5LpI/lnZl7M38HjaMGpEgjczd92XEEAzGzZmUcsIEto6zN9xcjNk43r/T 5Zfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=f9N81ju7XXpk/U9JVWChllC/NP5i1isRqM9L/l+LzW4=; b=IzZaKF2ncrR1zofUWYweKfzEHhT96KMvWcoQyC5fIrwbe/K68EMTbXl3OdNcCOORsn n39sSo1RA2NiAkQybUXbw58nZMS1wePGZGdV9RIVm5AvTf+j7nUSg7hBYLuP5rZc1bm/ 8IB4E++KBprhC2qrvJK5JbZxw8P3lClh5PitIDcNktE/Y3wEl2K/cwvgFv8/HPzPhcuq /3w0At3Gh2d1qMTNHeNDrApv96YG39LUfbDwRru7p2sYkahMRZBbBJ0bRRQEZprl4iL6 A/e4D+2PFBdt7up6o1pBk7dp0eqmVHmFAQ5c5oOPybZrkHaY8yuVStJ/7bDvFoSCliN1 5Www== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y76-v6si18607190pfd.254.2018.10.10.03.32.20; Wed, 10 Oct 2018 03:32:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726670AbeJJRxR (ORCPT + 99 others); Wed, 10 Oct 2018 13:53:17 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50068 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbeJJRxR (ORCPT ); Wed, 10 Oct 2018 13:53:17 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 43AED80D; Wed, 10 Oct 2018 03:31:46 -0700 (PDT) Received: from [10.1.196.75] (e110467-lin.cambridge.arm.com [10.1.196.75]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D788C3F5BC; Wed, 10 Oct 2018 03:31:44 -0700 (PDT) Subject: Re: [PATCH] Doc: lockdep: add information about performance impact To: Lukasz Luba , Peter Zijlstra Cc: corbet@lwn.net, b.zolnierkie@samsung.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, mingo@redhat.com, linux-arm-kernel@lists.infradead.org References: <20181009153935eucas1p2dec146575ed5fefd4a0b2b6cb9bac056~b_ujkjRd31303013030eucas1p2C@eucas1p2.samsung.com> <20181009154359.GB5728@hirez.programming.kicks-ass.net> <20181009160633eucas1p1a597c95256e64bf01de32366afdc59dd~b-GGjOUFN2705527055eucas1p1b@eucas1p1.samsung.com> From: Robin Murphy Message-ID: <8a6bed3c-dac5-7031-eedd-2eb5bcc18478@arm.com> Date: Wed, 10 Oct 2018 11:31:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181009160633eucas1p1a597c95256e64bf01de32366afdc59dd~b-GGjOUFN2705527055eucas1p1b@eucas1p1.samsung.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/18 17:06, Lukasz Luba wrote: > Hi Peter, > > On 10/09/2018 05:43 PM, Peter Zijlstra wrote: >> On Tue, Oct 09, 2018 at 05:39:27PM +0200, Lukasz Luba wrote: >>> This patch add some warning related to performance drop. >>> It should be mentioned that this is not for free >>> and the platfrom resources (cache, bus interconnect, etc.) >>> will be used more frequently. >> >> To me this reads a bit like: water is wet. >> >> Is this really needed? >> >> > Well, it would be good to know what is the performance drop > (10% or 20% or x3 times) when you are enabling different debug options. > I have spent some time analyzing these cache and bus strange behavior. > Now the developers would know that LOCKDEP might cause constant trashing > of your cache in some use cases. Fair enough, but this is the wrong place for that. Anyone who's got as far as reading how the internals of lockdep work can probably already figure out that that brings a non-trivial overhead, whereas Joe Developer wondering why his kernel is slow seems unlikely to happen across this document by chance. And the people shipping devices with PROVE_LOCKING enabled because it happened to mask some tricky bug, well, they know what they did ;) If you want to highlight to unwitting users that a tweaking a particular config knob has a significant performance hit, at least put the warning next to said knob, i.e. in the Kconfig help. For an example, DMA debug comes to mind. Robin.