Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1728456rwb; Thu, 17 Nov 2022 00:43:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7GERUYOU4NFnKTE+LPiQkxd1OGAiIf4D9ar770xckW7ch9M+e2w4NinFbO/SlyKQGQ/0j5 X-Received: by 2002:a62:1e03:0:b0:56b:d68e:41f6 with SMTP id e3-20020a621e03000000b0056bd68e41f6mr1992235pfe.36.1668674624213; Thu, 17 Nov 2022 00:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668674624; cv=none; d=google.com; s=arc-20160816; b=WPS4ElVjEUNXaO9i96/Lvk30cZYfM3E+z+jpbHicC2CCdGBVwSg/ABhOtUvAql5NqF A7TTU1TomjSCYclNwS4B7DfkfE7O0MR07mavCMQ+Lq9fO3S+mn3BzZVrR4rHdhrVK7T2 fzvuZ6YPm9npH2mGunVrR+0mnmMFVP7mrKS9F/jLisym8iMQhmOBBmX9zgkSyyJ0xRuf xWGlUz6xfDH6cQX/eHl38Ae7jzA3qVtXE+P4bFT/WKAZJHW5S9+02+c5CxOiySU7MIGj eMfr/bhWpOFNa7vTKEvwJBuRdGRsKi2eGzMeq14fV87lcucKhMdKb3s5kdJmANyn9IJb ZRqg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NNbNOwbcUMHNS/7bdatGU27KOLFjcCDm3+xJi7GtDC0=; b=DhWNHPVd9OUKXO6boabmtUooqhEqqLmFRY2lDYaOW84jn9CmAcjWR10okfC9qFnY46 3illBmW2HCkuYNvCyoDawa+HFOSjW3Ov1+EhZT85q2ofNl+mSzxn+JtDlqEFtuX1DySL HOvABb85N9idJ4gi7EG9DMG+XcBma5YHd2ZzfHom96PFOdfpvoDLy6Fy9gcX6BE/1i58 gLAarblfI3HtUDZOMUNoeJXzQ7e7EUFmli8hkxwmUOu+I/nal6A1C2Oc+OOeg5Pgv0Kv VoQz5FLjB0Zx6IDVD5iqVF5IIqvYHYek9FiKKb4EZurzkU/gLSgA05jX1xsstLDelJg5 PmSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hC6iPKJY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a170902cf0900b00186c3afe179si424687plg.422.2022.11.17.00.43.32; Thu, 17 Nov 2022 00:43:44 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=hC6iPKJY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239548AbiKQI2i (ORCPT + 92 others); Thu, 17 Nov 2022 03:28:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239536AbiKQI21 (ORCPT ); Thu, 17 Nov 2022 03:28:27 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 138C8729BE for ; Thu, 17 Nov 2022 00:28:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=NNbNOwbcUMHNS/7bdatGU27KOLFjcCDm3+xJi7GtDC0=; b=hC6iPKJY6glbHhdE1Bp6WRha0d mKKJIGEP/FeAZFXUUpITJng8JyaIqt05TwzACd5kfaZvY16QEljkpXzta4UQPAGHZVKc2TH6dzpsz To87fPuqRA6/wX7/x6AUC1baXFt5U/sRlXEmwwmx/nakdSHiUgWC+9rX7u46XyckUspnh36tlIsP1 DBR7jgtp+xmeDzKhbgmJ3JisEDbdyaI+Kdvrs3FwPlMwSqkH8+W2jsu4ZZnngc71AhFKvIXgvVcvj XP+jt9ha75z0rB+tJxeubQNq0A4z11aFRQoXHwGiPnmqNFnKwSm7fDc844P/Xx5OvNrIvr3sT4o/E Vf/RCLTQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovaFj-000nuI-38; Thu, 17 Nov 2022 08:28:07 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 55722300E52; Thu, 17 Nov 2022 09:28:00 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3896C200FC693; Thu, 17 Nov 2022 09:28:00 +0100 (CET) Date: Thu, 17 Nov 2022 09:28:00 +0100 From: Peter Zijlstra To: Ard Biesheuvel Cc: "Jiri Slaby (SUSE)" , linux-kernel@vger.kernel.org, Alexander Potapenko , Alexander Shishkin , Alexei Starovoitov , Alexey Makhalov , Andrew Morton , Andrey Konovalov , Andrey Ryabinin , Andrii Nakryiko , Andy Lutomirski , Arnaldo Carvalho de Melo , Ben Segall , Borislav Petkov , Daniel Borkmann , Daniel Bristot de Oliveira , Dave Hansen , Dietmar Eggemann , Dmitry Vyukov , Don Zickus , Hao Luo , "H . J . Lu" , "H. Peter Anvin" , Huang Rui , Ingo Molnar , Jan Hubicka , Jason Baron , Jiri Kosina , Jiri Olsa , Joe Lawrence , John Fastabend , Josh Poimboeuf , Juergen Gross , Juri Lelli , KP Singh , Mark Rutland , Martin KaFai Lau , Martin Liska , Masahiro Yamada , Mel Gorman , Miguel Ojeda , Michal Marek , Miroslav Benes , Namhyung Kim , Nick Desaulniers , Oleksandr Tyshchenko , Petr Mladek , "Rafael J. Wysocki" , Richard Biener , Sedat Dilek , Song Liu , Stanislav Fomichev , Stefano Stabellini , Steven Rostedt , Thomas Gleixner , Valentin Schneider , Vincent Guittot , Vincenzo Frascino , Viresh Kumar , VMware PV-Drivers Reviewers , Yonghong Song Subject: Re: [PATCH 00/46] gcc-LTO support for the kernel Message-ID: References: <20221114114344.18650-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Mon, Nov 14, 2022 at 08:40:50PM +0100, Ard Biesheuvel wrote: > On Mon, 14 Nov 2022 at 12:44, Jiri Slaby (SUSE) wrote: > > > > Hi, > > > > this is the first call for comments (and kbuild complaints) for this > > support of gcc (full) LTO in the kernel. Most of the patches come from > > Andi. Me and Martin rebased them to new kernels and fixed the to-use > > known issues. Also I updated most of the commit logs and reordered the > > patches to groups of patches with similar intent. > > > > The very first patch comes from Alexander and is pending on some x86 > > queue already (I believe). I am attaching it only for completeness. > > Without that, the kernel does not boot (LTO reorders a lot). > > > > In our measurements, the performance differences are negligible. > > > > The kernel is bigger with gcc LTO due to more inlining. > > OK, so if I understand this correctly: > - the performance is the same > - the resulting image is bigger > - we need a whole lot of ugly hacks to placate the linker. > > Pardon my cynicism, but this cover letter does not mention any > advantages of LTO, so what is the point of all of this? Seconded; I really hate all the ugly required for the GCC-LTO 'solution'. There not actually being any benefit just makes it a very simple decision to drop all these patches on the floor.