lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180809181433.GB4203@magnolia>
Date:   Thu, 9 Aug 2018 11:14:33 -0700
From:   "Darrick J. Wong" <darrick.wong@...cle.com>
To:     "Theodore Y. Ts'o" <tytso@....edu>
Cc:     linux-ext4@...r.kernel.org
Subject: Re: [PATCH 0/4] e2fprogs: compiler fun

On Wed, Aug 08, 2018 at 11:20:35PM -0400, Theodore Y. Ts'o wrote:
> I've been experimenting with the LTO feature, and interestingly
> enough, some executables actually get *bigger*:
> 
>    text	   data	    bss	    dec	    hex	filename
>   27684	   1408	   1272	  30364	   769c	e2image
>   34014	   1448	   1304	  36766	   8f9e	e2image.lto
> 
> Net Gain: 21%
> 
> Other executables, it's (mostly) a wash:
> 
>    text	   data	    bss	    dec	    hex	filename
>  285991	  21696	   1128	 308815	  4b64f	e2fsck
>  287997	  21696	   1144	 310837	  4be35	e2fsck.lto
> 
> Net Gain: 0.65%
> 
> And in some cases, it's definitely a win:
> 
>    text	   data	    bss	    dec	    hex	filename
> 1479034	  56898	  27728	1563660	 17dc0c	e2fsck.static
> 1426183	  56320	  27608	1510111	 170adf	e2fsck.static.lto
> 
> Net Savings: 3.4%
> 
> 					- Ted
> 

Hmm, here's what I saw for various binaries, building on Ubuntu 18.04
(gcc 7.3, binutils 2.30):

  71133    3280     433   74846   1245e build-x64/misc/e2freefrag
 195978    3824     481  200283   30e5b build-x64-nonlto/misc/e2freefrag

  28091    1248     321   29660    73dc build-x64/misc/badblocks
 194837    2488     641  197966   3054e build-x64-nonlto/misc/badblocks

  50988    1600   24953   77541   12ee5 build-x64/misc/e4defrag
 195931    2472   25281  223684   369c4 build-x64-nonlto/misc/e4defrag

  77731    3520     489   81740   13f4c build-x64/misc/e2undo
 208081    4208     545  212834   33f62 build-x64-nonlto/misc/e2undo

 130088    4768    1073  135929   212f9 build-x64/misc/dumpe2fs
 222934    5184    1089  229207   37f57 build-x64-nonlto/misc/dumpe2fs

 126930    3784    1601  132315   204db build-x64/misc/e2image
 222766    4312    1729  228807   37dc7 build-x64-nonlto/misc/e2image

 202300    4456     465  207221   32975 build-x64/misc/fuse2fs
 246937    4832     513  252282   3d97a build-x64-nonlto/misc/fuse2fs

 199603    4144     529  204276   31df4 build-x64/resize/resize2fs
 257255    4520     649  262424   40118 build-x64-nonlto/resize/resize2fs

 257732    5608    1689  265029   40b45 build-x64/misc/tune2fs
 305768    6200    1801  313769   4c9a9 build-x64-nonlto/misc/tune2fs

 281450    6504    2361  290315   46e0b build-x64/misc/mke2fs
 333348    7336    2689  343373   53d4d build-x64-nonlto/misc/mke2fs

 364611   19776    3953  388340   5ecf4 build-x64/debugfs/debugfs
 423004   20280    3993  447277   6d32d build-x64-nonlto/debugfs/debugfs

 566864   24272    1777  592913   90c11 build-x64/e2fsck/e2fsck
 561691   24336    1809  587836   8f83c build-x64-nonlto/e2fsck/e2fsck

Interesting that you got much smaller binaries than I did...

--D

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