finish pgo corpus items when they complete instead of on a timeout
Categories
(Firefox Build System :: General, task)
Tracking
(firefox161 fixed)
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: bhearsum, Assigned: bhearsum)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
At the moment, we rely on fixed timeouts to progress to subsequent PGO training items. In effect, this means we spend a lot of time idle. Instead, we can signal when each item completes and move on more quickly.
As an example, when running locally there is a very sizable (10s+) delay after speedometer tests complete before the next one starts. There's shorter delays on all other tests which end up adding up to quite a bit overall. In CI it seems like these waits are greatly exaggerated (see below for before/after numbers). If it matters, I ran my local tests on Linux, not macOS.
I started looking at this as a way of trying to improve throughput on macOS hardware. I found that P5/50/95 for macOS aarch64 profile generation is 15/17/31 minutes respectively. With the patch I'm about to post, my first profile run was 7min, and had no notable impact on browsertime nor talos numbers.
We run anywhere from ~100 to ~500 of these tasks per day. If we manage to save 10min per task in reality, we gain back ~1000 to ~5000 minutes on these workers per day. At a 7 minute runtime, that's an extra ~140 - ~700 generate profile tasks we could run.
| Assignee | ||
Comment 1•29 days ago
|
||
At the moment, we rely on fixed timeouts to progress to subsequent PGO training items. In effect, this means we spend a lot of time idle. Instead, we can signal when each item completes and move on more quickly.
As an example, when running locally there is a very sizable (10s+) delay after speedometer tests complete before the next one starts. There's shorter delays on all other tests which end up adding up to quite a bit overall. In CI it seems like these waits are greatly exaggerated (see below for before/after numbers). If it matters, I ran my local tests on Linux, not macOS.
I started looking at this as a way of trying to improve throughput on macOS hardware. I found that P5/50/95 for macOS aarch64 profile generation is 15/17/31 minutes respectively. With this patch, my first profile run was 7min, and had no notable impact on browsertime nor talos numbers.
We run anywhere from ~100 to ~500 of these tasks per day. If we manage to save 10min per task in reality, we gain back ~1000 to ~5000 minutes on these workers per day. At a 7 minute runtime, that's an extra ~140 - ~700 generate profile tasks we could run.
Comment 2•29 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Task Configuration' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•28 days ago
|
Comment 4•21 days ago
|
||
| bugherder | ||
Description
•