Re: Using LTO for Fedora package builds

2018-02-26 Thread Tomasz Kłoczko
On 26 February 2018 at 16:58, Zbigniew Jędrzejewski-Szmek wrote: [..] > > > Can you repeat above and show output of the command "size /var/tmp/inst-*"? > > After stripping: > 24808 /var/tmp/inst-O2 > 21060 /var/tmp/inst-O2-lto > 22240 /var/tmp/inst-O3

Re: Using LTO for Fedora package builds

2018-02-26 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 26, 2018 at 04:47:31PM +, Tomasz Kłoczko wrote: > On 26 February 2018 at 07:11, Zbigniew Jędrzejewski-Szmek > wrote: > > > On Mon, Feb 26, 2018 at 05:24:28AM +0100, Kevin Kofler wrote: > > > Zbigniew Jędrzejewski-Szmek wrote: > > > > But size is easy: > > > >

Re: Using LTO for Fedora package builds

2018-02-26 Thread Tomasz Kłoczko
On 26 February 2018 at 07:11, Zbigniew Jędrzejewski-Szmek wrote: > On Mon, Feb 26, 2018 at 05:24:28AM +0100, Kevin Kofler wrote: > > Zbigniew Jędrzejewski-Szmek wrote: > > > But size is easy: > > > $ du -s /var/tmp/inst-O* > > > 74428 /var/tmp/inst-O3 > > > 56136

Re: Using LTO for Fedora package builds

2018-02-26 Thread Adam Jackson
On Sun, 2018-02-25 at 13:19 +0100, Florian Weimer wrote: > On 02/25/2018 12:45 PM, Zbigniew Jędrzejewski-Szmek wrote: > > > What's our current take on using LTO for Fedora package builds? > > systemd would like to use it. > > Why? What are the benefits? I've seen a c

Re: Using LTO for Fedora package builds

2018-02-26 Thread John Reiser
On 02/26/2018 07:11 UTC, Zbigniew Jędrzejewski-Szmek wrote: (Note, it's all unstripped.) It would be interesting to apply /usr/bin/size, then sum the columns. Similarly for the debuginfo, particularly the line numbers section. Optimizations which re-schedule, move, or merge instructions can

Re: Using LTO for Fedora package builds

2018-02-25 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 26, 2018 at 05:24:28AM +0100, Kevin Kofler wrote: > Zbigniew Jędrzejewski-Szmek wrote: > > But size is easy: > > $ du -s /var/tmp/inst-O* > > 74428 /var/tmp/inst-O3 > > 56136 /var/tmp/inst-O3-lto > > 61992 /var/tmp/inst-Os > > 43572 /var/tmp/inst-Os-lto > > The current default is -O2,

Re: Using LTO for Fedora package builds

2018-02-25 Thread Kevin Kofler
Zbigniew Jędrzejewski-Szmek wrote: > But size is easy: > $ du -s /var/tmp/inst-O* > 74428 /var/tmp/inst-O3 > 56136 /var/tmp/inst-O3-lto > 61992 /var/tmp/inst-Os > 43572 /var/tmp/inst-Os-lto The current default is -O2, not -O3, though. Kevin Kofler

Re: Using LTO for Fedora package builds

2018-02-25 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Feb 25, 2018 at 03:35:39PM +0100, Kevin Kofler wrote: > Tomasz Kłoczko wrote: > > BTW size. Did you try to compile systemd with optimisation for size (-Os)? > > > > There are many Linux packages which should be optimised for size > > because they provide binaries which are speed critical

Re: Using LTO for Fedora package builds

2018-02-25 Thread Zbigniew Jędrzejewski-Szmek
te: > > > > > What's our current take on using LTO for Fedora package builds? > > > > systemd would like to use it. > > > > > > Why? What are the benefits? > > > > There's a small change in size. When I tested recently it was ~7%, > >

Re: Using LTO for Fedora package builds

2018-02-25 Thread Thomas Haller
Hi, On Sun, 2018-02-25 at 12:30 +, Zbigniew Jędrzejewski-Szmek wrote: > On Sun, Feb 25, 2018 at 01:19:24PM +0100, Florian Weimer wrote: > > On 02/25/2018 12:45 PM, Zbigniew Jędrzejewski-Szmek wrote: > > > > What's our current take on using LTO for Fedora package builds

Re: Using LTO for Fedora package builds

2018-02-25 Thread Neal Gompa
problems with some of > the hardening quality control tooling because the annobin GCC plug-in may > not be active when the final LTO link with new code generation happens (bug > 1548821). > > What's our current take on using LTO for Fedora package builds? > Mir uses LTO on all pl

Re: Using LTO for Fedora package builds

2018-02-25 Thread Kevin Kofler
Tomasz Kłoczko wrote: > BTW size. Did you try to compile systemd with optimisation for size (-Os)? > > There are many Linux packages which should be optimised for size > because they provide binaries which are speed critical like boot > loaders and boot tools (grub, lilo, gubby) some diagnostics

Re: Using LTO for Fedora package builds

2018-02-25 Thread Tomasz Kłoczko
On 25 February 2018 at 12:30, Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl> wrote: > On Sun, Feb 25, 2018 at 01:19:24PM +0100, Florian Weimer wrote: >> On 02/25/2018 12:45 PM, Zbigniew Jędrzejewski-Szmek wrote: >> >>What's our current take on using LTO for Fedora pac

Re: Using LTO for Fedora package builds

2018-02-25 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Feb 25, 2018 at 01:19:24PM +0100, Florian Weimer wrote: > On 02/25/2018 12:45 PM, Zbigniew Jędrzejewski-Szmek wrote: > >>What's our current take on using LTO for Fedora package builds? > > >systemd would like to use it. > > Why? What are the benefits? The

Re: Using LTO for Fedora package builds

2018-02-25 Thread Florian Weimer
On 02/25/2018 12:45 PM, Zbigniew Jędrzejewski-Szmek wrote: What's our current take on using LTO for Fedora package builds? systemd would like to use it. Why? What are the benefits? Thanks, Florian ___ devel mailing list -- devel

Re: Using LTO for Fedora package builds

2018-02-25 Thread Zbigniew Jędrzejewski-Szmek
with > some of the hardening quality control tooling because the annobin > GCC plug-in may not be active when the final LTO link with new code > generation happens (bug 1548821). > > What's our current take on using LTO for Fedora package builds? systemd would like to use it. Currently linking wit

Using LTO for Fedora package builds

2018-02-25 Thread Florian Weimer
not be active when the final LTO link with new code generation happens (bug 1548821). What's our current take on using LTO for Fedora package builds? Thanks, Florian ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel