Open Bug 1699746 Opened 5 years ago Updated 1 year ago

Evaluate throttling the amount of power available to background processes

Categories

(Core :: DOM: Content Processes, enhancement, P2)

Unspecified
Windows
enhancement

Tracking

()

People

(Reporter: gsvelto, Unassigned)

References

Details

Windows scheduler can be instructed to throttle the amount of power being used by a given process. According to Microsoft documentation:

ProcessPowerThrottling enables throttling policies on a process, which can be used to balance out performance and power efficiency in cases where optimal performance is not required. When a proces opts in to throttling, the system will try to increase power efficiency through strategies such as capping CPU frequency or using more power efficient cores. Power throttling is typically used when the process is not contributing to the user experience, which provides longer battery life without obvious compromises to an application's performance. If an application doesn't explicitly handle power throttling, the system will use its own heuristics to automatically manage power throttling.

We should evaluate using this for background processes.

Implementation would require changing hal_impl::SetProcessPriority() to call SetProcessInformation() with an appropriately filled PROCESS_POWER_THROTTLING_STATE structure.

See Also: → 1699744

Also CC'ing Bob and Toshihito who know Windows stuff better than I do.

Component: IPC → DOM: Content Processes
Severity: -- → S3
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.