Skip navigation
VMware

This Question is Answered

1 "correct" answer available (10 pts)
3,019 Views 13 Replies Last post: Jun 3, 2009 5:48 PM by E8500 RSS
E8500 Novice 5 posts since
May 24, 2009
Currently Being Moderated

May 24, 2009 12:26 AM

How to set Power.CpuPolicy to "dynamic"?

 

I've upgrade my ESXi 3 server to ESXi 4.

 

 

I'm trying to change CPU power management policy to utilize Dynamic Voltage and Frequency Scaling(DVFS) as discrived in vSphere Resource Management Guide.

 

 

It states that to set the CPU power management policy for DVFS, set the advanced host attribute Power.CpuPolicy to "dynamic".

 

 

However, I tryed to to set Power.CpuPolicy from vsphere Client, it made a error dialog, "The value entered is not valid. Enter another value."

 

 

I would like to know how to set  Power.CpuPolicy to "dynamic"?

 

 

Thank you

 

 

AndreTheGiant Guru User Moderators vExpert 14,462 posts since
Aug 28, 2008
Currently Being Moderated
1. May 24, 2009 12:28 AM in response to: E8500
Re: How to set Power.CpuPolicy to "dynamic"?

Do your hardware support this feature?

Sometimes you must enable in BIOS.

 

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
AndreTheGiant Guru User Moderators vExpert 14,462 posts since
Aug 28, 2008
Currently Being Moderated
3. May 24, 2009 7:17 AM in response to: E8500
Re: How to set Power.CpuPolicy to "dynamic"?

Have you set Power.CpuPolicy to "dynamic" successfully?

Not yet, cause I'm not using VS4 in production.

And in my testing environment I do not have CPU with this function. 

 

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
dorofeev Novice 12 posts since
Sep 22, 2006
Currently Being Moderated
4. May 29, 2009 10:58 PM in response to: E8500
Re: How to set Power.CpuPolicy to "dynamic"?

 

If you got an error when setting Power.CpuPolicy property to "dynamic", then it means that your system does not have proper support for DVFS.  What do you see under "Configuration" tab when you click on "Processor" section?  There should be new field called "Hardware Support" which should say what type of power management hardware support was detected.  Also, make sure your server has power management enabled in the BIOS.  In general, power management (DVFS) is supported on Intel Core family of CPUs and on AMD Greyhound/Barcelona and newer. 

 

 

LucasAlbers Expert 563 posts since
Mar 29, 2005
Currently Being Moderated
6. Jun 2, 2009 8:37 AM in response to: E8500
Re: How to set Power.CpuPolicy to "dynamic"?

 

I have 3 dell r905 servers running esxi and 4.0 with dynamic policy set.  4.0 uses 40% less power (watts) at it's current idle load.

 

 

esxi 3.5: 420 - 429

 

 

esxi 3.5: 385 - 399

 

 

esxi 4.0 with dynamic power policy: 259 - 280.

 

 

(259 * 2) / (420 + 385) = 0.643478261

 

 

That is amazing, and trivial to enable.

 

 

YMMV depending on your load.

 

 

 

 

 

dorofeev Novice 12 posts since
Sep 22, 2006
Currently Being Moderated
7. Jun 2, 2009 11:28 AM in response to: E8500
Re: How to set Power.CpuPolicy to "dynamic"?

That's not unexpected at all.  Depending on the processor type and model, decreasing CPU frequency when processor is idle may or may not provide any power savings. Many recent Intel processors support C1E state, which automatically reduces core frequency when the whole package is idle (all cores are idle).  This means that reducing frequency using DVFS algorithm in ESX when package is relatively idle is not going to help since the hardware is already doing it.  However, even on those systems, you can still expect to see some power savings when there is some load.  C1E only works in cases when packages are almost completely idle, and DVFS algorithm in ESX can help to save power when load is somewhere below 60% (which is a configurable threshold by the way).  DVFS will continously monitor CPU utilization and make sure that core frequency is not unnecessarily higher than what is currently required.  So, for example, if CPU utilization is 25% when CPU is running with its highest frequency, ESX can reduce frequence almost in half thus potentially increasing CPU utilization to 50% but still leaving enough headroom for sudden changes in CPU load.  DVFS algorithm used in ESX is very conservative, and it aims to save power while not affecting performance.  Hope this helps.

dorofeev Novice 12 posts since
Sep 22, 2006
Currently Being Moderated
8. Jun 2, 2009 11:27 AM in response to: LucasAlbers
Re: How to set Power.CpuPolicy to "dynamic"?

Lucas: That's really good to hear!  Can you please tell what processors do these Dell R905 systems have?  Do they have quad-core AMD Barcelonas?

LucasAlbers Expert 563 posts since
Mar 29, 2005
Currently Being Moderated
9. Jun 2, 2009 12:42 PM in response to: dorofeev
Re: How to set Power.CpuPolicy to "dynamic"?

 

quad core amd opteron 8380

 

 

 

 

 

dorofeev Novice 12 posts since
Sep 22, 2006
Currently Being Moderated
11. Jun 2, 2009 4:51 PM in response to: E8500
Re: How to set Power.CpuPolicy to "dynamic"?

Correct.  The C1E enhancement is doing pretty good job of saving power on CPUs that are mostly idle. If you're interested, try disabling C1E in the BIOS (some systems let you do that) and measure idle power with C1E off.

LucasAlbers Expert 563 posts since
Mar 29, 2005
Currently Being Moderated
12. Jun 3, 2009 9:21 AM in response to: E8500
Re: How to set Power.CpuPolicy to "dynamic"?

 

What happens if you turn all the vm's off?

 

 

Then what does the power usage show?

 

 

Are you limiting the vm's to only run on a  subset of the cpu's?

 

 

 

 

 

Bookmarked By (0)

Share This Page

Communities