Open Bug 2071097 Opened 2 months ago Updated 2 days ago

Reduce PGO training time

Categories

(Core :: Performance Engineering, enhancement)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: denispal, Assigned: denispal)

References

Details

Attachments

(2 external files)

The PGO training steps are longer than they need to be. This is mostly because when we run the workloads we just sleep for a long duration to make sure the workloads have enough time to finish. However, the workloads often finish before this duration and we just sleep needlessly. We can change the training step so that it knows when the workloads are done and then continue with the build instead of sleeping.

The severity field is not set for this bug.
:bas.schouten, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bas)
Severity: -- → S3
Type: defect → enhancement
Flags: needinfo?(bas)
Component: Performance: General → Performance Engineering

Should this be duped on https://bugzilla.mozilla.org/show_bug.cgi?id=2086309, or is this covering something slightly different?

I didn't realize you were working on the same thing. I was working on a version here https://treeherder.mozilla.org/jobs?repo=try&revision=a7b63e2705de019e0df149bf9b996b8f1350b527, which drops mozhttpd and unifies the PGO training on Android and Desktop. I think this is an overall cleaner approach.

(In reply to Denis Palmeiro [:denispal] from comment #3)

I didn't realize you were working on the same thing. I was working on a version here https://treeherder.mozilla.org/jobs?repo=try&revision=a7b63e2705de019e0df149bf9b996b8f1350b527, which drops mozhttpd and unifies the PGO training on Android and Desktop. I think this is an overall cleaner approach.

Sorry, didn't meant to step on your toes. I'm happy for any different approach to be taken...mine was very much done as a quick fix to get more throughput on macOS workers.

Oh no, it's not that. Reducing the training time for android pgo builds should help relieve the m4 pressure quite a bit I think, but currently we do that entirely separate from desktop so I was trying to consolidate both approaches. Swapping http servers let's us use http 1.1 as well.

Unfortunately the android process is a bit more finicky since driver.quit() does not always force llvm dumps so I had to put in a fix for that.

On Android, a content process can be ended when the parent exits, before it writes its PGO profile data. Write it during shutdown instead, while the parent is still waiting for it.

Assignee: nobody → dpalmeiro
Status: NEW → ASSIGNED

Run Android and desktop PGO training through the same corpus in build/pgo/index.html, so items finish when they are done instead of after fixed sleeps. Also serve the whole corpus from a single HTTP/1.1 server.

Pushed by dpalmeiro@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5c575cef8731 https://hg.mozilla.org/integration/autoland/rev/c8921a4711f2 Dump the PGO profile data of Android content processes before they finish shutting down. r=firefox-build-system-reviewers,sylvestre https://github.com/mozilla-firefox/firefox/commit/d55084e07e07 https://hg.mozilla.org/integration/autoland/rev/376e353cbbfa Run Android PGO training through build/pgo/index.html, finishing items when they are done. r=firefox-build-system-reviewers,sergesanspaille,sylvestre
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4347fc08ad0a https://hg.mozilla.org/integration/autoland/rev/d19283530a15 Revert "Bug 2071097 - Run Android PGO training through build/pgo/index.html, finishing items when they are done. r=firefox-build-system-reviewers,sergesanspaille,sylvestre" for causing bustages in index.html.
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/437dd728fb23 https://hg.mozilla.org/mozilla-central/rev/aa14710af347 Revert "Bug 2071097 - Run Android PGO training through build/pgo/index.html, finishing items when they are done. r=firefox-build-system-reviewers,sergesanspaille,sylvestre" for causing bustages in index.html.

Need to relax some of the constraints for arm32 builds.

Flags: needinfo?(dpalmeiro)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: