Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1081865iog; Fri, 17 Jun 2022 23:30:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sTkOIUU4oyll9Kj4F02qv9soHbeqHAsueQ3B4i3jK8W1TAvh3JcEPgiL/9SnaMG5YqD0H6 X-Received: by 2002:a17:907:6e01:b0:704:8c0e:872f with SMTP id sd1-20020a1709076e0100b007048c0e872fmr12191285ejc.387.1655533823915; Fri, 17 Jun 2022 23:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655533823; cv=none; d=google.com; s=arc-20160816; b=IuyExojv11lhJsqB4SI3TzRvdS2qCi0CyIYz5MDsZOKkUsLPh2YY3nfYR3+dO/kfM3 XZvGrm715vF2zT/5zUVYtfH49AzW+855YZyCLDpWZr+pVfKNY3TLcpC9VNh/SaiCNl9A cVoEuPqvGinciQyoC0Z5O33K7coq4FoYAAIgV/rXLO1J/augavWWa9CGDhyt5JMSqxmD WYA6QrPBJS7KjWD5Q7BZRka8LFa/MrvYbej3y6LvJ6VATASPPk9EXbibOSfta5GtNuBC G6wGHooUjcM882S7m44MoSExA4AIk8/RlXirEUCfva2wmdATNRiv2tIljSzp68bL2/Xa vcEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :dkim-signature; bh=DoXrvmARzpcu70b8xixzSRDkUeRb3CHYW5cwPvaz0gg=; b=FKA6Q16TEGINAyeGbJNyWmP2z9MRM2mGieZFbVizY51sKrMt27cuPG+m1lWpCK2gvV KtcE9Ff8ZsI/SImFhx3pzvyls6Gp4uwqnytDZoK29UJAIdEdtY91gMFZ0LZ0yJfY3ofJ bFxVceNN1Pmk/kxtkUrJH1318uH/z1uAAbn2ioYngJSGY1aYJ6z6UJndCj5EssjagQS5 khyRvzrvrYCfLRROsLPMEL1feF4oRDXvEmUi34nG4tVELjo89YypoSy8QlTydX0dGxIM C3I2kt3lMmW/bg/BUxcpsQDlDBshjDfwwbQKFXBIlo3ugB0Zlr8PipX/+8dqcw5YeQtR Qrqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SxLEpZGr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc19-20020a170907169300b00715e127b66dsi8177955ejc.898.2022.06.17.23.29.51; Fri, 17 Jun 2022 23:30:23 -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=@gmail.com header.s=20210112 header.b=SxLEpZGr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232741AbiFRF6e (ORCPT + 99 others); Sat, 18 Jun 2022 01:58:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbiFRF6c (ORCPT ); Sat, 18 Jun 2022 01:58:32 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E90544EDD4; Fri, 17 Jun 2022 22:58:30 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id y17so4239714ilj.11; Fri, 17 Jun 2022 22:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=DoXrvmARzpcu70b8xixzSRDkUeRb3CHYW5cwPvaz0gg=; b=SxLEpZGrEW0KeSJ94LopSHGMJ8WsaYKF5m7zNWZfbfF1DR6YkCsziWy2VS0pFvxglQ /QAkZMfGZyInSCg8e6FS/L+he5TGVgTwB+QX1nWKq2JYI5WVqvAvFiv0oYCLpS06L5Yd 6l75DEmB+EDeuD2/IVePgX+lP+8zoe9/tBQI82KKZ1pbfEFsqdMtP47MBNR/B7LWkvLg vp/TOUe4nqvJ+UACN5tiWGSQnOOczfdlIEY9OHUTg25WE+9s6l9LbfM4ZytT4WOj9qQK eo5UOv/0SH3DAB7TcFgpXXXl4HDe2oeVqfsW2trtjNWwRWpLQdNPD5hYCUoQXtkHnJ8Z jCKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=DoXrvmARzpcu70b8xixzSRDkUeRb3CHYW5cwPvaz0gg=; b=FGSEQkLQLds0MwYLyI8EiKUGCs8uztIu7n9kC5vdIWoRqIFrnRHpEkeTsn2a6aeONU 8f118yymV8/op2IO3NUmQMway/BEyRuGa0uhJZb6AN8/Latk8VI7N8ek6pci4NMulOZ6 uI6KElmkQiF8Mt+0ZsxJqlPehQAP8/ewCrNsw0IR5HLweXupgr4VbuWqK6shBNriImK1 lc3WK/UNZDANzg0K+yeM3hQuS1BAf3DIcw1v10uUaJPw5K8RXZLG1yZifZW76A5R9c6g ySpTJ61k7Qr1f9w+Wexw9GBE4SUHSemfXEd0cySt9zh9hxaQi0MV9T+Use0cR2i8M6B8 Fe9w== X-Gm-Message-State: AJIora/m+qX7/Z8ISNnzWrtX2Gd+esrgbv5Hu7tqMqyY/oXCyFj4F4XI f93DYTIwzzr6f1rgvO7GAoo78o50WioTcHfsq24= X-Received: by 2002:a05:6e02:f86:b0:2d8:dc34:8694 with SMTP id v6-20020a056e020f8600b002d8dc348694mr4171997ilo.245.1655531909882; Fri, 17 Jun 2022 22:58:29 -0700 (PDT) MIME-Version: 1.0 References: <20220616104541.16289-1-jslaby@suse.cz> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Sat, 18 Jun 2022 07:57:54 +0200 Message-ID: Subject: Re: [PATCH] kbuild: pass jobserver to cmd_ld_vmlinux.o To: Nathan Chancellor , Nathan Chancellor Cc: Nick Desaulniers , Masahiro Yamada , Jiri Slaby , Linux Kbuild mailing list , LKML , Michal Marek , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 9:34 PM Nathan Chancellor wrote= : > > 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 w= rote: > > > > > > > > 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 wr= ote: > > > > > > > > > > > > > > Until the link-vmlinux.sh split (cf. the commit below), the l= inker was > > > > > > > run with jobserver set in MAKEFLAGS. After the split, the com= mand in > > > > > > > Makefile.vmlinux_o is not prefixed by "+" anymore, so this in= formation > > > > > > > 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. th= e > > > 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 =3D +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-samitol= vanen@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 =E2=89=A1): 287.744 s [User: 23497.818 s= , System: 4444.602 s] > > Benchmark 2: 5.19-rc2 > Time (abs =E2=89=A1): 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. > @Nick Desaulniers I applied the patch. Seen from build-time not really measurable. Noticed some binary size reduction. @Nathan Chancellor Yeah, that I was thinking, too. This is due to the number of driver (and modules) increased. And of course the changes to kbuild-system. It's hard to compare. Surely, ancient CPU (10 years) plus HDD etc. -Sedat-