Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
'ondemand' CPU governor stuck at lowest speed after suspend
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
piedar
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2010
Posts: 82

PostPosted: Mon Jan 03, 2011 5:11 am    Post subject: 'ondemand' CPU governor stuck at lowest speed after suspend Reply with quote

I've had this problem for a long time now, since back when I used Ubuntu. After resuming from suspend, the 'ondemand' CPU frequency governor (which I use almost exclusively) gets stuck at the lowest possible speed (800 MHz). The other governors work fine and rebooting returns 'ondemand' to full function. If I switch out to the 'performance' governor, start some processes, and quickly switch back to 'ondemand', it stays at higher speeds as long as necessary and will drop to lower speeds, but once that happens it will not go back up to a higher speed.

My processor:
cat /proc/cpuinfo wrote:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU T9900 @ 3.06GHz
stepping : 10
cpu MHz : 800.000
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dts tpr_shadow vnmi flexpriority
bogomips : 6119.05
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU T9900 @ 3.06GHz
stepping : 10
cpu MHz : 800.000
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dts tpr_shadow vnmi flexpriority
bogomips : 6117.66
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:


I am using the in-kernel frequency governors:
menuconfig wrote:
[*] CPU Frequency scaling
[*] Enable CPUfreq debugging
< > CPU frequency translation statistics
Default CPUFreq governor (ondemand) --->
-*- 'performance' governor
<*> 'powersave' governor
<*> 'userspace' governor for userspace frequency scaling
-*- 'ondemand' cpufreq policy governor
<*> 'conservative' cpufreq governor
*** CPUFreq processor drivers ***
< > Processor Clocking Control interface driver
<*> ACPI Processor P-States driver
< > AMD Opteron/Athlon64 PowerNow!
< > Intel Enhanced SpeedStep (deprecated)
< > Intel Pentium 4 clock modulation


This bug is the closest thing I can find to this problem, but nothing seems to have come of it. Any ideas?
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Mon Jan 03, 2011 5:46 am    Post subject: Reply with quote

Hi,
you can set the Ondemand governor to a shorter time between each kernel check for cpu usage change and decrease the percentage of the CPU load at witch ondemand switch to the maximum frequency:
Code:
echo 2000000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo 40             > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

This can be done on each CPU.

I just come to discover this and Compiz is more stable then before with Ondemand governor. Before, with the default settings, the graphic card locked and Compiz crashed. Only Powersave and of course Performance governors advoid that, as if scaling or throttling was the only reason of this.
_________________
Paul
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum