News

EcoQoS Throttles Power for Sustainable Software Development

A new quality-of-service level for Windows lets developers throttle their power consumption when it makes sense, contributing to Microsoft's Sustainable Software and Carbon Negative initiatives.

Called EcoQoS, it builds on Windows QoS policies associated with networking bandwidth management. Windows can also associate a Quality of Service (QoS) for processes and threads for a balance of performance and power efficiency. The new opt-in QoS level pertains directly to developers who can now adjust processor power consumption when battery-draining and environment-damaging high performance isn't needed, for example when there's no need for super-high clock speeds or low latency.

The announcement was made in the company's Sustainable Software blog, part of the company's environmental efforts that also include an initiative to become carbon negative by 2030.

"Developers can call APIs to explicitly opt in their processes and threads to be identified as EcoQoS, and Windows takes care of the rest," said Raymond Li, program manager, Windows Fundamentals, in a May 21 blog post. "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."

He noted that along with environmental friendliness, high processor speeds contribute to short battery life, louder fan noise and higher temperatures.

This chart chows how higher clock speeds boost performance but also exponentially increase power consumption:

CPU Power Consumption and Frequency
[Click on image for larger view.] CPU Power Consumption and Frequency (source: Microsoft).

For now, with the cooperation of silicon-making partners, EcoQoS works with mobile-centric chips, but Microsoft is aiming for a wider range of silicon and devices, including desktops. The first software build to support EcoQoS is Windows 10 Insider Preview Build 21359.

As noted, developers opt in to use the service with its API support. "The SetProcessInformation and SetThreadInformation functions provide a means for opting into EcoQoS on a particular process or individual thread respectively," Li said. "Developers can call these functions and specify the use PowerThrottling to cause the process/thread to be identified as EcoQoS and execute more efficiently."

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube