Ken Moffat schreef:
On Tue, May 02, 2006 at 12:28:35PM  0000, Warren Wilder wrote:
I have a question about scaling the frequency of the cpu clock cycle.

This isn't in the book, but I can't find much info on it otherwise.

*cough* I did write a hint about it,

*Rubbing Google's prejudice out of eyes*
I knew I had read something about cpufrequency somewhere, but couldn't
find it anymore. The script and the bit about NOT setting the
performance_governor as default, were the two things that solved it.
I am using the conservative governor and it is working just as I hoped
it would. Slow when possibe, fast when required.

> It is/should be possible to set the cpu frequency governor in userspace.
This can be done with the cpufrequtils package from:
http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
together with the daemon from:
http://cpufreqd.sourceforge.net/
>
 Why do you think you need those (I'm curious) ?

Just trying to find my way :-)
By the way, the cpufrequtils package is the one that gave the odd
values, which do not fit my processor. Therefore I cannot recommend it.
I have no idea what it can do anyway, besides showing info from /proc
and /sys.

A few tips for the hint:
Advise people to load the various modules first, or bash will complain
about the echo command when you run the script. If the readers are using
modules of course.

Without the cpufreq_ondemand module loaded:
./cpufreq ondemand
Enabling ondemand cpu frequency
./cpufreq: line 9: echo: write error: Invalid argument
ignoring niceness for ondemand
./cpufreq: line 13:
/sys/boot/devices/system/cpu0/cpufreq/ondemand/ignore_nice: Onbekend
bestand of map


I changed the script a bit to include the conservative module and
changed demand into ondemand. I also added a status line.
There is also a typo in it, where 'speed' is written as 'spead'.
I am not using powernowd and I don't think I will need it, so I cannot
comment on the last part of the hint.

Thanks a lot!

Warren

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

Attachment: cpufreq
Description: Binary data

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to