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

2014-04-15 Thread Ingo Molnar
* Markus Trippelsdorf wrote: > On 2014.04.15 at 20:19 +0200, Sam Ravnborg wrote: > > On Tue, Apr 15, 2014 at 01:36:02PM +0200, Markus Trippelsdorf wrote: > > > On 2014.04.15 at 13:19 +0200, Sam Ravnborg wrote: > > > > > > > > > > And while the code size reduction is less for MIPS than what othe

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

2014-04-15 Thread Markus Trippelsdorf
On 2014.04.15 at 20:19 +0200, Sam Ravnborg wrote: > On Tue, Apr 15, 2014 at 01:36:02PM +0200, Markus Trippelsdorf wrote: > > On 2014.04.15 at 13:19 +0200, Sam Ravnborg wrote: > > > > > > > > And while the code size reduction is less for MIPS than what others have > > > > reported for their platfor

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

2014-04-15 Thread Sam Ravnborg
On Tue, Apr 15, 2014 at 01:36:02PM +0200, Markus Trippelsdorf wrote: > On 2014.04.15 at 13:19 +0200, Sam Ravnborg wrote: > > > > > > And while the code size reduction is less for MIPS than what others have > > > reported for their platforms (I'm still investigating) is still is enough > > > that e

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

2014-04-15 Thread Markus Trippelsdorf
On 2014.04.15 at 13:19 +0200, Sam Ravnborg wrote: > > > > And while the code size reduction is less for MIPS than what others have > > reported for their platforms (I'm still investigating) is still is enough > > that embedded developers would commit murder for. > > I have experimented a little w

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

2014-04-15 Thread Sam Ravnborg
> > And while the code size reduction is less for MIPS than what others have > reported for their platforms (I'm still investigating) is still is enough > that embedded developers would commit murder for. I have experimented a little with a patch that links all of vmlinux in one step. I compared

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

2014-04-15 Thread Ralf Baechle
On Mon, Apr 14, 2014 at 06:00:04PM -0700, Josh Triplett 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, dis

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

2014-04-14 Thread Ingo Molnar
* Josh Triplett 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

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

2014-04-14 Thread Andi Kleen
> > 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 devel

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

2014-04-14 Thread Josh Triplett
On Mon, Apr 14, 2014 at 12:32:05PM +0200, Ingo Molnar wrote: > > * Markus Trippelsdorf wrote: > > > On 2014.04.09 at 08:01 +0200, Ingo Molnar wrote: > > > > > > * Andi Kleen wrote: > > > > > > > On Tue, Apr 08, 2014 at 03:44:25PM -0700, Linus Torvalds wrote: > > > > > On Tue, Apr 8, 2014 at 1

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

2014-04-14 Thread Ingo Molnar
* Markus Trippelsdorf wrote: > On 2014.04.14 at 12:32 +0200, Ingo Molnar wrote: > > > > * Markus Trippelsdorf wrote: > > > > > On 2014.04.09 at 08:01 +0200, Ingo Molnar wrote: > > > > > > > > * Andi Kleen wrote: > > > > > > > > > On Tue, Apr 08, 2014 at 03:44:25PM -0700, Linus Torvalds wro

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

2014-04-14 Thread Markus Trippelsdorf
On 2014.04.14 at 12:32 +0200, Ingo Molnar wrote: > > * Markus Trippelsdorf wrote: > > > On 2014.04.09 at 08:01 +0200, Ingo Molnar wrote: > > > > > > * Andi Kleen wrote: > > > > > > > On Tue, Apr 08, 2014 at 03:44:25PM -0700, Linus Torvalds wrote: > > > > > On Tue, Apr 8, 2014 at 1:49 PM, wr

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

2014-04-14 Thread Ingo Molnar
* Markus Trippelsdorf wrote: > On 2014.04.09 at 08:01 +0200, Ingo Molnar wrote: > > > > * Andi Kleen wrote: > > > > > On Tue, Apr 08, 2014 at 03:44:25PM -0700, Linus Torvalds wrote: > > > > On Tue, Apr 8, 2014 at 1:49 PM, wrote: > > > > > > > > > > In addition to making the kernel smaller a

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

2014-04-09 Thread Andi Kleen
> 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 compile

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

2014-04-09 Thread Markus Trippelsdorf
On 2014.04.09 at 08:01 +0200, Ingo Molnar wrote: > > * Andi Kleen wrote: > > > On Tue, Apr 08, 2014 at 03:44:25PM -0700, Linus Torvalds wrote: > > > On Tue, Apr 8, 2014 at 1:49 PM, wrote: > > > > > > > > In addition to making the kernel smaller and such (I'll leave the > > > > specific stats t

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

2014-04-08 Thread Ingo Molnar
* Andi Kleen wrote: > On Tue, Apr 08, 2014 at 03:44:25PM -0700, Linus Torvalds wrote: > > On Tue, Apr 8, 2014 at 1:49 PM, wrote: > > > > > > In addition to making the kernel smaller and such (I'll leave the > > > specific stats there to Andi), here's the key awesomeness of LTO that > > > you,

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

2014-04-08 Thread Andi Kleen
On Tue, Apr 08, 2014 at 03:44:25PM -0700, Linus Torvalds wrote: > On Tue, Apr 8, 2014 at 1:49 PM, wrote: > > > > In addition to making the kernel smaller and such (I'll leave the > > specific stats there to Andi), here's the key awesomeness of LTO that > > you, personally, should find useful and

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

2014-04-08 Thread Andi Kleen
Thanks Honza. Just one comment: > The runtime benefits are more visible on bigger, bloated and less > optimized projects than on hand tuned video encoder implementation. > I believe Kernel largely falls into hand tuned category despite its size. In my experience there's a lot of badly

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

2014-04-08 Thread Jan Hubicka
> Hi Linus, > > > So right now, I see several reasons not to merge it ("It's so > > experimental that we don't even want to encourage people to test it" > > I don't want them to enable it during allyesconfig because they > might need more than 4GB of RAM to build it (especially with gcc > 4.8, 4

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

2014-04-08 Thread Tim Bird
FWIW, I'd really like to see this go in as an experimental feature. Andi has already quoted my size results, which I thought were pretty good, as well as given a pointer to my size optimization presentation. Some of what follows is in the presentation, but here is a summary: There are other autom

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

2014-04-08 Thread Andi Kleen
Hi Linus, > So right now, I see several reasons not to merge it ("It's so > experimental that we don't even want to encourage people to test it" I don't want them to enable it during allyesconfig because they might need more than 4GB of RAM to build it (especially with gcc 4.8, 4.9 is better). B

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

2014-04-08 Thread Linus Torvalds
On Tue, Apr 8, 2014 at 1:49 PM, wrote: > > In addition to making the kernel smaller and such (I'll leave the > specific stats there to Andi), here's the key awesomeness of LTO that > you, personally, should find useful and compelling: LTO will eliminate > the need to add many lower-level Kconfig

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

2014-04-08 Thread josh
On Tue, Apr 08, 2014 at 08:26:09AM -0700, Linus Torvalds wrote: > On Mon, Apr 7, 2014 at 1:19 PM, Michal Marek wrote: > > besides the kbuild branch, here is the LTO build support by Andi. It is > > a separate branch, because it depends on other patches by Andi which > > were merged through other t

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

2014-04-08 Thread Linus Torvalds
On Mon, Apr 7, 2014 at 1:19 PM, Michal Marek wrote: > > besides the kbuild branch, here is the LTO build support by Andi. It is > a separate branch, because it depends on other patches by Andi which > were merged through other trees. The link-time-optimization build is an > experimental feature, s

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

2014-04-07 Thread Andi Kleen
On Mon, Apr 07, 2014 at 10:19:19PM +0200, Michal Marek wrote: > Hi Linus, > > besides the kbuild branch, here is the LTO build support by Andi. It is > a separate branch, because it depends on other patches by Andi which > were merged through other trees. The link-time-optimization build is an > e

[GIT] kbuild/lto changes for 3.15-rc1

2014-04-07 Thread Michal Marek
Hi Linus, besides the kbuild branch, here is the LTO build support by Andi. It is a separate branch, because it depends on other patches by Andi which were merged through other trees. The link-time-optimization build is an experimental feature, so there one kconfig option to enable it and another