EcoQoS is a new Quality of Service (QoS) level introduced to Windows that developers can now opt-in to run their work efficiently, leading to better energy efficiency/increased battery life, reduced fan noise and power/thermal throttling. It contributes to the Microsoft’s Sustainable Software and Microsoft’s Carbon Negative by 2030 initiative.
Management of processor power consumption is important to provide optimal battery life and performance for users. The processor clock speed is a key player in this regard. As simulated in the figure below, higher clock speeds provide higher performance but with exponentially higher power consumption. This higher power drain can result in worse battery life, higher temperatures, and louder fan noise. Not all tasks require the absolute highest performance, so Windows dynamically reconfigures the processor to provide the proper balance of performance and power efficiency.
Windows associates a Quality of Service (QoS) for processes and threads which indicates the balance of performance and power efficiency. Starting with Windows 10 Insider Preview Build 21359, Windows includes a new Quality of Service level called EcoQoS. This new QoS level is valuable for workloads that do not have a significant performance or latency requirement, to enable them to always run in an energy efficient manner. Developers can call APIs to explicitly opt in their processes and threads to be identified as EcoQoS, and Windows takes care of the rest. Windows will take this as a hint to automatically schedule this work to the most efficient processors, and to configure the processors to run at the most efficient clock speed. The usage of EcoQoS is ideal for background services, updaters, sync engines, indexing services, and more, where energy efficiency is the focus.
Initial assessment of EcoQoS has been shown to provide up to a 90% reduction in CPU power consumption, while consuming less than half the CPU energy to complete the same work.
We are encouraging developers to take advantage of this API to enable their work to be run more efficiently. Usage of EcoQoS provides:
- Energy efficiency & Sustainability
- Reduced heat and fan noise
- Reduced power/thermal throttling – improving the performance of concurrent workloads
We worked with our silicon partners to tune processor power management for optimal efficiency. The platform automatically knows the optimal tuning for the EcoQoS processes and threads.
Initial rollout of tuning for EcoQoS includes most of the latest Intel®’s 10th and 11th Generation Mobile Processors, AMD™ Ryzen™ 5000 Series Mobile Processors, and Qualcomm’s series of processors. Over time we will expand our tuning for EcoQoS to a wider range of silicon, expanding these efficiency improvements to a broader range of devices, including desktop PCs.
The SetProcessInformation and SetThreadInformation functions provide a means for opting into EcoQoS on a particular process or individual thread respectively. Developers can call these functions and specify the use PowerThrottling to cause the process/thread to be identified as EcoQoS and execute more efficiently.