Reduce PGO training time
Categories
(Core :: Performance Engineering, enhancement)
Tracking
()
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.
Comment 1•2 months ago
|
||
The severity field is not set for this bug.
:bas.schouten, could you have a look please?
For more information, please visit BugBot documentation.
Updated•2 months ago
|
Updated•2 months ago
|
Comment 2•14 days ago
|
||
Should this be duped on https://bugzilla.mozilla.org/show_bug.cgi?id=2086309, or is this covering something slightly different?
| Assignee | ||
Comment 3•14 days ago
|
||
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.
Comment 4•13 days ago
|
||
(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.
| Assignee | ||
Comment 5•13 days ago
|
||
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.
| Assignee | ||
Comment 6•13 days ago
|
||
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.
| Assignee | ||
Comment 7•12 days ago
|
||
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.
Updated•12 days ago
|
| Assignee | ||
Comment 8•12 days ago
|
||
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.
Comment 10•2 days ago
|
||
Comment 11•2 days ago
|
||
Backed out for causing bustages in index.html.
Backout link: https://hg.mozilla.org/integration/autoland/rev/d19283530a15
Failure log: https://treeherder.mozilla.org/logviewer?job_id=608952490&repo=autoland&task=DwcZtDs2TB-6nf1VOv2-KQ.0&lineNumber=2515
Comment 12•2 days ago
|
||
| bugherder | ||
Comment 13•2 days ago
|
||
Comment 14•2 days ago
|
||
| Assignee | ||
Comment 15•2 days ago
|
||
Need to relax some of the constraints for arm32 builds.
Description
•