Open Bug 1556558 Opened 5 years ago Updated 4 years ago

Investigate enabling macOS AppNap to save power

Categories

(Core :: Widget: Cocoa, defect, P2)

68 Branch
Unspecified
macOS
defect

Tracking

()

People

(Reporter: haik, Unassigned)

Details

We should investigate enabling AppNap to save power in a way that doesn't cause hangs. See bug 1551990 for more information. The problem with AppNap today is that macOS puts the parent process into the AppNap state, but not child processes. This can cause child processes to generate lots of IPC traffic for the parent when the parent is AppNap'd and can't respond quickly enough.

The priority flag is not set for this bug.
:spohl, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(spohl.mozilla.bugs)
Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P2

Haik, do you think that after we fix the issue described in bug 1567018 comment 27 we should try re-enabling macOS AppNap here? Or are we aware of other issues that would still cause problems due to child processes not entering AppNap mode?

Flags: needinfo?(haftandilian)

(In reply to Stephen A Pohl [:spohl] from comment #2)

Haik, do you think that after we fix the issue described in bug 1567018 comment 27 we should try re-enabling macOS AppNap here? Or are we aware of other issues that would still cause problems due to child processes not entering AppNap mode?

The issue we hoped to be addressing by disabling AppNap was network requests being queued up when content processes run during PowerNap while the parent is not getting to run. Assuming that's correct, it might be a case of needing to tell child processes to stop network activity (see bug 1567018 comment 4). Doing that in a way that doesn't cause all processes to overload the parent again when they wake up. I need a more definitive understanding of what happens during PowerNap and wakeup with network requests. I was never able to reproduce the networking high CPU load.

If we misdiagnosed the problem and it was the sqlite issue all along, then it would be worth trying.

Flags: needinfo?(haftandilian)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.