lkml.org 
[lkml]   [2012]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RFC: Link Time Optimization support for the kernel

* Andi Kleen <andi@firstfloor.org> wrote:

> This rather large patchkit enables gcc Link Time Optimization (LTO)
> support for the kernel.
>
> With LTO gcc will do whole program optimizations for
> the whole kernel and each module. This increases compile time,
> but can generate faster code.

By how much does it increase compile time?

How much faster does kernel code get?

Last time I checked LTO optimizations (half a year ago) it
resulted in significantly slower build times.

I tried out and measured the LTO speedups and was less than
impressed by them - a lot of build time increase for not much
increase in performance. There was also visible, ongoing
maintenance cost.

The combination of these seemed like a show-stopper.

It's obviously an optimization feature we should consider, but
we really need hard numbers to make a cost/benefit analysis.

Thanks,

Ingo


\
 
 \ /
  Last update: 2012-08-20 10:21    [W:0.437 / U:1.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site