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 Articles & Reviews
  1. Kubuntu 15.04 Is Turning Out Quite Nice, Good Way To Try Out The Latest KDE
  2. 5-Way Linux Distribution Comparison On The Core i3 NUC
  3. OCZ ARC 100 Linux SSD Benchmarks
  4. Lenovo ThinkPad X1 Carbon Works Great As A Linux Ultrabook
  5. Transcend SSD370 256GB
  6. Linux 3.19 File-System Tests Of EXT4, Btrfs, XFS & F2FS
Latest Linux News
  1. ALSA 1.0.29 Released
  2. Ubuntu 15.04 Beta Released, Ubuntu MATE Made Official
  3. Coreboot Developer: Purism Doesn't Deliver On Libre Firmware
  4. LLVM 3.6 & Clang 3.6 Deliver More Features, Complete C++14 Support
  5. The Most Popular Open-Source Linux Benchmarks
  6. The Tremendous Features Of Fedora 22
  7. Krita 2.9 Released, Their Biggest Release Ever
  8. RISC OS Now Works With The Raspberry Pi 2
  9. A Single UEFI Executable With The Linux Kernel, Initrd & Command Line
  10. Unigine 2.0 Beta Brings Performance Optimizations, Oculus Rift DK2 Support
Most Viewed News This Week
  1. Linux 4.0-RC1 Tagged, Linux 4.0 Will Bring Many Notable Improvements
  2. Screenshots Of The GNOME 3.16 Changes
  3. Ubuntu 14.04.2 LTS Released & Ubuntu 15.04 Now In Feature Freeze
  4. Qt 5.5 Features: Many Exciting Improvements
  5. Mir Now Depends Upon C++14
  6. Linux 4.0 Doesn't Have The Weirdest Codename
  7. GNOME 3.16 Beta Brings Wayland-Based Log-in Screen
  8. LLVM Clang Compiling The Linux Kernel Is A Big Topic For 2015
%%CLICK_URL_UNESC%%