Closed Bug 1875117 Opened 9 months ago Closed 9 months ago

Ship parallel marking

Categories

(Core :: JavaScript: GC, task)

task

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The most recent nightly experiment to enable parallel marking show some clear improvements so let's ship this to our users:

https://docs.google.com/spreadsheets/d/1NkTLDfDf-Gf30nwN-U1pIsSvHQpu33eb3Mq98C6b4bw/edit#gid=0

Summary:

  • 20-30% reduction in GC time across desktop platforms
  • 10% reduction in GC max pause time
  • 10% fewer GC slices
  • Slices that overran their budget were worse but these remain rare
  • Parallel marking performs significantly better macOS than other platforms

Caveats:

  • This will not be enabled for mobile which requires further work
  • Only two threads will be used to start with

The plan is to enable this in version 124. If there are problems we can hold this as nightly only or disable it again.

Benchmark comparison: https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=8da4e37b0d4e1fd7ee6dbe3c738077c77eabb192&newProject=try&newRevision=0fae179fb4f223adf2ae3ede7f93d2907febdba5&framework=13&page=1

Summary:

  • Jetstream2: high-confidence 28% improvements splay-Worst and 8% on splay-Average subtests on Windows
  • matrix-react-bench: high-confidence 1.3% overall improvement on macOS
  • Speedometer3: overall unaffected, with several low-confidence changes in both directions
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

Telemetry indicates this is working well.

Mark rate increased by 50-60%, median total GC time decreased by 35% (and by more for longer collections) and median max pause time decreased by 20%.

Summary of telemetry changes: https://docs.google.com/spreadsheets/d/1eWcQGeXnfhu0nUHUj1wj7VZ3SMMilump8h19w5s1bXc/edit?usp=sharing

Regressions: 1878232
See Also: → 1889638
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: