Closed
Bug 1706383
Opened 3 years ago
Closed 3 years ago
Investigate whether dom.ipc.processPriorityManager.backgroundGracePeriodMS may help with content terminations
Categories
(GeckoView :: General, enhancement, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
90 Branch
People
(Reporter: bugzilla, Assigned: bugzilla)
References
Details
(Keywords: leave-open, Whiteboard: [geckoview:m90])
Attachments
(1 file)
This pref, as well as dom.ipc.processPriorityManager.backgroundPerceivableGracePeriodMS
, cause the priority manager to wait until the grace period elapses before dropping priority.
Updated•3 years ago
|
Priority: -- → P1
Whiteboard: [geckoview:m90?] → [geckoview:m90]
Assignee | ||
Updated•3 years ago
|
Assignee: nobody → aklotz
Assignee | ||
Updated•3 years ago
|
Keywords: leave-open
Assignee | ||
Comment 1•3 years ago
|
||
Because of the way the process priority manager works, a tab switch may alter
priorities like so:
- User switches from
tab1
totab2
; - We drop
tab1
's content process priority; - We raise
tab2
's content process priority;
But if tab1
and tab2
live in the same content process, then not only is
the priority adjustment redundant, it gives Android an opportunity to kill
the content process between steps (2) and (3)!
By setting a brief grace period, the priority manager will wait a bit until
dropping priority of tab1
:
- User switches from
tab1
totab2
; - We start the grace period for dropping
tab1
's priority; - We go to raise
tab2
's priority, but since the content process is already
foreground, this becomes a no-op; - Grace period expires for
tab1
, but we see thattab2
is still using our
content process, so the "drop" becomes a no-op.
Nightly only for now, we'll see how this affects tab kills.
Pushed by aklotz@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9927b4e6d1c1 Set process priority manager grace periods for GeckoView Nightly; r=geckoview-reviewers,agi
Comment 3•3 years ago
|
||
bugherder |
Assignee | ||
Comment 4•3 years ago
|
||
I'm going to resolve this and follow up on the analysis elsewhere.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•