Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cpufreq problem
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
elestedt
Guru
Guru


Joined: 13 Mar 2005
Posts: 383

PostPosted: Wed Jan 25, 2006 6:59 pm    Post subject: cpufreq problem Reply with quote

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
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Thu Jan 26, 2006 1:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
elestedt
Guru
Guru


Joined: 13 Mar 2005
Posts: 383

PostPosted: Thu Jan 26, 2006 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Thu Jan 26, 2006 11:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
elestedt
Guru
Guru


Joined: 13 Mar 2005
Posts: 383

PostPosted: Fri Jan 27, 2006 12:27 pm    Post subject: Reply with quote

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
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