Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CPU Scaling Issue - cpufreqd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Mon Jan 09, 2006 12:49 am    Post subject: CPU Scaling Issue - cpufreqd Reply with quote

cpufreq-info:
Code:

bigun@64lappy ~ $ cpufreq-info
cpufrequtils 0.3: cpufreq-info (C) Dominik Brodowski 2004
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 2.00 GHz
  available frequency steps: 2.00 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: conservative, ondemand, powersave, userspace, performance
  current policy: frequency should be within 800 MHz and 2.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 2.00 GHz.


So 800 MHz should be possible....

Here is my cpufreqd.conf:
Code:

[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
pm_type=acpi
# Uncomment the following line to enable ACPI workaround (see cpufreqd.conf(5))
# acpi_workaround=1
verbosity=4 #(if you want a minimal logging set to 5)

# Full performance
[Profile]
name=ac
minfreq=800000
maxfreq=2000000
policy=performance

# Maximum power saving
[Profile]
name=battery
minfreq=800000
maxfreq=800000
policy=powersave

# Constant frequency
[Profile]
name=dvd
minfreq=800000
maxfreq=2000000
policy=powersave

# Full performance when running on AC
[Rule]
name=ac_on
ac=on
profile=ac

# Compiling should be fast if battery state is ok
[Rule]
name=compiling
ac=off
battery_interval=30-100
programs=emerge,make,gcc,cpp
cpu_interval=0-100
profile=ac

# watching DVD's gets sluggish with slow CPU frequency
# Can also be used for games etc.
[Rule]
name=dvd_watching
ac=off
battery_interval=15-100
programs=xine,mplayer,avidemux,kaffeine,kmplayer,ogle
cpu_interval=0-100
profile=dvd

# If above doesn't apply, maximise power saving
[Rule]
name=battery_on
ac=off
battery_interval=0-100
cpu_interval=0-100
profile=battery


But for some reason, instead of going to 800 Mhz, it only drops to 1.6 GHz when I unplug it. Ideas?
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Mon Jan 09, 2006 2:57 am    Post subject: Reply with quote

I have the same problem. What the system says and what the scaling frequencies are, don't match. I've filed a bug but so far, no bites.

Cpufreq.conf doesn't set what frequencies you can go to, powersave and the other modules do. Somehow there's a misread in the kernel.

If you go to the /sys/devices/system/cpu/cpu0/cpufreq directory and look at the values in the files, scaling_min_freq != cpuinfo_min_freq and they absolutely should.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Mon Jan 09, 2006 4:04 pm    Post subject: Reply with quote

I can set it to 800 MHz manually by using:
Code:
cpufreq-set -f 800000


But yeah, cpufreqd doesn't.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
hvengel
Guru
Guru


Joined: 19 Sep 2004
Posts: 515

PostPosted: Mon Jan 09, 2006 6:59 pm    Post subject: Reply with quote

There apear to be problems in the amd drivers that were introduced in kernel 2.6.12. This change intended to make speed scaling work with dual core processors. I started seeing random stability problems wieh I installed 2.6.12 with my 3500 Winchester. But these rair enough that I didn't presue resolving them. But I was having problems mostly with firefox crashing. A few weeks ago I upgraded to an X2 and my system became very unstable in both Linux and Windows (with the X2 version of the AMD CPU driver). I was running kernel 2.6.14-r2 at the time. I removed the speed scaling drivers and the system is now totally stable. Even firefox has stopped crashing. So there appear to be significant problems with these drivers starting with kernel 2.6.12.
Back to top
View user's profile Send private message
JohnnieStalker
n00b
n00b


Joined: 30 Dec 2005
Posts: 6

PostPosted: Tue Jan 10, 2006 5:04 am    Post subject: Reply with quote

yep
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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