Closed Bug 1985015 Opened 8 months ago Closed 8 months ago

Do not activate full lto on libxul-gtest

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox145 fixed)

RESOLVED FIXED
145 Branch
Tracking Status
firefox145 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 2 open bugs)

Details

(Keywords: perf-alert)

Attachments

(1 file)

When compiling libxul in full lto mode, we use the same flag for libxul-gtest. This is very costly (single threaded), it's on the critical path and does not bring any clear benefit.

fat lto (see https://llvm.org/docs/FatLTO.html) makes it possible to
build object file once and use them for regular linking and full lto
linking, which is exactly what we need for libxul-gtest.

Assignee: nobody → sguelton
Status: NEW → ASSIGNED
Blocks: 1985014
No longer depends on: 1985014

thanks!

Blocks: 1985028
Attachment #9509183 - Attachment description: Bug 1985015 - Enable fat lto so that libxul-gtest can skip full lto r=glandium → Bug 1985015 - Enable fat lto so that libxul-gtest can skip full lto r=glandium!
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6e56f729dfae https://hg.mozilla.org/integration/autoland/rev/0e91bb7a6ea1 Revert "Bug 1985015 - Enable fat lto so that libxul-gtest can skip full lto r=glandium" for causing build bustages ffat-lto-objects related

Backed out for causing build bustages ffat-lto-objects related

Backout link

Push with failures

Failure log

Flags: needinfo?(sguelton)
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3a42fdaa9462 https://hg.mozilla.org/integration/autoland/rev/9a0867e72c42 Revert "Bug 1985015 - Enable fat lto so that libxul-gtest can skip full lto r=glandium" for causing py mozbuild failures
Flags: needinfo?(sguelton)
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch

(In reply to Pulsebot from comment #10)

Pushed by sguelton@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/b6beecfa0045
https://hg.mozilla.org/integration/autoland/rev/9cea492e94a5
Enable fat lto so that libxul-gtest can skip full lto r=glandium

Perfherder has detected a build_metrics performance change from push 9cea492e94a57932e3525ed5b9c4a3843bdcf038.

If you have any questions, please reach out to a performance sheriff. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
14% build times linux64-shippable nightly taskcluster-projects/970387039909/machineTypes/c3d-standard-60-lssd 3,161.19 -> 2,717.29
13% build times linux64-nightlyasrelease nightly nightly-as-release taskcluster-projects/970387039909/machineTypes/c3d-standard-60-lssd 3,080.97 -> 2,693.21

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a performance sheriff to do that for you.

You can run all of these tests on try with ./mach try perf --alert 46865

The following documentation link provides more information about this command.

Keywords: perf-alert

That's... very good news \o/

Regressions: 1993097
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: