Closed Bug 1726865 Opened 3 years ago Closed 3 years ago

Make new toplevel sites prefer a new content process, new iframes prefer an existing content process

Categories

(Core :: DOM: Content Processes, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
93 Branch
Fission Milestone MVP
Tracking Status
firefox-esr78 --- disabled
firefox-esr91 --- disabled
firefox91 --- disabled
firefox92 --- disabled
firefox93 --- fixed

People

(Reporter: cpeterson, Assigned: nika)

References

Details

(Whiteboard: fission-soft-blocker)

Attachments

(1 file)

For new iframes, try to use an existing content process. For new toplevel sites, try to allocate a new content process, unless we have reach the dom.ipc.processCount.webIsolated limit.

Replace GetNewOrUsedLaunchingBrowserProcess(/* aPreferUsed = */ false) with GetNewOrUsedLaunchingBrowserProcess(/* aPreferUsed = */ !IsTop()) here:

https://searchfox.org/mozilla-central/rev/9dceacf3d761eb91237108ec438d64099a56f442/docshell/base/CanonicalBrowsingContext.cpp#1853

What's the reasoning for this out of curiosity?

Blocks: 1727158

What's the reasoning for this out of curiosity?

Based on the promising early results from our Nightly experiment comparing dom.ipc.processCount.webIsolated limit 1 versus 4 processes per site, we'd like to increase dom.ipc.processCount.webIsolated to something greater than 1. That is bug 1727158.

This bug's proposed change will try to balance the responsiveness benefits versus increased memory usage by preferring to reuse existing content processes for new iframes (assuming they will be lightweight) and use new content processes (until we hit the limit) for toplevel sites in tabs (for improved responsiveness and crash isolation).

Assigning to Nika because, IIRC, she offered last week to write this patch.

Assignee: nobody → nika
Fission Milestone: ? → M8
Whiteboard: fission-soft-blocker

Deferring this bug from Fission Milestone M8 to MVP. This bug doesn't need to block our Release channel experiment (M8) and we wouldn't uplift a fix to Beta 92 this late in the beta cycle.

Fission Milestone: M8 → MVP
Pushed by nlayzell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7fffdb095dd9
Prefer using existing content processes for subframes during process selection, r=farre
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: