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

From: Ingo Molnar
Date: Tue Apr 15 2014 - 02:01:08 EST



* Josh Triplett <josh@xxxxxxxxxxxxxxxx> wrote:

> > and it slows down kernel development'.
>
> No, it doesn't slow down development builds; it makes kernel builds
> slower if and only if LTO is turned on, which most kernel developers
> won't need to do.
>
> On the other hand, distro and embedded kernels can do so for final
> builds, and developers pushing to minimize the kernel can turn it on
> for their own work as needed.

1)

If LTO will be as fragile for the kernel as it is for user space, then
low level developers will be advised to enable it during testing.

2)

Developers and testers tend to clone distro configs to get to a
working .config: via 'make localconfig' and similar methods. This
means that options like this tend to spread into development
environments.

I saw that with DEBUG_INFO frequently: I detest the option with a
passion because it's such a drag on build time (but not as slow as
LTO), still time and time again it shows up in a .config of mine.

So the "it does not slow down development" argument is simply not
true. It clearly has such a cost.

LTO might still be a net win in the end, if the upsides are strong
enough, but I am wary of arguments that try to ignore or underestimate
the weak points.

Thanks,

Ingo
--
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/