Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp184300ybs; Tue, 26 May 2020 06:47:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVNji821UCVQsklhxTU8HuuQqveNPnLztvlNiQaL7/1csd9ZKtyssgveQZklKVGq1JkEyS X-Received: by 2002:a50:f057:: with SMTP id u23mr19476842edl.238.1590500850965; Tue, 26 May 2020 06:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590500850; cv=none; d=google.com; s=arc-20160816; b=dSNEkCs3S/MI08XEcsy9ttPu1vcjkwM9EozLc4WyeRzhKFSUN7Ph5Q1xVGtCaB5rmT guTfdPnZ7CuNC3F9obznWYdPXfd4SYHn30fQ+krenPRZZlO5W3ZklMF0W2GAdUQ8aGcO A58CWg8eMOONbJ0PGoua+LbQqn3jR+BKGQ94y+JXgT4gq30JZ+07eOouW9LPnqnSHPvr fe2fc2rO8pJAY/7zRgk7KWUhViiiqSvw7W90nZPKYROrljwMjV+94rEnv36rV8owi1sE W7zvTtbHxPibpncMuAYkbi3Can2aWEeLZmDq2C87yKYDf7YWpFIAKVwqMJvTlHz8jiVR Hjpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=4CKhBtuNMDgyW4jX0W6TS+npQ1MRH07JFIe9TY9Pcbc=; b=itiv8PMdg7zpPxcLfvrEpUqRcps3mVUh6ufHSpKwU7Y/ZEGShfqG/J9BLYalmVEu/n meWD7CJnt4RU+M6jHYyJGZepD+bm5ePpuKeE7KIaUDFbDzYL35IMB+I2rf4pzDPaV0uq ELYgaVwsLEuwDRHLF7/4NfSoBEJybaxgWRckXfjBWSPpTlcTazN3PlK/xckhN9WdDI2A 10DhAErXCHpTUHZ19bORA0Mfpz7IGMWmWhk+Qwa17LdZ0y1D4szgxgaVIKvUMDvu68hR 70M6fgHWHIUUu4GeP5oPGEWu+aDTnL5eseJMOKfLkLm9ldP6DxDrkNbHrWJgv4Iaf0u1 yltA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si12284210ejg.687.2020.05.26.06.47.07; Tue, 26 May 2020 06:47:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732056AbgEZMTi (ORCPT + 99 others); Tue, 26 May 2020 08:19:38 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:45847 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731015AbgEZMTh (ORCPT ); Tue, 26 May 2020 08:19:37 -0400 Received: from mail-qt1-f175.google.com ([209.85.160.175]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPSA (Nemesis) id 1M1HmE-1jbtrZ3BjG-002saG for ; Tue, 26 May 2020 14:19:35 +0200 Received: by mail-qt1-f175.google.com with SMTP id i68so15891567qtb.5 for ; Tue, 26 May 2020 05:19:35 -0700 (PDT) X-Gm-Message-State: AOAM532Ae+BXV0G+53KiIvJJEjthnSLnIHhOyLXc+LPrWg84Q9XeZZ3g /YT1d8h6D7+YIrj7CC7ZSGfc5Nbwr0OIB5MQIKQ= X-Received: by 2002:ac8:1844:: with SMTP id n4mr902345qtk.142.1590495574644; Tue, 26 May 2020 05:19:34 -0700 (PDT) MIME-Version: 1.0 References: <20200521142047.169334-1-elver@google.com> <20200521142047.169334-10-elver@google.com> <20200526120245.GB27166@willie-the-truck> In-Reply-To: <20200526120245.GB27166@willie-the-truck> From: Arnd Bergmann Date: Tue, 26 May 2020 14:19:18 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -tip v3 09/11] data_race: Avoid nested statement expression To: Will Deacon Cc: Nick Desaulniers , Marco Elver , "Paul E. McKenney" , Dmitry Vyukov , Alexander Potapenko , Andrey Konovalov , kasan-dev , LKML , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , clang-built-linux , Borislav Petkov Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:SE/gvWfeE/SIzGMqtl2A7Q68ELumP+NF2vxdMaVGdsuooOGS7oQ AXlaZqD/Bvl2LS/gorZuENzakgLPCaNxABbf/iOiwKlkaj9v4/0F33VLlLKNnxO834yrgHL WhryL4Pxw1lA7IXqT4maY0Q5nVyS0yMg+npx6BqfK3yBUEvA+A2jODF16EQj3L43lP7wxQS ljzAhrAgXEGuT1KbISNFA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ELzj+VvYnQo=:185uAJ9MGsse8OYnf45WCV 4/2P+DWDdBDCb4LaKhYWsNhzLY3coCVLT3wvgST7mZ4HLcUGoSjuXCltA/jZph2p6nSx8+kmy PQaWu2F9Iz6m4SIb+gnCAUEVOd0U1CvuwHdcetWp4P38aafPd1GZRh1RN32WHPPpBpinXCchl jCRZNhPPUIiWkprcZPQrSFOzS4myHO8qtIlwhZgyyG/pT8e+kqkuCJR2qvbPu8XEAgusllWcD 3Tdxfpn/DIZ9gDZ+HKy4p5BQ2vbQCHh0qX6mQvQuCp3iZf767hZ2WocP4H/5D6P8ro+esa4SU JkySshoi9VDQt06l1g6MVlxhvadGXv010K/qO5H8R9gHRK53+nCGT4grN3AwPja5hA4961jZj nMYwUt/3E8vkPLTbsL/6Cltd/fWpM4V5ugx6IuIg/WfHlbf9XgRfzqZ0oZiInLZOCZd0I7S8+ vo9FywNV56sFbsPBgAB0Azfpo9O+r8c0R5uBYFyk1d3uY1emtutFZaLS4sB5eeWkhpl+iOS66 yepci+ri1jTcRNOY+DDHyhTHc9wMW3bwFoVMVrXc83RlwlJITNkcOpuhRVM1kOl6HOm3dMi4X gG0P8TytIqtNy0RRDfFGFX/EU//EtKIPYgxwzusQdT/HWQlRVKMSK7xriLDoDkeAMhIjg7U3i Bw9AH1iiL1mp3WGpCCk9Sh7Zq8lUeuvFfqcOvMLrIMpjZm7/lskUzC7flCMXv43GCMrKwVCM6 zb/ekI+BM4IDu18NO7nAchcYGpleF5O/oji/DLouC8bICgCtAxikpjajZ596DWXVEF4rI04Ku bxhCDObEo0YLy3fwyAUfY1B+rvyM02QpHfdpmDGJzrolMmsUXE= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 2:02 PM Will Deacon wrote: > On Tue, May 26, 2020 at 12:42:16PM +0200, Arnd Bergmann wrote: > > > > I find this patch only solves half the problem: it's much faster than > > without the > > patch, but still much slower than the current mainline version. As far as I'm > > concerned, I think the build speed regression compared to mainline is not yet > > acceptable, and we should try harder. > > > > I have not looked too deeply at it yet, but this is what I found from looking > > at a file in a randconfig build: > > > > Configuration: see https://pastebin.com/raw/R9erCwNj > > So this .config actually has KCSAN enabled. Do you still see the slowdown > with that disabled? Yes, enabling or disabling KCSAN seems to make no difference to compile speed in this config and source file, I still get the 12 seconds preprocessing time and 9MB file size with KCSAN disabled, possibly a few percent smaller/faster. I actually thought that CONFIG_FTRACE had a bigger impact, but disabling that also just reduces the time by a few percent rather than getting it down to the expected milliseconds. > Although not ideal, having a longer compiler time when > the compiler is being asked to perform instrumentation doesn't seem like a > show-stopper to me. I agree in general, but building an allyesconfig kernel is still an important use case that should not take twice as long after a small kernel change regardless of whether a new feature is used or not. (I have not actually compared the overall build speed for allmodconfig, as this takes a really long time at the moment) Arnd