Closed Bug 1619676 Opened 4 years ago Closed 4 years ago

Raise the priority of content processes that are being shut down

Categories

(Core :: DOM: Content Processes, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: gsvelto, Unassigned)

References

Details

(Whiteboard: [fxperf])

In bug 1366356 we made sure that a content process not running a foreground tab had its CPU priority demoted. During content process shutdown this can be problematic, as the content process might not be allocated enough CPU time and will get killed instead of shutting down cleanly.

We should raise the CPU priority of a content process right before we send it the IPC shutdown message to make sure it'll have time to shut down cleanly.

See Also: → 1614305
Whiteboard: [fxperf]

This feels a little backwards to me. Why are we potentially janking foreground tabs to avoid shutdown hang kills users don't even notice? You could also do something like increase the hang timeout if they are a real issue.

My inclination is to agree with Andrew except in the case where we're shutting down the whole browser, since we block the parent process waiting for content processes to shut down.

Alright, I hadn't considered the possibility that this would jank foreground processes but indeed that's the case, so I'm closing this as INVALID.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.