Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp488150pxb; Wed, 24 Feb 2021 07:23:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwciDzfJ52OILNP/hAY8+rO32o0HVyQ+1HK3Tcx4VQp49W7GY6Di13DQOa+xsO2N+ZGkdM7 X-Received: by 2002:a17:906:50e:: with SMTP id j14mr31863659eja.140.1614180228752; Wed, 24 Feb 2021 07:23:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614180228; cv=none; d=google.com; s=arc-20160816; b=wXeMp8ncIPbFhDVNaegUUthRfSzutyMWh0T1SKnztLwOiAkd38U7zn4G9kl0JWz6Vd gguCPEzWD/c4ujq+wpKjp4vAViydjb5d41W2hffe4H0ks3FtFMuL+xFYzWIOj5a9xcrC OUh3gpiUXRFqhfdazJqEjxGm0JG2HjAE0EjlM8YBCivOP2HcgRgsRDTUXA9YlR8Olqhf MxwDwzmiM6PAOPVQ1rL/tcZ+5InkMOWMMspCPhsEQR8gHvZv7HBCiRnpW5hrj0SGDdAn woIil2GdSCSoCJRYWNAf/uy4exH/LShuTQizYLIIVDln+GF6kGdq7s8gnIqpkm1AFCRC YueA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=nBJFqzrN6jnQUKlC2pIdB9ZwCwmrDFNMpBpnfM4zvvA=; b=t6283hSSI8Zh2GTJJFF8IrcTLGCvKDxY2J01NYdKZqZvv/bvo46g27YeKKBWGAqwN2 w5OcF4sTmTag0MsJSK6nVBWxPB5gbommIHUiUghO6Ahww61TaCqUb5So9V+egGClY690 WdwDqshC86vPKKwHA+DFvITbzU4TLCBHGOKpCdOpXSP5zIjZ+HCo5ZEId7FlaQ1vcU5d TxstOiCE972eT664WavPe3YKNW+tEjDVTcDdDVipRGgQ5uoZ2i7oP/VesUSHhbNXwau9 BfsCheQgpDjsJ5S/TjuxbApzGrEtFe1bmluNoGBKIlSRysSAK6ZAXYo8NzCDQSLC7Ndl 7jig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=B9zAzzj+; 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 g4si1281725edr.324.2021.02.24.07.23.21; Wed, 24 Feb 2021 07:23:48 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=B9zAzzj+; 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 S234595AbhBXPVK (ORCPT + 99 others); Wed, 24 Feb 2021 10:21:10 -0500 Received: from conssluserg-01.nifty.com ([210.131.2.80]:37774 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232582AbhBXOmo (ORCPT ); Wed, 24 Feb 2021 09:42:44 -0500 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 11OEfEA4016787 for ; Wed, 24 Feb 2021 23:41:15 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 11OEfEA4016787 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1614177675; bh=nBJFqzrN6jnQUKlC2pIdB9ZwCwmrDFNMpBpnfM4zvvA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=B9zAzzj+592w4RSX2PDyezmJR3MYP9ex4U/Kn9mO9PHS6FOCgG99/3Fy8ooasUrsl cMATAAf+TNB9kJFirvdacMB+ihzTJAry3Gvhvi7htzv2UDCKvUi38NHbPJ2CM8QEZz TAksW5orabYSfMxMRNJmb05UXw7oi5e47G9n6Y4AJtYFB+ZtMYxxRdLTZevue6R+Wu FIFY7b5M77UeIkb8xXs9yFHMZ7wJzCyBdVWmtkF7CikQkOaKF8PrUBF4h31dsuvU45 ZdegMpk9ZinzUq933XG7LUcEKpw6NfskZDH2bL7k0wFo4rH9CBHVaB4vCSyaNpsrfz ftrgBrghLTrJw== X-Nifty-SrcIP: [209.85.216.42] Received: by mail-pj1-f42.google.com with SMTP id s23so1469344pji.1 for ; Wed, 24 Feb 2021 06:41:15 -0800 (PST) X-Gm-Message-State: AOAM533+EGAt/BroTSxMzWLhvkind+HeLXZ3+qo3asjFprGMOXaiTI+F a9vnGTQPD8qL5rWar1oXUQgH0tRFiblQac8IaBo= X-Received: by 2002:a17:90a:bc8e:: with SMTP id x14mr4612742pjr.153.1614177674458; Wed, 24 Feb 2021 06:41:14 -0800 (PST) MIME-Version: 1.0 References: <20210223200130.GA8059@lst.de> In-Reply-To: From: Masahiro Yamada Date: Wed, 24 Feb 2021 23:40:36 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Modules updates for v5.12 To: Jessica Yu Cc: Linus Torvalds , Christoph Hellwig , Linux Kernel Mailing List , =?UTF-8?Q?=EF=BF=BCMiroslav_Benes?= , Emil Velikov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 24, 2021 at 5:33 PM Jessica Yu wrote: > > +++ Linus Torvalds [23/02/21 12:03 -0800]: > >On Tue, Feb 23, 2021 at 12:01 PM Christoph Hellwig wrote: > >> > >> Does your build now enable TRIM_UNUSED_KSYMS but previously didn't by > >> chance? > > > >Crossed emails. > > > >This is plain "make allmodconfig", so yes, now it will enable TRIM_UNUSED_KSYMS. > > > >This is unacceptably slow. If that symbol trimming takes 30% of the > >whole kernel build time, it needs to be fixed or removed. > > [ Adding Masahiro to CC ] > > It looks like CONFIG_TRIM_UNUSED_KSYMS had been hiding behind > CONFIG_UNUSED_SYMBOLS all this time, and once the EXPORT_UNUSED_SYMBOL > stuff was removed, it exposed that option to be selected by > allyesconfig. That option had previously caused build issues on > powerpc on linux-next, so I had temporarily marked that as BROKEN on > powerpc until Masahiro's fix landed in linux-next. I was not aware of > the additional build slowdown issue :/ In any case, Christoph's > suggestion to invert the option sounds reasonable, since the mips > defconfig selects it, it does not seem totally unused. TRIM_UNUSED_KSYMS builds the tree twice by its concept. [1] 1st build At this point of time, we do not know which EXPORT_SYMBOL() is needed. So, EXPORT_SYMBOL() is enabled, or noop'ed based on the temporal guess. (in the fresh build, EXPORT_SYMBOL() are all nooped.) [2] Get the list of symbols needed to resolve all symbol references. (this information is collected in include/generated/autoksyms.h) [3] 2nd build Rebuild the objects whose EXPORT_SYMBOL() must be flipped. The build system cleverly tracks which object needs rebuild. So, building the tree twice does not mean the build cost is twice. But, 30% increase is reasonable. In my understanding, TRIM_UNUSED_KSYMS is used by Android. (Generic Kernel Image) So, we should revive it. -- Best Regards Masahiro Yamada