Welcome to MSDN Blogs Sign in | Join | Help

Welcome to The Metaverse

Navigating the service-oriented, identity aware metaverse

News

  • Disclaimer:
    The content of this blog are my own personal opinions and do not necessarily represent Microsoft's position, commitments or strategy. In addition, my thoughts and opinions often change, and as a weblog is intended to provide a semi-permanent point in time snapshot you should not consider out of date posts to reflect my current thoughts and opinions.




    Add to Technorati Favorites
Vista power management & CPU frequency

For those that have taken the leap and moved to Windows Vista, you might have noticed that when you click the battery icon in your start bar, you now have three batter profiles to choose from: Balanced, Power saver and High performance.

image

Whilst you can explore the different settings that let you control when the PC turns off your screen, your hard drives or puts your computer to sleep, for example, it might not be quite as apparent how your machine's CPU is affected by these different profiles.

image

If you open the Power Options dialog and hit "Change plan settings" for any of the plans and then hit "Change advanced power settings", you'll see a number of knobs you can tweak.

image

One of these settings in particular is the Processor power management item. If you expand out the "Processor power management" settings, you'll see values similar to the following:

According to my "High performance" power profile, the CPU is pegged at 100% (except when it's on battery). image
In the "Balanced" profile, however, the CPU is allowed to range between 5% and 100% of its maximum frequency whether it's plugged in or running on battery. image
Interestingly though, for my "Power saver" profile, the CPU is limited to only operate between 5% and 50% of its maximum frequency.

image

But how does this map out in the real world? Does Vista REALLY enforce these limits in the CPU? Let's take a look. First of all, I open up the Resource Monitor. Then, I set the power profile to "High performance" - here's the CPU chart (note - the blue line shows you the CPU frequency - the green line shows you CPU utilization):

image

As you can see, my CPU's frequency is indeed pegged at 100% even though the CPU utilization is only averaging around 27%. This is because I am plugged in - what happens when I unplug the power? You can see that Vista automatically enters a state where it varies the CPU's operating frequency based on CPU utilization and that the operating frequency pretty closely tracks the CPU utilization.

image

Now, this behavior should be pretty close to what happens with "Balanced" mode, right? Absolutely! In the chart below, we can see that the CPU's frequency tracks the CPU's utilization, never dropping when the CPU is doing more work:

image

Note that this chart was captured from my machine whilst it was plugged in, and operates within the frequency tolerances dictated in settings we saw earlier.

But what happens when we go into "Power saving mode"?

image

Well, as we can see - Vista caps the operating frequency of the CPU to a maximum of 40% regardless of how busy the CPU might be.

This clearly shows that Vista's power management works a treat. Tips: if you're doing anything fairly CPU intensive note that your CPU will take longer to complete the task if on "Power saver" mode. If you need your machine to work as quickly and as responsively as possible, use "High performance" mode, and if you want the best of both worlds, choose "Balanced"!

Duh! ;)

Oh, and don't forget - you can, if you should so wish, go tweak your power profiles to give you the best performance when plugged into the power and to back off when on battery ... take it from me - this comes in real handy when trying to resuscitate a machine whose battery is on its last legs!

Posted: Wednesday, July 11, 2007 3:35 PM by richardt

Comments

Mighell's blog said:

Un po' di spiegazioni (corredate da test) sulla funzionalità di limitazione della frequenza di lavoro

# July 12, 2007 7:44 AM

Mighell's Mobile Blog said:

Un po' di spiegazioni (corredate da test) sulla funzionalità di limitazione della frequenza di lavoro

# July 12, 2007 8:54 AM

Mighell's Mobile Blog said:

Un po' di spiegazioni (corredate da test) sulla funzionalità di limitazione della frequenza di lavoro

# August 19, 2007 6:49 AM

pkellner said:

Great Post!!! good to see some hard numbers. Hope to see you at PDC!

# August 7, 2008 12:22 AM
Anonymous comments are disabled
Page view tracker