Tiny Core Extensions > TCE Tips & Tricks

Cpu frequency scaling basics

<< < (3/7) > >>

bigpcman:
I rebooted and started over and this time I made some progress. I performed the "info steps":
tc@box:~$ sudo modprobe acpi-cpufreq
tc@box:~$ sudo modprobe cpufreq_conservative
tc@box:~$ sudo modprobe cpufreq_ondemand
tc@box:~$ sudo modprobe cpufreq_powersave
tc@box:~$ sudo modprobe cpufreq_userspace
tc@box:~$ sudo acpid
tc@box:~$ sudo cpufreqd

Then ran the cpufreq-info command with the following successful results:

--- Code: ---tc@box:~$ cpufreq-info
cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
  available cpufreq governors: userspace, powersave, ondemand, conservative, performance
  current policy: frequency should be within 1.60 GHz and 1.60 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.60 GHz.
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 1
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
  available cpufreq governors: userspace, powersave, ondemand, conservative, performance
  current policy: frequency should be within 1.60 GHz and 1.60 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.60 GHz.

--- End code ---
It's interesting that cpufreq does not know about the HD super performance mode (1.8Ghz) that Zandros supports.
Now I will try out the governor.

edit: pulled the ac plug and sure enough the speed dropped down to 800Mhz.

edit2: Looks like cpufreq is not working after all. I performed several cpufreq-set commands and none of them change the speed from 1.6Ghz. For instance:
 sudo cpufreq-set -c 0 -f 800000
 sudo cpufreq-set -c 0 -g powersave

I also tried adding commands for processor 1. Still no dice.

It looks like my initial suspicion that  acpi-cpufreq does not support the atom n270 processor might be correct.

bmarkus:

--- Quote from: bigpcman on August 13, 2009, 10:34:16 AM ---
It's interesting that cpufreq does not know about the HD super performance mode (1.8Ghz) that Zandros supports.


--- End quote ---

Most likely because it is not an official CPU frequency, it is overclocking. You may read this:

http://www.liliputing.com/2009/03/intel-atom-n280-cpu-can-hit-175ghz-with-ease.html

bigpcman:

--- Quote from: bmarkus on August 13, 2009, 01:51:28 PM ---
--- Quote from: bigpcman on August 13, 2009, 10:34:16 AM ---
It's interesting that cpufreq does not know about the HD super performance mode (1.8Ghz) that Zandros supports.


--- End quote ---

Most likely because it is not an official CPU frequency, it is overclocking. You may read this:

http://www.liliputing.com/2009/03/intel-atom-n280-cpu-can-hit-175ghz-with-ease.html


--- End quote ---
Thanks for the link. Please see the additions to my previous post for more problems.

Perhaps this has something to do with it:


--- Code: ---tc@box:~$ sudo cpufreqd-get -l
No cpufreqd socket found
--- End code ---

edit: I got rid of the above error by enabling the "enable_remote=1" line in the "general" section of the cpufreqd.conf file. But this did not fix the inability to set the cpu speed.

Juanito:
If all else fails, read the info file, eh  ;)

It could be that the cpufreq daemon overrides your terminal commands?

bigpcman:

--- Quote from: Juanito on August 13, 2009, 04:40:43 PM ---If all else fails, read the info file, eh  ;)

It could be that the cpufreq daemon overrides your terminal commands?

--- End quote ---
I'm confused... what do you mean? What are you referring to in the info?

edit 1: Ok, I see what you mean about the daemon. It will once activated at each interval period do whatever the conf file specifies. So since Basic  AC calls for high performance and high performance specifies 100% cpu, the cpu freq stays at 1.6Ghz. I thought the terminal commands were sent to the daemon to execute and would override the conf file settings.

So I changed the Basic AC  setting to set max and min at 800000 and restarted cpufreq. Sure enough the cpu freq is now at 800Mhz.

edit 2: I guess you are suggesting that I didn't execute the sudo "command set" in the info file and that was what was causing my problems.  Well I did but I also did other things that must have messed up the system. A reboot and more exact approach got cpufreq to do what it is suppose to do.

Anyway, thanks for the daemon tip that was what I was missing.

edit 3: As the worm turns... I changed my "Basic AC on" governor setting to "ON Demand High" which has min freq=40% and max freq=100% and then restarted cpufreqd. At idle the cpu is running at 800Mhz using the "ondemand" governor. However, with the cpu running at >85% cpu, cpufreq-info reports the cpu is running at 1.3Ghz (not 1.6Ghz as it should) using the "performance" governor. Now I really am confused.

edit 4: Enjoy your vacation Juanito.   :)

By the way here are some usefull commands:


--- Code: ---cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors - shows all gov's
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor - shows current gov
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq - shows current freq
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq - shows min freq
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq - shows max freq

--- End code ---


--- Code: ---Title:          cpufreq.tcel info file
Description:    cpufreq for tc_2.X
Version:        2.3.4
Author:         see list of sites below
Original-site:  see list of sites below
Copying-policy: see list of sites below
Size: 65KB
Extension_by:   juanito
Comments:       cpufreqd and cpufrequtils for tinycore_2.x
                requires acpid.tce, cpufreq-2.6.29.1-tinycore.tcem
                ----------
                Example howto:
                $ sudo modprobe acpi-cpufreq [beware - choose the correct module for your cpu]
                $ sudo modprobe cpufreq_conservative
                $ sudo modprobe cpufreq_ondemand
                $ sudo modprobe cpufreq_powersave
                $ sudo modprobe cpufreq_userspace
                $ sudo acpid
                $ sudo cpufreqd
                ----------
                config file at:
                /usr/local/etc/cpufreqd.conf
                ----------
                This extension contains:
                cpufrequtils-005 - GPLv2 - http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-005.tar.bz2
                cpufreqd-2.3.4 - GPLv2 - http://garr.dl.sourceforge.net/sourceforge/cpufreqd/cpufreqd-2.3.4.tar.bz2
                ----------
Change-log:     First version
Current:        2009/04/28

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version