Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp757806pxj; Thu, 10 Jun 2021 11:58:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgWQMI8gRZqkv2B1VNQ3EAgeXaTCn92/mnd8wp9e/bf4HZyQ/k/w+n2fjjbY55FbxkyTRI X-Received: by 2002:aa7:d6cc:: with SMTP id x12mr933667edr.55.1623351522710; Thu, 10 Jun 2021 11:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623351522; cv=none; d=google.com; s=arc-20160816; b=SeZMNzFfSAd7UUVRLdsmgQPs6jU4/hcjDW7FTYaCadkvctLShrHUEXQxtfQk9EwifL 82wkTsYfKJHaCU35g5D2EUvJPtZCBsIPGUCPXGUglOpjlW6/WN7+KhfcchY9u1cYjRMM hPc2cdKX0sJ0scQ48yYiM37SUN7OzReGISL75dyv+HkqMbBE3E/rhonD+SAoTixcukC4 x+YRHQ3+5/3mNmcQqzIoTSNRkVUL7IVjNh0sc/t/7VxhmIeTZk/+5bA46z381QPza5w4 JRrfkIyGBg3PNsu7q+CU8eTv0dZXoHxWG+kyg/8jCdFgYOvzq39YHlPtb8LLutLfa9Cx qUJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ta/sy07EbJMJaDdlKCgO39WptGkGfTdcH+9YRnZadn0=; b=dfF51uMSO/eHyNQanxc9RvtSsLvbyFNxAFs9eKTclOQ9getA+onbC/Mt+xA6ZkMxyD k593ak5MqptKpeoFsSsZIdX4tIaUDjKUlSKHspZv1+A4Wuex60NZvNpISz/yep6AxR9C hQJSf4PHWtC2ywLr5+dH62v6lzlNVNm7XtTVC0Z/T5ssSDVVW6jGRzNKB/pGC2RrlMLv LNHcLPpqJKTMKawK3BsriJInlJrd6Y+CUkqeumaICzxznT6TX0OJr3vIVm6DwPGwIyn0 t3Qw8cMbYn4RYsOB/3AaIXoC66JEad8s/EVO9pClJsBcHvIWF5Nwa+KENybinOEADQCJ 5JCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UVcjrF6t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si3371652ejd.407.2021.06.10.11.58.05; Thu, 10 Jun 2021 11:58:42 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UVcjrF6t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbhFJS4s (ORCPT + 99 others); Thu, 10 Jun 2021 14:56:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:50170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbhFJS4r (ORCPT ); Thu, 10 Jun 2021 14:56:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6C399613B0; Thu, 10 Jun 2021 18:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623351290; bh=UgDy/YIt0wcpF3ZFwRGLuTVpW0LrD/15mzM1MbySke0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=UVcjrF6tcIWAwppxNnC9vo54gFl1xDCWWPPdU+nAG9e76MrBYDxIm8NtmJgvu2o8f 4aCh5Dd7Qbbrw6LnWSrcqXxlzga8tCfsVxodq4mX4rD3/lCRUwIm1NDKQZGfZf6aPo +ySG5os3M0Pm88ldw+khux3FgUFGfEmlLjEqNOuO3V4sursnspIM9yDAkDDguLl70V Y4LCnWliy4i0+mPqLglSbDhZxGIeORHh8sBJ8W1heMFyt2VX+WMVHO6Xmj6nWrzFqg J/RTBZJP36ppI1QeGgWiDk5dK4NYqJ2j0LFoGvwyD1DRkzhHmuFWkwGJFr6Lrqwp0S WYdvFpnL1933Q== Subject: Re: [PATCH 01/13] objtool: Rewrite hashtable sizing To: Peter Zijlstra Cc: x86@kernel.org, jpoimboe@redhat.com, jbaron@akamai.com, rostedt@goodmis.org, ardb@kernel.org, linux-kernel@vger.kernel.org, samitolvanen@google.com, ndesaulniers@google.com, clang-built-linux@googlegroups.com References: <20210506193352.719596001@infradead.org> <20210506194157.452881700@infradead.org> From: Nathan Chancellor Message-ID: <7165b24e-0628-c273-f1e2-67a75358991f@kernel.org> Date: Thu, 10 Jun 2021 11:54:50 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/10/2021 11:43 AM, Peter Zijlstra wrote: > On Thu, Jun 10, 2021 at 11:14:51AM -0700, Nathan Chancellor wrote: > >> This patch as commit 25cf0d8aa2a3 ("objtool: Rewrite hashtable sizing") >> in -tip causes a massive compile time regression with allmodconfig + >> ThinLTO. > > Moo... the allyesconfig builds I used it on were much faster, but that > was on regular GCC vmlinux.o after linking. > >> Adding Sami because I am not sure why this patch would have much of an impact >> in relation to LTO. https://git.kernel.org/tip/25cf0d8aa2a3 is the patch in >> question. >> >> If I can provide any further information or help debug, please let me know. >> >> If you are interested in reproducing this locally, you will need a >> fairly recent LLVM stack (I used the stable release/12.x branch) and to >> cherry-pick commit 976aac5f8829 ("kcsan: Fix debugfs initcall return >> type") to fix an unrelated build failure. My script [2] can build a >> self-contained toolchain fairly quickly if you cannot get one from your >> package manager. A command like below will speed up the build a bit: > > Would something like llvm-13 from Debian be good enough? > > $ clang-13 --version > Debian clang version 13.0.0-++20210418105309+a0898f0cecc7-1~exp1 > Target: x86_64-pc-linux-gnu > Thread model: posix > InstalledDir: /usr/bin > Yes, that would work. That is what we use in our CI. Looks like Sami gave a reply that explains it. Cheers, Nathan