Open Bug 1772638 Opened 2 years ago Updated 2 years ago

Do eager major GCs after draining the microtask queue if approaching a GC threshold

Categories

(Core :: JavaScript: GC, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: sfink, Assigned: sfink)

References

Details

(Keywords: perf-alert)

Attachments

(1 file)

This is a forked version of bug 1661293 since it triggered some regressions, and I wanted to land everything in the stack that doesn't regress. So this bug is for actually running eager major GCs when the microtask queue is empty.

Severity: -- → N/A
Priority: -- → P2

The original regression doesn't seem to be happening anymore, even when retriggering the old versions. Looking closer, it seems like it was always somewhat bimodal. I'm re-landing at the beginning of a cycle, fully expecting some regressions to pop up, so that I have more to go off of (and may end up accepting any regressions if they appear to be test artifacts.)

Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8f85cd030fce
make nsJSContext::MaybePokeGC trigger EAGER_ALLOC_TRIGGER major GCs
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Assignee: nobody → sphink

Perfherder has detected an AWSY performance regression, but I was unable to determine correctly the culprit as jobs fail to run on push 8f85cd030fce. Can you let me know if it is possible that this push could have caused the regression?

Flags: needinfo?(sphink)

(In reply to Acasandrei Beatrice (needinfo me) from comment #5)

Perfherder has detected an AWSY performance regression, but I was unable to determine correctly the culprit as jobs fail to run on push 8f85cd030fce. Can you let me know if it is possible that this push could have caused the regression?

It definitely could.

Backed out changeset 8f85cd030fce (Bug 1772638) for causing size and perf regressions

https://hg.mozilla.org/integration/autoland/rev/af7f9589f48c497f0dab327c0de70b73d9325c6e

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 105 Branch → ---
Status: REOPENED → NEW
Flags: needinfo?(sphink)

== Change summary for alert #35023 (as of Sat, 06 Aug 2022 02:33:26 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
10% Explicit Memory windows10-64-2004-shippable-qr fission tp6 592,107,090.38 -> 534,423,324.35
8% Explicit Memory macosx1015-64-shippable-qr fission tp6 613,495,821.88 -> 563,866,854.06
8% Resident Memory windows10-64-2004-shippable-qr fission tp6 798,654,561.25 -> 736,476,142.33
5% Heap Unclassified macosx1015-64-shippable-qr fission tp6 141,412,503.95 -> 134,305,710.70
5% Resident Memory macosx1015-64-shippable-qr fission tp6 988,970,125.55 -> 940,276,018.06
5% Heap Unclassified windows10-64-2004-shippable-qr fission tp6 92,835,584.23 -> 88,621,576.70

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=35023

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: