You are not logged in.

#1 2008-05-05 21:13:04

Yes
Member
Registered: 2008-03-29
Posts: 163

cpufrequtils, when does it increase the CPU speed?

I just installed cpufreqtils and set it up, and it lowered my CPU frequency from 2.33 GHz to 2.00.  I wanted to see if it would bring it back up, but when I tried compiling something it stayed at 2.00, even though the CPU usage was almost 100 %.  Does this mean I configured something wrong, or does it just take a few minutes to come back up?  It was only Irssi, so it wasn't at 100 % for more than 30 seconds.

Thanks!

Offline

#2 2008-05-05 21:57:41

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: cpufrequtils, when does it increase the CPU speed?

Is the maximum frequency set right?
/etc/conf.d/cpufreq
That's my best guess.
Adjust the min value too. My core duo has two 1.6GHz cores, and they spend most of their time at 800MHz.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#3 2008-05-05 22:00:22

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: cpufrequtils, when does it increase the CPU speed?

It adjusts based on the governor you choose. The cpufreq governing is described here: http://www.mjmwired.net/kernel/Document … ernors.txt (this is a random find via google, there may be better docs elsewhere)

Offline

#4 2008-05-05 22:11:06

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: cpufrequtils, when does it increase the CPU speed?

Thanks for the link. I was wondering what the difference was.


Is your governor set to powersave?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#5 2008-05-05 22:21:02

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: cpufrequtils, when does it increase the CPU speed?

My governor is set to ondemand, and if I understand correctly that means it should increase when it needs to. 

The min/max values are 2.00 Ghz and 2.33 GHz, which is what cpufreq-info says the hardware limits are.

Offline

#6 2008-05-05 22:39:38

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: cpufrequtils, when does it increase the CPU speed?

Try setting it to performance and see if it goes up to 2.33 then
Or open the largest app you can think of. A virtual machine brings my cpu scaling to max for almost the entire time the guest OS is running.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#7 2008-05-05 22:50:56

low
Member
Registered: 2007-07-04
Posts: 109

Re: cpufrequtils, when does it increase the CPU speed?

I have the clock values commented out in /etc/conf.d/cpufreq, the kernel detects them and sets the limits automatically. Also, dunno if it is necessary, but I have 'cpufreq' in rc.conf.

Offline

#8 2008-05-06 19:40:29

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: cpufrequtils, when does it increase the CPU speed?

Commenting out the lines doesn't do anything.  I have cpufreq in my rc.conf.

I tried setting it to performance with `cpufreq-set -g performance`, but cpufreq-info still reported the speed as being 2.00 GHz.

Offline

#9 2008-05-06 22:09:23

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: cpufrequtils, when does it increase the CPU speed?

acpi-cpufreq cpufreq_ondemand cpufreq_powersave

did you add these modules to the modules section in rc.conf?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#10 2008-05-06 22:33:25

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: cpufrequtils, when does it increase the CPU speed?

I have acpi-cpufreq and cpufreq_ondemand, but not cpufreq_powersave.  Do I need that too?  I modprobed it before I tried `cpufreq-set -g performance`.

Offline

#11 2008-05-06 22:38:43

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: cpufrequtils, when does it increase the CPU speed?

you need powersave if you want to use the powersave governor.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#12 2008-05-06 23:14:37

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: cpufrequtils, when does it increase the CPU speed?

Ok, but if I'm using ondemand I don't need powersave in rc.conf, right?

Offline

#13 2008-05-06 23:18:09

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: cpufrequtils, when does it increase the CPU speed?

Yes wrote:

Ok, but if I'm using ondemand I don't need powersave in rc.conf, right?

Right.  I use ondemand and don't have powersave in rc.conf.  Everything woks just fine.

Offline

#14 2008-05-06 23:31:37

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: cpufrequtils, when does it increase the CPU speed?

peart wrote:

Right.  I use ondemand and don't have powersave in rc.conf.  Everything woks just fine.

Would you mind sharing your /etc/conf.d/cpufreq file, as well as what you have in your /etc/rc.conf and your processor?

I think it might have something to do with the fact that I have a dual core processor.  I added `echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor` and `echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor` to /etc/rc.local like the Wiki says, but it still seems like I'm doing something wrong.

Offline

#15 2008-05-06 23:55:56

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: cpufrequtils, when does it increase the CPU speed?

Yes,

I have an Intel Core 2 Duo T7200.  My cpufreq setup is pretty straight-forward.   Here's the interesting parts of rc.conf:

MODULES=(acpi_cpufreq)
DAEMONS=(syslog-ng @iptables @acpid @cpufreq @crond @alsa @hal @fam @slim net-profiles !nfslock !cups)

Last but not least, a very simple /etc/conf.d/cpufreq:

#configuration for cpufreq control

# valid governors:
#  ondemand, performance, powersave,
#  conservative, userspace
governor="ondemand"

# valid suffixes: Hz, kHz (default), MHz, GHz, THz
min_freq="1GHz"
max_freq="2GHz"

I just started a kernel compilation, and ran cpufreq-info many times, and the speed of both cores did jump around between 1GHz and 2GHz.  So everything works.

There is one thing worth mentioning, in case it makes a difference.  I used a stripped down minimalist kernel (which explains why my MODULES array is so tiny).  I don't think it would make a difference tho.  I've seen my cpufreq stuff work with Arch's kernel26.

Offline

#16 2008-05-07 00:46:45

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: cpufrequtils, when does it increase the CPU speed?

Did you do anything special for your Core 2 Duo?

My config files all look the same, but I started compiling the kernel and it still didn't go back up to 2.33 GHz.

Offline

#17 2008-05-07 01:26:47

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: cpufrequtils, when does it increase the CPU speed?

No Yes I didn't ?!? big_smile

Everything I did is listed in my post above, and just works like that.  I'm really not sure why your processors don't go up to full speed.  I only have two suggestions:

1) Try loading module cpufreq_stats then rerunning a kernel compilation.  Afterwards, check the file /sys/devices/system/cpu/cpu<X>/cpufreq/stats.  It'll show you how much time the CPU spent at each frequency stepping.  Maybe it does go up to 2.33GHz, but for very brief periods, so you just don't see it.

2) Have you checked for clues in /var/log/everything.log?  Perhaps even /proc/cpuinfo?  Maybe there's an error or warning that'll tell you what's going on.

Offline

#18 2008-05-07 19:53:56

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: cpufrequtils, when does it increase the CPU speed?

/sys/devices/system/cpu/cpu<X>/cpufreq/stats/time_in_state says that both cores spend 0 time at 2.33 GHz.  There's nothing in /proc/cpuinfo, and the only possible problems in /var/log/everything.log are these exceptions that apparently happened on bootup:

May  7 14:42:10 arch ACPI: Processor [CPU0] (supports 8 throttling states)
May  7 14:42:10 arch ACPI: SSDT 7FEE8300, 0087 (r1  PmRef  Cpu1Ist     3000 INTL 20040311)
May  7 14:42:10 arch ACPI: Processor [CPU1] (supports 8 throttling states)
May  7 14:42:10 arch ACPI Exception (processor_core-0816): AE_NOT_FOUND, Processor Device is not present [20070126]
May  7 14:42:10 arch ACPI Exception (processor_core-0816): AE_NOT_FOUND, Processor Device is not present [20070126]

Offline

Board footer

Powered by FluxBB