Closed Bug 2086309 Opened 29 days ago Closed 21 days ago

finish pgo corpus items when they complete instead of on a timeout

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox161 fixed)

RESOLVED FIXED
161 Branch
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.

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.

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.

Component: General → Task Configuration
Component: Task Configuration → General
Status: NEW → RESOLVED
Closed: 21 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: