Change: Thin LTO Build Flag (F47) #3692
Labels
No labels
document it
fast track
meeting
next release
nonresponsive maintainer
packager revocation
pending announcement
provenpackager
python 2 exception
self contained change
stalled
Status
Accepted
Status
Duplicate
Status
Insufficient data
Status
Invalid
Status
Rejected
system wide change
updates policy exception
vote-in-progress
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
fesco/tickets#3692
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At present, many packages are built with fat link time optimization (LTO) objects. This can increase RAM requirements and build times. There is a build flag to disable LTO completely. But by using slim objects, one can still have the performance and size improvements offered by LTO with less of a build time cost.
Owners, do not implement this work until the FESCo vote has explicitly ended.
When a FESCo member has marked this ticket as APPROVED, you may proceed with the implementation. See the FESCo ticket policy and the Changes policy for more information.
If no decision has been rendered after 7 days from the filing of this ticket and no indication (such as a -1 vote) that this will be taken up at a FESCo meeting, please feel free to ping for a status update.
REMINDER: This ticket is for FESCo members to vote on the proposal. Further discussion should happen in the Discourse discussion linked above. Additional discussion may happen on the Fedora Devel mailing list.
cc @fed500
I see ~108 packages set
%_lto_cflags, out of which ~106 set the to%nil. So this has potential to make a meaningful difference.Re-reading the discussion on fedora-devel, I see that doubts were raised how effective this would be. To make things concrete, what would the effect on webgitgtk be: compilation time, maximum memory use w/ normal lto and thin lto and no lto?
@fed500 Are you getting the notifications here?
@zbyszek Thanks for the notification. Will do a build of webkitgtk with the different options by end of next week.
Note: This proposal has technically been rejected already according to in-ticket voting rules since it has received zero votes within two (in this case, even three) weeks (https://docs.fedoraproject.org/en-US/fesco/#ticket-votes).
Have responded to all discussion on list:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/VCHRBAYTBSTA5KLXTGQ2OJQH36O65SMU/
Sorry, it took some time to get to it.
Straw poll seems to have many people strongly in favour:
https://discussion.fedoraproject.org/t/f47-change-proposal-thin-lto-build-flag-self-contained/201111
Can file a new change request if required.
As it currently stands, I am unconvinced that this change is a good idea. We have other knobs for resource control and making the default case broken for multi-compiler LTO is just a bad idea as polyglot projects become more common in the Fedora corpus.
This would not change the default. It would introduce a build option that would make it easier to track this setting and allow consistent application in different packages. As indicated, there are 106 packages which set
%_lto_cflagstonil, so having a documented intermediate option can improve things.WebKitGTK is built with clang, direct use of GCC without changing anything results in build failures. Clang also has LTO options that are different than what is in GCC, but seem to result in shorter build times:
For GCC will do a comparison using Highway.
This proposal has not received any votes in five weeks. According to the voting rules for in-ticket votes, it is REJECTED (and I have not seen any reason why we should not follow our documented policies here):
see https://docs.fedoraproject.org/en-US/fesco/#ticket-votes