Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp198786rdb; Thu, 22 Feb 2024 00:20:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWZjgMf9vk1BpDwIQFsiiwPjtOyYbHR0M5iZ6ZF0/LjjyTG3YtfaYsHMjfk9J+lZ92RfQIl5L4366j5fiShv1eKuDcWZIjNSZefs5wWgQ== X-Google-Smtp-Source: AGHT+IHqMCQY01rwHu+NspH3caL/2brVww3DcNMzN2AwSYKqD183Bxz90iwhyqjaIEjKkQBDkneJ X-Received: by 2002:ac8:5f96:0:b0:42d:adef:bf62 with SMTP id j22-20020ac85f96000000b0042dadefbf62mr24280327qta.14.1708590057512; Thu, 22 Feb 2024 00:20:57 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a9-20020ac87209000000b0042e2aa4a8e0si4777180qtp.49.2024.02.22.00.20.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:20:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76080-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@arndb.de header.s=fm3 header.b=enXFF73o; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm1 header.b=GxjZVZIt; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-76080-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76080-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A5BF1C21847 for ; Thu, 22 Feb 2024 08:20:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C9AD19452; Thu, 22 Feb 2024 08:20:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="enXFF73o"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="GxjZVZIt" Received: from fout5-smtp.messagingengine.com (fout5-smtp.messagingengine.com [103.168.172.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 069A417C7C; Thu, 22 Feb 2024 08:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.148 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708590050; cv=none; b=RnkejLYOc+/pBiCzMfbzZMleV3moyV/5IW4bB7Vd+ZZEF5gsEqf8KEyCPtgZRXPVoWcbrhm8XIbRuA9Si/RLmQhglvRICjwp2XF2fM8V6I63U+YAGwKwLghPU5BEtZSESMC/6LjjpYiHG7VdLzKcFfQBD+nDfY1/dz3iMKghRX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708590050; c=relaxed/simple; bh=4MClZqbuQ1LXpOwb1LZxVl0+YjjYmGDFWMdoAB/Z15M=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=PxWGCtT4z0q8c5s9kTeF/X/Zn/ztm+5uW2CM0Wevx1ke2RQPoeCX23NNXpY7AUwcM/R6J3RZKQNduQ0u5ra8+yFaNjyNXCuYeQN/6cCWAcXlMoLyNPA23Hh8lCh4EJmzfjBaF7lRnWNa332brDyoxjxBeq1CwfM50iG4reMmWxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=enXFF73o; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=GxjZVZIt; arc=none smtp.client-ip=103.168.172.148 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id EC0CA13800A6; Thu, 22 Feb 2024 03:20:46 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 22 Feb 2024 03:20:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1708590046; x=1708676446; bh=kxGPWuzo0SG9vjq2VYft63fIP589ClwRv7B1K2FKclE=; b= enXFF73o5R+6qA/OcZqDSjng/cnvSbChsHJ+4GwY3PrsrxKc/jANGyg8bOL8oTbH i+Ro1fLXVXn0aW713bbIRvCvUCnHgW5JHcxuiSrvAbnFuz0ucaOK2yWZfEopwkbW Mb1x0RYgBoZUOsBRTlfxdxvXe5Qzs12v/jNaL77riiRLiqIWtEn5eJTqvw8VcIbi vBfL9nyQS4Wq2Q9sM0HAJ0G+6xPBcbJD4rxDJw9fGitWMRzJ08F47EWvYCrNoiiL VG2aFwL7Z2gfTpFjNUCajzWJeu3FqOQDnfgWU/r+ic3ceZ6jzP+2iCTIvSwRxf3h 6hbMPWBLstXIgtpvohpt4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1708590046; x= 1708676446; bh=kxGPWuzo0SG9vjq2VYft63fIP589ClwRv7B1K2FKclE=; b=G xjZVZIt7dMNwUNN03o2kaxV9vfkhoD25WKVetSoQJapocStHxLPEzaC1/Bz/XP76 eiR3aa/Fb86l2e1QUBij9T1rWJVXPn/0fB7J/P1gbvXNAenPYIApM8BOlcKLN5vN iS+69XcvzCcgbTkEloRVq1NCj2RXgvb/NwDGdAi9EG1LaOilcxS5Np4kCGsAEeiu SFwZ9MFer1qaWFfvYZTKpRbAno2jpNL8+rc35dCpPh6Qn4rUkjyodrIsCeS7c0Il NLlGZSIiGPt9yHDQw9tYuKzLkWA264kA00w9XSYGgpY7Q72NXC6ZjppYH+n5fcjV 28UI1sd/rEn9KoFE7GM9w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefgdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7877CB6008D; Thu, 22 Feb 2024 03:20:46 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-153-g7e3bb84806-fm-20240215.007-g7e3bb848 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240221202655.2423854-1-jannh@google.com> <20240221202655.2423854-2-jannh@google.com> Date: Thu, 22 Feb 2024 09:20:26 +0100 From: "Arnd Bergmann" To: "Masahiro Yamada" , "Jann Horn" Cc: "Andrew Morton" , "Nick Desaulniers" , "Miguel Ojeda" , "Zhen Lei" , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH 2/2] kallsyms: build faster by using .incbin Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2024, at 05:06, Masahiro Yamada wrote: > On Thu, Feb 22, 2024 at 5:27=E2=80=AFAM Jann Horn w= rote: >> This change reduces the time for an incremental kernel rebuild >> (touch fs/ioctl.c, then re-run make) from 27.7s to 24.1s (medians >> over 16 runs each) on my machine - saving around 3.6 seconds. Nice! .. > This reverts bea5b74504742f1b51b815bcaf9a70bddbc49ce3 > > Somebody might struggle with debugging again, but I am not sure. > > Arnd? So far, I have not needed it again, but it's only been a year. > If the effort were "I invented a way to do kallsyms in > one pass instead of three", it would be so much more attractive. > > > I am not so sure if this grain of the optimization is exciting, > but I confirmed that a few seconds were saved for the defconfig. > > I am neutral about this. I think the time savings are worth it, especially since this is going to help anyone building on large machines where the compile stage is already optimized a lot but the link stage is limited by single-thread performance. Arnd