1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Link-Time Optimizations Near Reality For x86 Linux Kernel

Linux Kernel

Published on 01 April 2014 05:57 AM EDT
Written by Michael Larabel in Linux Kernel
13 Comments

Another interesting change that's already landed for the Linux 3.15 kernel is infrastructure work for supporting x86 kernels optimized via LTO for yielding better kernel performance.

Back in 2012 I wrote about link-time optimizations to speed-up the Linux kernel. Link-Time Optimizations via GCC and other compilers allow for various compile-time optimizations to be applied across the binary as a whole. Enabling link-time optimizations can yield some significant performance improvements but results in much slower compile times and with large programs can cause problems due to the size of optimizing the complete binary at once.

The work back in 2012 by Intel developers showed the kernel compile time increased by two to four times and needed 4~9GB of memory to complete the task. However, it was found the resulting Linux kernel image was faster in various benchmarks. The work in 2012 required a modern version of GCC along with Linux kernel LTO patches and patches to binutils. That work is finally becoming a reality in mainline.

Peter Anvin sent in a bunch of x86 infrastructure work on Monday that prepares for link-time optimization support by the kernel.

Peter wrote in the commit, "My understanding is that the changes to support LTO are still not upstream in binutils, but are on the way there. This patchset should conclude the x86-specific changes, and remaining patches to actually enable LTO will be fed through the Kbuild tree (other than keeping up with changes to the x86 code base, of course), although not necessarily in this merge window."

Hopefully the Linux kernel LTO support will finish up in the Linux 3.15 kernel otherwise Linux 3.16 so we can move onward with some benchmarks of an LTO-optimized Linux kernel to see the performance wins at the cost of greater compile times and memory usage during the compilation process. It's worth noting that with the upcoming GCC 4.9 are also some significant link-time optimization enhancements.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. RadeonSI GLAMOR Benchmarks With X.Org Server 1.16
  2. RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux
  3. MSAA RadeonSI Gallium3D Performance Preview
  4. Intel Core i7 5960X CPU Core Scaling Under Linux
Latest Linux News
  1. Ubuntu Touch/Phone Reaches Its First RTM Image
  2. The KMS Mode-Setting Driver Was Imported For X.Org Server 1.17
  3. SNA & UXA Intel Benchmarks With X.Org Server 1.16
  4. Graphics Driver Changes Coming In The Linux 3.18 Kernel
  5. Tropico 5 Being Released For Linux Gamers This Week
  6. Eclipse IDE Starts Firing Up On Wayland's Weston
  7. OpenSUSE Announcement On SUSE's Recent Merger
  8. Valve Begins Publicly Tracking AMD Catalyst Linux Issues
  9. Digia Qt Spinoff Is Called "The Qt Company"
  10. GNOME 3.14 Makes More Progress In Running Natively On Wayland
Latest Forum Discussions
  1. Stop grabbing my keyboard :(
  2. New Group Calls For Boycotting Systemd
  3. Updated and Optimized Ubuntu Free Graphics Drivers
  4. Best Radeon for a Power Mac G5?
  5. New stress testing utility for GPU's
  6. Hd 6850
  7. support for first generation UVD blocks (RV6xx, RS780, RS880 and RV790)
  8. Nvidia joins the ranks of Apple and Microsoft