From: Andi Kleen <andi@firstfloor.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Andi Kleen <andi@firstfloor.org>,
mmarek@suse.cz, linux-kbuild@vger.kernel.org,
linux-kernel@vger.kernel.org, Andi Kleen <ak@linux.intel.com>,
hubicka@ucw.cz
Subject: Re: [PATCH] lto: Add __noreorder and mark initcalls __noreorder
Date: Sat, 11 Apr 2015 01:02:36 +0200 [thread overview]
Message-ID: <20150410230236.GZ2366@two.firstfloor.org> (raw)
In-Reply-To: <20150410143629.aaba355c08d3b71e5c1cddd0@linux-foundation.org>
On Fri, Apr 10, 2015 at 02:36:29PM -0700, Andrew Morton wrote:
> On Thu, 9 Apr 2015 01:50:23 +0200 Andi Kleen <andi@firstfloor.org> wrote:
>
> > > Head is spinning a bit. As this all appears to be shiny new
> > > added-by-andi gcc functionality, it would be useful if we could have a
> > > few more words describing what it's all about. Reordering of what with
> > > respect to what and why and why is it bad. Why is gcc reordering
> > > things anyway, and what's the downside of preventing this. Why is the
> > > compiler reordering things rather than the linker. etc etc etc.
> >
> > Ok, let me try.
>
> That was super-useful, thanks. I slurped it into the changelog -
> maybe one day it will provide material for Documentation/lto-stuff.txt.
>
> Big picture: do you have a feeling for how much benefit LTO will yield
> in the kernel, if/when it's all completed?
At least nothing of the stuff I usually run seems to be very kernel compiler
dependent in performance. I think other people may benefit from it.
Just looking at the code it is often a lot better.
We've had great results in code size reduction for small systems though.
I also found a range of bugs in the kernel which is good.
The merge is also nearly finished, only a smaller number of patches
left. There are some future technologies which could benefit from it
too.
There is still some compile time penalty, although it got a lot better
with 5. I wouldn't expect developers to use it day-to-day, but it can
be a good release mode.
I think it's a good thing to have now, just for the benefits for
shrinking kernels.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.
prev parent reply other threads:[~2015-04-10 23:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 13:17 Andi Kleen
2015-04-08 22:31 ` Andrew Morton
2015-04-08 23:50 ` Andi Kleen
2015-04-10 21:36 ` Andrew Morton
2015-04-10 23:02 ` Andi Kleen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150410230236.GZ2366@two.firstfloor.org \
--to=andi@firstfloor.org \
--cc=ak@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=hubicka@ucw.cz \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome