Closed Bug 2095529 Opened 14 days ago Closed 10 days ago

29.24 - 8.54% background-resource rss-tab-start + 23 more (Android) regression on Wed November 18 2026

Categories

(Core :: IPC, defect)

Firefox 162
defect

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- unaffected
firefox161 --- unaffected
firefox162 --- wontfix
firefox163 --- fixed

People

(Reporter: performance-sheriff-bot, Assigned: nika)

References

Details

(Keywords: perf, perf-alert, regression)

Attachments

(1 external file)

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

Please acknowledge, and begin investigating this alert within 3 business days, or the patch(es) may be backed out in accordance with our regression policy.

Regression Test Platform Options Absolute values [old vs new]
29% background-resource rss-tab-start android-hw-a55-14-0-aarch64-shippable 573,590.00 Kb -> 741,284.33 Kb
29% background-resource rss-tab-50% android-hw-a55-14-0-aarch64-shippable 576,324.00 Kb -> 744,251.67 Kb
29% background-resource rss-tab-10% android-hw-a55-14-0-aarch64-shippable 575,737.67 Kb -> 743,404.00 Kb
28% background-resource rss-tab-end android-hw-a55-14-0-aarch64-shippable 576,740.00 Kb -> 740,502.67 Kb
23% foreground-resource rss-tab-end android-hw-a55-14-0-aarch64-shippable 740,262.33 Kb -> 908,230.67 Kb
23% foreground-resource rss-tab-50% android-hw-a55-14-0-aarch64-shippable 741,132.33 Kb -> 908,088.33 Kb
22% foreground-resource rss-tab-10% android-hw-a55-14-0-aarch64-shippable 747,570.67 Kb -> 913,469.67 Kb
22% foreground-resource rss-tab-start android-hw-a55-14-0-aarch64-shippable 748,165.00 Kb -> 913,633.67 Kb
18% background-resource pss-tab-10% android-hw-a55-14-0-aarch64-shippable 132,763.25 Kb -> 156,213.67 Kb
18% background-resource pss-tab-50% android-hw-a55-14-0-aarch64-shippable 132,780.08 Kb -> 156,151.92 Kb
... ... ... ... ...
11% background-resource rss-total-10% android-hw-a55-14-0-aarch64-shippable 1,585,892.33 Kb -> 1,760,744.33 Kb
9% foreground-resource rss-total-end android-hw-a55-14-0-aarch64-shippable 1,854,069.17 Kb -> 2,019,749.67 Kb
9% foreground-resource rss-total-start android-hw-a55-14-0-aarch64-shippable 1,901,434.83 Kb -> 2,071,454.00 Kb
9% foreground-resource rss-total-50% android-hw-a55-14-0-aarch64-shippable 1,859,493.83 Kb -> 2,023,289.67 Kb
9% foreground-resource rss-total-10% android-hw-a55-14-0-aarch64-shippable 1,871,097.00 Kb -> 2,030,953.33 Kb
Improvement Test Platform Options Absolute values [old vs new]
4% background-resource pss-rdd-50% android-hw-a55-14-0-aarch64-shippable 20,575.42 Kb -> 19,802.17 Kb
4% background-resource pss-rdd-start android-hw-a55-14-0-aarch64-shippable 20,541.71 Kb -> 19,775.00 Kb
4% background-resource pss-rdd-10% android-hw-a55-14-0-aarch64-shippable 20,540.79 Kb -> 19,776.58 Kb

Support & Actionable Steps

For questions, please contact acseh@mozilla.com. You can also find help on Slack (#perf-help) or Matrix (#perftest).

Action guide details:

Flags: needinfo?(afinder)
Component: Performance → IPC
Flags: needinfo?(afinder) → needinfo?(nika)
Product: Testing → Core
Target Milestone: --- → 163 Branch
Version: unspecified → Firefox 162

I believe the cause here is that the addition of forced COOP for privilegedabout processes is causing us to start a new process, as we now change BCGs. Previously, loading about:blank -> about:home -> someWebsite would reuse the web process for about:blank and someWebsite, while loading about:home in privilegedabout. However after this change, there's nothing forcing the re-use. This normally wouldn't cause an issue (we'd re-use the empty web process), but some background GeckoSession re-uses the about:blank's web process while about:home is loaded, leading to the someWebsite load starting an extra content process.

Normally basically every navigation acts like a COOP navigation, however we don't allow adding about:home to the BFCache, which I believe is the source of the difference here.

TBH I don't see why about:home needs to be in privilegedabout on android. We don't actually render the home page UI with Gecko on Android (that's handled by the embedder), so it's just a placeholder in session history and could be loaded in a generic web content process. I think this would save 2 content processes, as we both wouldn't have the privilegedabout process, and wouldn't have the extra web process as we would not trigger COOP/BFCache.

I'll post a patch to change about:home to not be marked to load in privilegedabout on Android anymore, and see if it fixes it (perf run: https://perf.compare/compare-lando-results?landoInstance=lando-prod-2025&baseLando=123500&newLando=123501&baseRepo=try&newRepo=try&framework=15)

Flags: needinfo?(nika)

This appears to have been copied from Desktop in bug 1962312. On Desktop
it's important to isolate about:home as it has special privileges due
to being the newtab page, but on Android, it's just an empty placeholder
document used to reserve a spot in session history.

Removing this isolation should reduce the number of unnecessary content
processes started on Android, as a normal user is unlikely to start a
privilegedabout process.

Assignee: nobody → nika
Status: NEW → ASSIGNED

The perf results look good, it seems like this reduces the number of processes loaded in the test case back down, and saves the corresponding amount of RSS.

Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED

The patch landed in nightly and beta is affected.

:nika, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox162 to wontfix if the fix can wait for the next release.

Uplift requests can be submitted from Lando: D344716.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(nika)

As this is mostly only a CI regression, and an improvement in practice, I'm not planning to uplift to beta.

Flags: needinfo?(nika)
Regressions: 2098084
Duplicate of this bug: 2079704
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: