<div dir="ltr">On Thu, Sep 4, 2008 at 6:39 AM, Soren Hansen <span dir="ltr"><<a href="mailto:soren@ubuntu.com">soren@ubuntu.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, guys!<br>
<br>
I'm considering adding powernowd to the server seed, which means that it<br>
will be installed by default on server installs (unless you choose the<br>
minimal install method located in the "Modes" menu (press F4 to see it<br>
at the bootsplash)).  If the installed kernel supports the ondemand<br>
scaling governor, powernowd's init script simply tells the kernel to use<br>
that. If for some reason the kernel doesn't support this, it falls back<br>
to the userspace governor, spawns a daemon that monitors cpu usage and<br>
adjusts cpufreq accordingly. The win, of course, is that you'll save<br>
power, money, and the rain forest. :)<br>
<br>
Unless anyone objects, I'll file an FFe for this change, or at least<br>
queue it for Intrepid+1.<br>
<font color="#888888"><br>
--<br>
Soren Hansen               |<br></font></blockquote><div><br>Will this automatically load the necessary driver modules, too?  On Hardy I have to manually add 'acpi_cpufreq' and 'cpufreq_ondemand' to /etc/modules in order to get the ondemand governor available.<br>
<br>Incidentally, I use the following lines added to /etc/rc.local for my home server's power savings:<br>---<br>echo "   Enabling multi-core cpu power savings."<br>echo 1 > /sys/devices/system/cpu/sched_mc_power_savings<br>
echo "   Enabling on-demand cpu scheduling for cpu0."<br>echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor<br>echo "   Enabling on-demand cpu scheduling for cpu1."<br>echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor<br>
echo "   Setting sleep timout for /dev/sda."<br>hdparm -S 12 /dev/sda<br># add additional hard drives here<br>echo "   Putting kernel in laptop mode."<br>echo 5 > /proc/sys/vm/laptop_mode<br>---<br>
<br>Another option I've heard about to keep a company server more "green" is to set a cron job to enable these features during off-peak usage hours and then disable the power savings when you need faster response during peak hours.  There is also another option you can use with hdparm if your harddrive supports power management features (mine doesn't).<br>
<br>James<br></div></div></div>