Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing CPU frequency
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
danns
n00b
n00b


Joined: 20 Apr 2004
Posts: 18

PostPosted: Wed Apr 21, 2004 1:29 am    Post subject: Changing CPU frequency Reply with quote

Coming from YellowDog to Gentoo I realized I would have to change the /proc/cpufreq setting for my PB 12", just like it says in the Gentoo PPC Faq. When I went to do this I do not have /proc/cpufreq, just /proc/cpuinfo. Reading the faq it states that CPU Frequency Scaling should be disabled, which it is in my kernel right now. But looking into this more, shouldn't CPU Frequency Scaling be enabled?

I am running 2.4.24-r4.
Back to top
View user's profile Send private message
danns
n00b
n00b


Joined: 20 Apr 2004
Posts: 18

PostPosted: Wed Apr 21, 2004 3:20 am    Post subject: Reply with quote

That did it, enabling cpu freqency in the kernel. I also enabled the Powerbook setting.
Back to top
View user's profile Send private message
stimuli
Apprentice
Apprentice


Joined: 16 Dec 2002
Posts: 292
Location: Vancouver, BC, Canada

PostPosted: Wed Apr 21, 2004 4:42 am    Post subject: Reply with quote

You might look at cpudyn (emerge cpudyn && rc-update add /etc/init.d/cpudyn default && /etc/init.d/cpudyn start) which dynamically changes your clockspeed on the fly, depending on processor usage. That way, you are always running at max frequency, when eg: compiling, and it switches to min clockspeed when you are idling/reading this web-page. You'll get more mileage out of your battery than having it constantly set for max.

This is all a transparent process to the end-user. It rules, IMHO.
Back to top
View user's profile Send private message
Hydraulix
Guru
Guru


Joined: 12 Dec 2003
Posts: 447
Location: Baltimore, Maryland

PostPosted: Wed Apr 21, 2004 9:42 am    Post subject: Reply with quote

stimuli wrote:
You might look at cpudyn (emerge cpudyn && rc-update add /etc/init.d/cpudyn default && /etc/init.d/cpudyn start) which dynamically changes your clockspeed on the fly, depending on processor usage. That way, you are always running at max frequency, when eg: compiling, and it switches to min clockspeed when you are idling/reading this web-page. You'll get more mileage out of your battery than having it constantly set for max.

This is all a transparent process to the end-user. It rules, IMHO.



Damn I love the 21st century :D
_________________
It is the fate of operating systems to become free.
- Neal Stephenson

If only You and Dead people can read hex, how many people can read hex?
Back to top
View user's profile Send private message
danns
n00b
n00b


Joined: 20 Apr 2004
Posts: 18

PostPosted: Wed Apr 21, 2004 12:15 pm    Post subject: Reply with quote

Thanks stimuli, that's on my emerge list for tonight!
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Wed Apr 21, 2004 3:01 pm    Post subject: Reply with quote

cpufreqd is nicer IMO.

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Wed Apr 21, 2004 6:58 pm    Post subject: Reply with quote

Obviously these tools works also on ibook... I'm right :?:
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Thu Apr 22, 2004 11:25 am    Post subject: Reply with quote

micron wrote:
Obviously these tools works also on ibook... I'm right :?:


Sure, as long as you've enabled cpu frequency scaling in the kernel.

One thing about cpufreqd and probably cpudyn is that with a 2.6 kernel you have to change the percentages into actual frequencies.

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
stimuli
Apprentice
Apprentice


Joined: 16 Dec 2002
Posts: 292
Location: Vancouver, BC, Canada

PostPosted: Thu Apr 22, 2004 8:13 pm    Post subject: Reply with quote

edit: never mind, reading comprehension skills are rusty. :)

