View previous topic :: View next topic |
Author |
Message |
elestedt Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 13 Mar 2005 Posts: 383
|
Posted: Wed Jan 25, 2006 6:59 pm Post subject: cpufreq problem |
|
|
Hi,
I'm having some problems with the cpufreq utilities on vanilla-sources-2.6.15.1.
When using the conservative governor it will not change speed but is stuck on the lowest speed all the time - even qhen compiling something like QT 4.0.1 and CPU utilization is at a 100% for a long time.
Some output:
Code: | # cpufreq-info
cpufrequtils 0.4: cpufreq-info (C) Dominik Brodowski 2004
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
driver: centrino
CPUs which need to switch frequency at the same time: 0
hardware limits: 800 MHz - 2.13 GHz
available frequency steps: 2.13 GHz, 1.87 GHz, 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
available cpufreq governors: conservative, userspace
current policy: frequency should be within 800 MHz and 2.13 GHz.
The governor "conservative" may decide which speed to use
within this range.
current CPU frequency is 800 MHz (asserted by call to hardware).
|
Code: | # eix cpufrequtils
* sys-power/cpufrequtils
Available versions: 0.3-r1 0.4
Installed: 0.4
Homepage: http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
Description: Userspace utilities for the Linux kernel cpufreq subsystem
|
It worked perfectly on 2.6.14.5 and older. speedstep_centrino is compiled as a module.
Any ideas? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bollucks l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 27 Oct 2004 Posts: 606
|
Posted: Thu Jan 26, 2006 1:06 pm Post subject: |
|
|
echo 1 to the ignore_nice tunable in /sys for the cpufreq governor you are using. For some strange reason the developer decided to make 'nice'd cpu load not be counted towards cpu load for cpu frequency scaling. You can tune it with this variable (I think it's a lousy default). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
elestedt Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 13 Mar 2005 Posts: 383
|
Posted: Thu Jan 26, 2006 8:58 pm Post subject: |
|
|
bollucks wrote: | echo 1 to the ignore_nice tunable in /sys for the cpufreq governor you are using. For some strange reason the developer decided to make 'nice'd cpu load not be counted towards cpu load for cpu frequency scaling. You can tune it with this variable (I think it's a lousy default). |
Did that - nothing happens.
Code: | # cat /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice
0
# echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice
# cat /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice
1
|
Could the PORTAGE_NICENESS variable have something to do with it as well?
Also - If I enable the usermode governor and maxes the frequency it will automatically reduce the speed a couple of times before settling on about 1/2 of max. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bollucks l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 27 Oct 2004 Posts: 606
|
Posted: Thu Jan 26, 2006 11:43 pm Post subject: |
|
|
elestedt wrote: | bollucks wrote: | echo 1 to the ignore_nice tunable in /sys for the cpufreq governor you are using. For some strange reason the developer decided to make 'nice'd cpu load not be counted towards cpu load for cpu frequency scaling. You can tune it with this variable (I think it's a lousy default). |
Did that - nothing happens.
Code: | # cat /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice
0
# echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice
# cat /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice
1
|
Could the PORTAGE_NICENESS variable have something to do with it as well?
Also - If I enable the usermode governor and maxes the frequency it will automatically reduce the speed a couple of times before settling on about 1/2 of max. |
PORTAGE_NICENESS would set the 'nice' level of the compiles which in concert with the ignore_nice value will change cpufreq scaling. I have heard of problems recently with the conservative governor; try ondemand which you can tune to the same response as conservative anyway. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
elestedt Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 13 Mar 2005 Posts: 383
|
Posted: Fri Jan 27, 2006 12:27 pm Post subject: |
|
|
bollucks wrote: | PORTAGE_NICENESS would set the 'nice' level of the compiles which in concert with the ignore_nice value will change cpufreq scaling. I have heard of problems recently with the conservative governor; try ondemand which you can tune to the same response as conservative anyway. |
I'll try that. It is irritating thou that it only seems to fail when compiling apps (haven't tested outside of emerge though) - otherwise the conservative governor works perfectly. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|