News: 0001502913

  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)

Fedora Stakeholders Debate Idea Of "-O3" Optimized Packages

([Fedora] 4 Hours Ago Fedora -O3 Optimized Packages?)


Following the announcement yesterday that [1]Ubuntu 25.04 will default to the -O3 optimization level with GCC for its Debian package builds, Fedora stakeholders have begun debating the merits of switching to the -O3 optimization level or not instead of the existing -O2 optimization level default.

Fedora contributor Neal Gompa raised the idea on the Fedora development list today in a "request for comments" whether Fedora 42 should consider moving to -O3 by default in a similar move to Ubuntu 25.04.

Reaction though to this idea has been mixed with some concerned about the increase in binary size from using the -O3 optimizations, whether the -O3 optimizations will actually pay off for the vast majority of packages compared to -O2, and related complexities in using -O3. Some Red Hat engineers like Jakub Jelinek of their compiler team have called it a "very bad idea" due to the code size increase from -O3, speed gains not being guaranteed, etc.

The discussion has also brought up the possibility of using Profile Guided Optimizations (PGO) and Link Time Optimizations (LTO) or AutoFDO (Automatic Feedback-Directed Optimizations) for more packages, but there are complexities involved there as well especially with how Fedora's build system is handled compared to the likes of SUSE/openSUSE with more widespread compiler optimizations employed there.

No decisions have been made yet plus the fact of needing to go through the FESCo approval process. But at least the matter is being debated. It's looking like Fedora switching to -O3 likely won't have enough interest but hopefully this discussion can lead to work on employing other compiler optimization techniques for Fedora packages. Those wanting to follow the discussion can do so via [2]this Fedora-devel thread .



[1] https://www.phoronix.com/news/Ubuntu-25.04-Plucky-Puffin

[2] https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/TKF4VRY7VRKJJLOLMHAK6UEQKTSKXAYU/



Danny3

avis

jeisom

patrick1946

TheMightyBuzzard

Espionage724

avis

ms178

TheMightyBuzzard

What does it take for Americans to do great things; to go to the moon, to
win wars, to dig canals linking oceans, to build railroads across a continent?
In independent thought about this question, Neil Armstrong and I concluded
that it takes a coincidence of four conditions, or in Neil's view, the
simultaneous peaking of four of the many cycles of American life. First, a
base of technology must exist from which to do the thing to be done. Second,
a period of national uneasiness about America's place in the scheme of human
activities must exist. Third, some catalytic event must occur that focuses
the national attention upon the direction to proceed. Finally, an articulate
and wise leader must sense these first three conditions and put forth with
words and action the great thing to be accomplished. The motivation of young
Americans to do what needs to be done flows from such a coincidence of
conditions. ... The Thomas Jeffersons, The Teddy Roosevelts, The John
Kennedys appear. We must begin to create the tools of leadership which they,
and their young frontiersmen, will require to lead us onward and upward.
-- Dr. Harrison H. Schmidt