BTW, users of cpufreqd or cpudyn, you can tell if it is working by "cat /proc/sys/cpufreq" (I think; I'm in OSX right now) which depending on processor load, should read one of two values; in my case, 667mhz or 867mhz.

Puggy: can you overclock your iBook with relative ease? IIRC, this was doable in OSX.1 using CHUD. I would imagine that you could specify a clockspeed higher than your 'max' and get it to work, ie: 900mhz on an 800mhz ibook. Alas, I do not believe software overclocking is possible on a G4 powerbook.
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Thu Apr 22, 2004 8:39 pm    Post subject: Reply with quote

stimuli wrote:
edit: never mind, reading comprehension skills are rusty. :)

BTW, users of cpufreqd or cpudyn, you can tell if it is working by "cat /proc/sys/cpufreq" (I think; I'm in OSX right now) which depending on processor load, should read one of two values; in my case, 667mhz or 867mhz.


That will tell you if cpu frequency scaling is working, not the daemon your using.

Quote:
Puggy: can you overclock your iBook with relative ease? IIRC, this was doable in OSX.1 using CHUD. I would imagine that you could specify a clockspeed higher than your 'max' and get it to work, ie: 900mhz on an 800mhz ibook. Alas, I do not believe software overclocking is possible on a G4 powerbook.


Not as far as I know. I was talking about it with benh and he said that he accidentally overclocked an ibook to 1000MHz. He achieved this (by accident) with code in the kernel though. I don't think this is something that you can control. Overclocking a laptop (or most anything for that matter, but particularly a laptop) is a fundamentally bad idea, because laptops have particular difficulty with heat dissapation.

BTW: I have a powerbook, not an ibook, but if it could be done for one, it can probably be done for the other.

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
ange
n00b
n00b


Joined: 18 Nov 2003
Posts: 19
Location: France

PostPosted: Tue May 04, 2004 6:21 pm    Post subject: freq scaling Reply with quote

hi,

got a nice ibook g4, trying freq scaling using cpudyn, seems to work but ...
in the /proc/cpufreq got two values :
606000kHz and something (higher) changing if I got the AC or not.

How can I change the min value ?

I've tried to replace cpudyn by cpufreqd but got the same thing.
In this case I've edited the /etc/cpufreqd.conf but it's seems no use : the lower value is still the same.

any one got an idea ?
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Tue May 04, 2004 9:01 pm    Post subject: Re: freq scaling Reply with quote

ange wrote:
hi,

got a nice ibook g4, trying freq scaling using cpudyn, seems to work but ...
in the /proc/cpufreq got two values :
606000kHz and something (higher) changing if I got the AC or not.

How can I change the min value ?

I've tried to replace cpudyn by cpufreqd but got the same thing.
In this case I've edited the /etc/cpufreqd.conf but it's seems no use : the lower value is still the same.

any one got an idea ?


I'm not entiurely sure on your question. Are you looking to lower the minimum boundry on the frequency scaling. If so, that isn't possible. It is generally 1/2 of the processor speed and you can just switch between this and full speed. If your using a 2.6 kernel I suggest you stop using that legacy interface and start using the /sys interface instead. It makes a lot more sense.

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
stimuli
Apprentice
Apprentice


Joined: 16 Dec 2002
Posts: 292
Location: Vancouver, BC, Canada

PostPosted: Wed May 05, 2004 7:23 pm    Post subject: Reply with quote

G4 registers have two values: min. and max. You can't arbitrarily change these values; they are hard wired.

G3s on the other hand I believe are designed to dynamically scale arbitrarily(?) so owners of 700mhz+ iBooks may be able to tweak a bit more.

Then again I could be wrong.
Back to top
View user's profile Send private message
Heimir Freyr
n00b
n00b


Joined: 09 Mar 2003
Posts: 43
Location: Reykjavík, Iceland

PostPosted: Fri May 07, 2004 11:09 pm    Post subject: Reply with quote

How about old Powerbooks like G3 400, doesn't it work on those? I can't seem to enable the proc cpu frequency, or it won't show up in /proc.

OS X offers no cpu control on these machines, just OS 9 (by enabling 'processor cycling').
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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