Closed Bug 1939273 Opened 11 months ago Closed 9 months ago

0.32% Base Content Resident Unique Memory (OSX) regression on Tue December 17 2024

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(firefox-esr128 unaffected, firefox133 unaffected, firefox134 unaffected, firefox135 fix-optional, firefox136 fix-optional)

RESOLVED WONTFIX
Tracking Status
firefox-esr128 --- unaffected
firefox133 --- unaffected
firefox134 --- unaffected
firefox135 --- fix-optional
firefox136 --- fix-optional

People

(Reporter: intermittent-bug-filer, Assigned: glandium)

References

(Regression)

Details

(Keywords: perf, perf-alert, regression)

Attachments

(1 file)

Perfherder has detected a awsy performance regression from push 4bb5c3c364320f6bbf083ad979f151e1425e82f0. As author of one of the patches included in that push, we need your help to address this regression.

Regressions:

Ratio Test Platform Options Absolute values (old vs new)
0.32% Base Content Resident Unique Memory macosx1470-64-shippable fission 15,683,669.33 -> 15,733,077.33

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests. Please follow our guide to handling regression bugs and let us know your plans within 3 business days, or the patch(es) may be backed out in accordance with our regression policy.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run all of these tests on try with ./mach try perf --alert 43217

The following documentation link provides more information about this command.

For more information on performance sheriffing please see our FAQ.

If you have any questions, please do not hesitate to reach out to aesanu@mozilla.com.

Flags: needinfo?(arai.unmht)

This is expected, as mentioned in bug 1937701 comment #1 and #2

The size of AppConstants.sys.mjs increases by 6kB for each process, due to the line annotations.
The line annotations had been there when it was JSM, and it's accidentally removed while the ESModule migration, and those bugs revived them.

If the annotation isn't much beneficial, we can revisit the decision and possibly remove it from distributed files.

glandium, can I have your opinion?

Flags: needinfo?(arai.unmht) → needinfo?(mh+mozilla)

Set release status flags based on info from the regressing bug 1936088

It has been over 7 days with no activity on this performance regression.

:arai, since you are the author of the regressor, bug 1936088, which triggered this performance alert, could you please provide a progress update?

If this regression is something that fixes a bug, changes the baseline of the regression metrics, or otherwise will not be fixed, please consider closing it as WONTFIX. See this documentation for more information on how to handle regressions.

For additional information/help, please needinfo the performance sheriff who filed this alert (they can be found in comment #0), or reach out in #perftest, or #perfsheriffs on Element.

For more information, please visit BugBot documentation.

Flags: needinfo?(arai.unmht)
Flags: needinfo?(arai.unmht)

This deals with the easiest part, and cuts 5KB off the size of the
preprocessed file.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Flags: needinfo?(mh+mozilla)
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/d979cd05c79e Reduce the size of preprocessed AppConstants.sys.mjs. r=firefox-build-system-reviewers,nalexander
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch

The patch landed in nightly and beta is affected.
:glandium, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox135 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(mh+mozilla)

For some reason, this wasn't fixed by the patch that landed.

Status: RESOLVED → REOPENED
Flags: needinfo?(mh+mozilla)
Resolution: FIXED → ---
Target Milestone: 136 Branch → ---

It has been over 7 days with no activity on this performance regression.

:arai, since you are the author of the regressor, bug 1936088, which triggered this performance alert, could you please provide a progress update?

If this regression is something that fixes a bug, changes the baseline of the regression metrics, or otherwise will not be fixed, please consider closing it as WONTFIX. See this documentation for more information on how to handle regressions.

For additional information/help, please needinfo the performance sheriff who filed this alert (they can be found in comment #0), or reach out in #perftest, or #perfsheriffs on Element.

For more information, please visit BugBot documentation.

Flags: needinfo?(arai.unmht)

If the @line annotation is useful but only while debugging, how about adding a temporary file that contains the annotation, while not putting it in the final binary?

The preprocessed files are now reflected in the searchfox, and people can easily check the output there (of course in addition to the files in their own objdir).
https://searchfox.org/mozilla-central/search?q=AppConstants.sys.mjs&path=AppConstants.sys.mjs&case=true&regexp=false

We could for example have 2 output files for the preprocess step, one without the annotation for the final binary, and one with the annotation for the debugging purpose,
That way the extra text won't appear in the final binary.
Maybe it could be conditional on the filename extension (e.g. js and mjs), so that we don't have to perform unnecessary steps for files that are only temporary purpose.

This may also help some other preprocessed files that's included in the final binary, such as greprefs.js, where the annotation lines takes 7kB.

Flags: needinfo?(arai.unmht) → needinfo?(mh+mozilla)

The more I look at this, the less I'm convinced it has anything to do with @lines. If I didn't botch things, even a patch that removes all of them without reverting bug 1936088 doesn't get us back to the memory usage from before bug 1936088. At this point, I think the increase in memory is due to the resulting change in how things end up ordered in the omni.ja. But I haven't had the time to check this further.

Flags: needinfo?(mh+mozilla)

Hey glandium, can you please set the priority and severity? Thanks!

Flags: needinfo?(mh+mozilla)

It has been over 7 days with no activity on this performance regression.

:arai, since you are the author of the regressor, bug 1936088, which triggered this performance alert, could you please provide a progress update?

If this regression is something that fixes a bug, changes the baseline of the regression metrics, or otherwise will not be fixed, please consider closing it as WONTFIX. See this documentation for more information on how to handle regressions.

For additional information/help, please needinfo the performance sheriff who filed this alert (they can be found in comment #0), or reach out in #perftest, or #perfsheriffs on Element.

For more information, please visit BugBot documentation.

Flags: needinfo?(arai.unmht)
No longer regressions: 1945868
Regressions: 1945868

It has been over 7 days with no activity on this performance regression.

:arai, since you are the author of the regressor, bug 1936088, which triggered this performance alert, could you please provide a progress update?

If this regression is something that fixes a bug, changes the baseline of the regression metrics, or otherwise will not be fixed, please consider closing it as WONTFIX. See this documentation for more information on how to handle regressions.

For additional information/help, please needinfo the performance sheriff who filed this alert (they can be found in comment #0), or reach out in #perftest, or #perfsheriffs on Element.

For more information, please visit BugBot documentation.

Flags: needinfo?(arai.unmht)
See Also: → 1949783

Moved the annotation part to bug 1949783.

and otherwise we can ignore the regression, as the regressor patch is virtually a part of bug 1881888's patch stack, and bug 1881888 comment #22's improvement should compensate the regression here.
I'll close this as WONTFIX.

Flags: needinfo?(arai.unmht)
Status: REOPENED → RESOLVED
Closed: 10 months ago9 months ago
Resolution: --- → WONTFIX

A comment containing a reason for why the performance regression was resolved as WONTFIX could not be found. It should provided when the status of the bug is changed.

:arai, since you resolved this bug, could you provide a comment explaining the resolution? If one has already been provided, this needinfo can be ignored/removed.

If you need additional information/help, reach out in #perftest, or #perfsheriffs on Element.

For more information, please visit BugBot documentation.

Flags: needinfo?(arai.unmht)
Flags: needinfo?(arai.unmht)
Flags: needinfo?(mh+mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: