sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
925 stars 127 forks source link

Link Time Optimization #155

Closed jonesmz closed 4 years ago

jonesmz commented 4 years ago

Are you aware of the work being done here?

https://github.com/InBetweenNames/gentooLTO

I've been using that configuration on my x86_64 machine for several weeks now, and am quite pleased with it.

It's not clear to me if AARCH64 would benefit in the same manner as x86_64, but I suspect that given the lower horse-power of the Raspberry Pi, the additional optimizations from LTO would have a bigger impact than on x86_64.

sakaki- commented 4 years ago

Yes, I use some packages borrowed from that overlay on the image, e.g. for python (https://github.com/sakaki-/genpi64-overlay/commit/4d0af9361ae121b41fba57f99ee2845d36d33aca) which has a 64-bit (vs 32-bit) performance penalty headwind to overcome (see e.g. this post), where lto/pgo makes quite a difference.

I may expand the coverage going forward. Note that firefox does have lto available in the main tree build, and this is used on the current version (https://github.com/sakaki-/genpi64-overlay/commit/cb394d339b712f7c3cebe2ad6c803a7983967a8b).

sakaki- commented 4 years ago

Closing