Re: [GIT] kbuild/lto changes for 3.15-rc1

From: Andi Kleen
Date: Wed Apr 09 2014 - 11:43:47 EST


> 1) There was very little if any measurable LTO runtime speedup,
> despite agressive GCC options and despite user-space generally
> offering more optimizations opportunities than kernel space.

See Honza's email. There are lots of benefits in various
large projects.

Also BTW compiler technology is not static. It's often
hard to interpolate from older releases, and to see
project benefits for different projects.

> 2) LTO with current build tools meant a 1.5x-3x build speed
> slowdown (on a very fast box with tons of CPUs and RAM),

I see about 40-60% build time penalty with gcc 4.9 / single link.

> which made LTO essentially a non-starter for development
> work. (And that was with the Gold linker.)

I see LTO as a "release build", as opposed to a development build.
I don't think it's a big problem in such a model. If you don't
like that model, just don't enable it.

> I'm willing to be convinced by actual numbers, and LTO tooling might
> eventually improve, etc., but right now LTO is much ado about very
> little, being pushed in a somewhat dishonest way.

The concrete tangible advantages at this point are code size
on smaller configs. There are a variety of users who use it for that.

I think it's worth merging for that alone.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/