Closed Bug 1755385 Opened 3 years ago Closed 3 years ago

Drop non-content process priority to IDLE when going to the background

Categories

(GeckoView Graveyard :: Sandboxing, defect)

Unspecified
All
defect

Tracking

(firefox99 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: agi, Assigned: agi)

References

Details

Attachments

(1 file)

The GPU process is really cheap to restart and restarting it doesn't have side effects, so we should prioritize it lower than harder-to-restart processes like content processes when we're not actively running in foreground.

Blocks: 1331109

Is this already taken care of here, or is there additional work to do? Or do we want an even lower priority for the GPU process?

Flags: needinfo?(agi)

Oh interesting! I think we should just change that to IDLE then. I think we didn't fully understand the meaning of those values back when the code was written.

Assignee: nobody → agi
Flags: needinfo?(agi)
Summary: Drop GPU process priority when going to the background → Drop non-content process priority to IDLE when going to the background

BACKGROUND and FOREGROUND priority lead to the identical oom_adj value of 11
when the app is in the background. Because all non-content processes are
restartable without losing any state, we should prioritize them lower than the
current active tab, which will be prioritized to FOREGROUND when Bug 1753700 is
fixed.

Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ccc93601eab2 Drop non-content process priority to IDLE when backgrounding. r=jonalmeida

Do you know how the BACKGROUND and FOREGROUND priority lead[s] to the identical oom_adj value of 11, where it gets calculated or is that calculated by the Android OS?

Flags: needinfo?(agi)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch

Moving content process management bugs to the new GeckoView::Sandboxing component.

Component: General → Sandboxing
Product: GeckoView → GeckoView Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: