Today, I discovered a gem added to the 2.6.9 Linux kernel by Intel engineer Venkatesh Pallipadi: the Ondemand cpufreq governor. This kernel module uses the Enhanced SpeedStep Technology available with Pentium M processors to rapidly change the CPU speed, based on current load.

cpuspeed does the same thing, but takes noticeably longer to reach the maximum speed, and also waits longer before slowing down again. X applications feel much faster with Ondemand, and my guess is that battery life will be slightly better.

So if you have an Intel CPU with Enhanced SpeedStep Technology and want to give Ondemand a try, stop any running cpufreq daemons, like cpuspeed or cpudyn, and run the following commands. Note that I have only tested this on Fedora Core 3 with the 2.6.11-1.14_FC3 kernel.

/sbin/modprobe cpufreq_ondemand
echo ondemand > /sys/devices/system/cpu/*/cpufreq/scaling_governor

You can then start

watch -n 1 cat /sys/devices/system/cpu/*/cpufreq/scaling_cur_freq

in a terminal window, and run some X application to see how Ondemand changes the CPU speed.

To permanently install Ondemand, make sure that the cpuspeed service is turned off, and add the above modprobe and echo commands to /etc/rc.d/rc.local.

If you want to switch back to cpuspeed for some reason, you can deactivate Ondemand by running

echo userspace > /sys/devices/system/cpu/*/cpufreq/scaling_governor
Update 14 Apr 2006: This also works with Fedora Core 5.

00:01, 30 Apr 2005 by Carsten Clasohm Permalink | Comments (3)

RSS

Archive

April 2005
S M T W T F S
         
10  11  12  13  14  15  16 
17  18  19  20  21  22  23 
24  25  26  27  28  29  30 
September 2008
July 2008
June 2007
May 2007
March 2007
January 2007
December 2006
September 2006
June 2006
April 2006
March 2006
February 2006
January 2006
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
January 2005
December 2004
November 2004
October 2004

Blog Categories

Hiking (5)
Desktop Linux (28)
Server Linux (5)
Palm (3)
Photography (5)
Politics (2)
Web Applications (15)

Notifications

Request notifications

Syndication Feed

RSS

Recent Comments

  1. Anonymous Visitor: Thanks
  2. Anonymous Visitor: AT&T U.S.
  3. Anonymous Visitor: All went well under CentOS 5.0 in Croatia (VIP network)
  4. Anonymous Visitor: tmp crypt not necessary
  5. Anonymous Visitor: Great article
  6. Anonymous Visitor: So it's not a Virus...
  7. Anonymous Visitor: Thanks! Helps also on Windows!
  8. Anonymous Visitor: Thank you
  9. Anonymous Visitor: Economic Incentives
  10. Anonymous Visitor: thank you