News: 0001483570

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Trying Out The Ubuntu "-O3" Optimized Build For Greater Performance

([Operating Systems] 6 Hours Ago 18 Comments)


Canonical engineers on Friday announced they are [1]evaluating "-O3" compiler optimized package builds for Ubuntu Linux . As part of this evaluation of using GCC's -O3 compiler optimization level rather than -O2 when compiling Ubuntu packages, experimental Ubuntu desktop and server ISOs are available for testing with this change. Excitingly I ran some initial benchmarks over the weekend in looking at the performance difference.

[2]

Canonical hasn't decided if they will be switching to the "-O3" compiler optimization level by default moving forward but it's great they are evaluating it... Hopefully they decide to do so or at least for the subset of Ubuntu packages that are very performance sensitive and can benefit from the more aggressive compiler optimization level.

In being curious about the impact across some different workloads, I ran some benchmarks of Ubuntu 24.04 LTS installed cleanly out-of-the-box and then again repeating the clean Ubuntu 24.04 LTS install but using the -O3 built ISOs. The testing was all done from a [3]System76 Thelio workstation powered by the AMD Ryzen Threadripper 7980X .

Besides the packages on the experimental ISOs being -O3 built, the APT repository setup on these ISOs point to their testing archive containing the -O3 optimized packages. So installing new Debian packages and the like atop the install will also fetch packages from that -O3 archive rather than the official/default Ubuntu archive.

I ran a variety of benchmarks using the Ubuntu packages to see the difference of the -O3 package builds.



[1] https://www.phoronix.com/news/Ubuntu-Evaluating-O3-Optimized

[2] https://www.phoronix.com/image-viewer.php?id=ubuntu-o3-experiment&image=ubuntu_o3_lrg

[3] https://www.phoronix.com/review/system76-thelio-threadripper-2024



A "No" uttered from deepest conviction is better and greater than a
"Yes" merely uttered to please, or what is worse, to avoid trouble.
-- Mahatma Gandhi