mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.27.10:  CPU ondemand governor doesn't work well
@ 2009-01-04 12:05 Toralf Förster
  0 siblings, 0 replies; only message in thread
From: Toralf Förster @ 2009-01-04 12:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: cpufreq

[-- Attachment #1: Type: text/plain, Size: 1885 bytes --]

Starting with kernel 2.6.27.10 I observed sometimes that my ThinkPad T41 stays 
at CPU frequency of 600 MHz when I run a lot of processes with nice level 3 
and few more at 19 - even if I have some foreground jobs which normally force 
the CPU to go to at 1700 MHz 
A typical scenario is to compile glibc at a Gentoo system mit "make -j 2" and 
then run another make job at nice level 0 or try to start firefox (which 
start time itself is OTOH slow enough even with 1.7 GHz). I can quantify this 
observation with a quick&dirty command line like :

$> time factor 819734028463158891

I would expect a real value of 6-7 seconds and a user value of 5-6 seconds. 
However when I used it 2 times in a row I got :

tfoerste@n22 ~ $ time factor 819734028463158891
819734028463158891: 3 273244676154386297

real    0m51.658s
user    0m15.691s
sys     0m0.013s

tfoerste@n22 ~ $ time factor 819734028463158891
819734028463158891: 3 273244676154386297

real    0m19.136s
user    0m6.944s
sys     0m0.044s

BTW during startup I set :

$>echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load

My system:

tfoerste@n22 ~ $ uname -a
Linux n22 2.6.27-gentoo-r7 #12 Sun Dec 28 18:26:57 CET 2008 i686 Intel(R) 
Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux

The appropriate kernel config values are :

tfoerste@n22 ~/devel/wireshark/docbook $ zgrep -e GOV -e 
FREQ /proc/config.gz  | grep -v '#'
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_STAT=m
CONFIG_CPU_FREQ_STAT_DETAILS=y
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_X86_ACPI_CPUFREQ=m
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_IDLE_GOV_MENU=y

-- 
MfG/Sincerely

Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-04 12:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-04 12:05 2.6.27.10: CPU ondemand governor doesn't work well Toralf Förster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®