Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp745690iog; Fri, 17 Jun 2022 12:39:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ufdW8wLlyvkXC8LLdQmwZn7mKOK1dESaURfkRR4AaLNMpuAkcui1QQNon0KIQhYUVSiJSH X-Received: by 2002:a05:6a00:1a47:b0:522:93a6:4751 with SMTP id h7-20020a056a001a4700b0052293a64751mr11695192pfv.78.1655494773713; Fri, 17 Jun 2022 12:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655494773; cv=none; d=google.com; s=arc-20160816; b=Xy3KA5Irks8jpVOyZcpWMpLExmB9IauCld/S2y8zQsabspAgJDaU/o3O44g8N5fMxG 50pxM2KdM/HgSuGKHOAzOhG4RgiHJWGLDHNDIeJh1kb5pmnr0f2exG5wRXognabWewUJ chXd+eoFV0OOepzUyhewSWfbiqRdJ89IpdzkA4P0kXTA7V56/u2Hq7T2Z+DVTficGcyQ u+iUxv3ZzpTdCzaCajl6NThLwD1r/UEoHvx1noWJtWko7Sj7GFSIYUPcjYrWpZSLJKBP Yh/LBWo/jrktHHtp2V19W2tqz1xe13cEWeQpB2Jk5CDVuSFAQsJYI37yQt4r+ruiFdWI 7Spg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tK4gi3Mb8XFhZwwFcQSUbwOQZTotdZvMX8EFtvySM2I=; b=KK/SYV3/r9Jaj/45FDnOhXUbgBqwBaVgJJ/Si1TDB3POIQNmu18DPaXw1VW9P83qUE 9DEVdqfUPz85UO82ERpnof5VfTo7XHyqqe4NULo/93Pfr8bT2sr2NveJtzYSyZgm3MmK zhNpohYPl1s9kU8I+6mC+RQYF+ZvbdQPLRwRr/s6sUgQVBG2lgpGYg9W5gdFQJ+0j1x3 7EBk8uaCKn2c0wiWgXNZWtaBIX1cp+tuGfI/bmJ5QcbzXyoggClNj9fC67ejE01ZUlH2 YrnS84g13luCgjehKHI/ajLLUEC51z9oR0THPgSmM40Ouj1BBgGyk/WfFm10AAYUL3oo iEdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tr+mboi+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o15-20020a170902d4cf00b0016759c39ce7si8459096plg.204.2022.06.17.12.39.21; Fri, 17 Jun 2022 12:39:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tr+mboi+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S242953AbiFQTeT (ORCPT + 99 others); Fri, 17 Jun 2022 15:34:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241748AbiFQTeN (ORCPT ); Fri, 17 Jun 2022 15:34:13 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D97E57B31; Fri, 17 Jun 2022 12:34:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id CC4C6CE2CE5; Fri, 17 Jun 2022 19:34:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9133AC3411B; Fri, 17 Jun 2022 19:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655494444; bh=iGbceJbT8v7gImOkGLsLLbOe6rqxDg6MXNzjf6wMTlE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tr+mboi+5Q+1X6yERhmLUcPCoKaCo2o6pwAJtIXvNbyRKoH1Mod1CV/k3UuHSbkZN 01Ba15USpGkIWGRvKxhJ+uMDiOi99sn/Kue56xTqG75aGZCUQ/cToelqXwODW3X97a cBlpvobQr+WUDkIQzx1+UDWNWZ+w2I4ssLbOZu2ExfQTS4+ft2ONW3AiZnOJ5QzEqS zrZxyEo2qgO5l4Hannpw80+3uFH09mROeN1NoQrt57yxi/foSc02I3dFtngtGFrHXu br2oUouVBfjvg2ifOBWoyd22GXPsUkcZKeDqRMs/aqa0tvEa/vr+MFhWN3EVLnx43F FLqHMWGpnrPbw== Date: Fri, 17 Jun 2022 12:34:01 -0700 From: Nathan Chancellor To: Sedat Dilek Cc: Nick Desaulniers , Masahiro Yamada , Jiri Slaby , Linux Kbuild mailing list , LKML , Michal Marek , Sami Tolvanen Subject: Re: [PATCH] kbuild: pass jobserver to cmd_ld_vmlinux.o Message-ID: References: <20220616104541.16289-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 17, 2022 at 07:50:58PM +0200, Sedat Dilek wrote: > On Fri, Jun 17, 2022 at 6:32 PM Nick Desaulniers > wrote: > > > > On Fri, Jun 17, 2022 at 3:35 AM Sedat Dilek wrote: > > > > > > On Fri, Jun 17, 2022 at 12:53 AM Sedat Dilek wrote: > > > > > > > > On Thu, Jun 16, 2022 at 4:09 PM Sedat Dilek wrote: > > > > > > > > > > On Thu, Jun 16, 2022 at 12:45 PM Jiri Slaby wrote: > > > > > > > > > > > > Until the link-vmlinux.sh split (cf. the commit below), the linker was > > > > > > run with jobserver set in MAKEFLAGS. After the split, the command in > > > > > > Makefile.vmlinux_o is not prefixed by "+" anymore, so this information > > > > > > is lost. > > > > > > > > > > > > Restore it as linkers working in parallel (esp. the LTO ones) make a use > > > > > > of it. > > > > TBH, I agree with Masahiro. I didn't understand this comment "esp. the > > LTO ones." Jiri, can you clarify what you mean here? > > > > > [ CC Nathan and Sami ] > > > > > > I re-checked as my build-time takes approx. 15mins more than usual > > > with Linux v5.17. > > > > > > [ Perf - seconds time elapsed ] > > > v5.17: approx. 12500 > > > v5.19: approx. 13500 > > > > > > +1.000 secs = +16,67mins So roughly 7.5% increase if I did my math correctly? > > Does this patch make a difference? > > https://lore.kernel.org/linux-kbuild/20220616195759.3214538-1-samitolvanen@google.com/ > > > > Running a new build... I did a quick benchmark with Fedora's clang 14.0.0 and I didn't see an increase of that proportion with your configuration (only about 1%, which I would expect would be within the noise for new drivers and such): Benchmark 1: 5.17 Time (abs ≡): 287.744 s [User: 23497.818 s, System: 4444.602 s] Benchmark 2: 5.19-rc2 Time (abs ≡): 290.027 s [User: 24567.290 s, System: 4834.458 s] Summary '5.17' ran 1.01 times faster than '5.19-rc2' Not to say that there is not an issue but it might be more visible with slower hardware. Cheers, Nathan