bc10-router/cpufreq
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[bc10]]~
[[bc10-router]]~
#contents
* The Dynamic Operating Frequency Change by cpufreq [#p9c...
>
Linux kernel has cpufreq, a feature that changes the dyna...
~
There is a particular way to change the operating frequen...
~
To utilize cpufreq, measure the change of network through...
~
** driver [#gec93b5c]
>
To use cpufreq, let kernel driver active, Setting menuco...
-> CPU Power management
-> CPU Frequency scaling
[*] CPU Frequency scaling
<*> CPU frequency translation statistics
[*] CPU frequency translation statistics details
Default CPUFreq governor (userspace) --->
<*> 'performance' governor
<*> 'powersave' governor
-*- 'userspace' governor for userspace frequency ...
<*> 'ondemand' cpufreq policy governor
<*> 'conservative' cpufreq governor
[*] Generic CPU0 cpufreq driver
ARM CPU frequency scaling drivers --->
Configure which governor makes active and which active go...
** governor [#te000c2e]
>
CPUfreq governor determines the rules of operating freque...
governors, which OMAP3530 of bc10 can use, are shown belo...
~
|performance|Make CPU work at the maximum operating frequ...
|powersave|Make CPU work at the minimum operating frequen...
|userspace|Allow root user or root program to change oper...
|ondemand|To depend on CPU load, change the dynamic opera...
|conservative|To depend on CPU load, change the dynamic o...
** cpufreq Interface [#h9653cba]
>
To let boot the kernel, which enables the previously set-...
# ls /sys/devices/system/cpu/cpu0/cpufreq/
affected_cpus scaling_cur_freq
cpuinfo_cur_freq scaling_driver
cpuinfo_max_freq scaling_governor
cpuinfo_min_freq scaling_max_freq
cpuinfo_transition_latency scaling_min_freq
related_cpus scaling_setspeed
scaling_available_frequencies stats
scaling_available_governors
~
To use this interface, configure the operating frequency ...
|affected_cpus|The list of CPUs, whose frequency should b...
|cpuinfo_cur_freq|The present dynamic operating frequency...
|cpuinfo_max_freq|The maximum dynamic operating frequency...
|cpuinfo_min_freq|The minimum dynamic operating frequency...
|cpuinfo_transition_latency|The duration of time, which i...
|related_cpus|Regardless of software and hardware, the li...
|scaling_available_frequencies|the list of available oper...
|scaling_available_governors|the list of available govern...
|scaling_cur_freq|A value of dynamic operating frequency,...
|scaling_driver|Hardware driver for cpufreq|
|scaling_governor|Governors that currently use. Add gover...
|scaling_max_freq|The conditional maximum dynamic operati...
|scaling_min_freq|The conditional minimum dynamic operati...
|scaling_setspeed|To change dynamic operating frequency, ...
|stats|time_in_state|A list that how many hours each CPU ...
||total_trans|Total number of operating frequency changes|
||trans_table|A table that shows the configuration and ho...
** cpufrequtils [#ae5ee064]
>
Since it is too tedious to operate directly this interfac...
# cpufreq-info
cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 200...
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: omap
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by ...
maximum transition latency: 300 us.
hardware limits: 125 MHz - 600 MHz
available frequency steps: 125 MHz, 250 MHz, 500 MHz, 5...
available cpufreq governors: conservative, ondemand, po...
current policy: frequency should be within 125 MHz and ...
The governor "userspace" may decide whi...
within this range.
current CPU frequency is 600 MHz (asserted by call to h...
cpufreq stats: 125 MHz:0.00%, 250 MHz:0.00%, 500 MHz:0....
The performance of the present setting is shown above, an...
OMAP3530 of bc10 can operate at 125, 250, 500, 550 and 60...
the present governor is userspace, and~
the CPU is currently operating at 600MHz.~
~
cpufreq-set is used for changing the current configuratio...
# cpufreq-set --help
cpufrequtils 006: cpufreq-set (C) Dominik Brodowski 2004...
Report errors and bugs to cpufreq@vger.kernel.org, please.
Usage: cpufreq-set [options]
Options:
-c CPU, --cpu CPU number of CPU where cpufreq s...
-d FREQ, --min FREQ new minimum CPU frequency the...
-u FREQ, --max FREQ new maximum CPU frequency the...
-g GOV, --governor GOV new cpufreq governor
-f FREQ, --freq FREQ specific frequency to be set....
governor to be available and ...
-r, --related Switches all hardware-related...
-h, --help Prints out this screen
Notes:
1. Omitting the -c or --cpu argument is equivalent to se...
2. The -f FREQ, --freq FREQ parameter cannot be combined...
except the -c CPU, --cpu CPU parameter
3. FREQuencies can be passed in Hz, kHz (default), MHz, ...
by postfixing the value with the wanted unit name, wi...
(FREQuency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz ...
The Option ?c? and ?r? are only for multi-processor syste...
~
To make bc10 operate at 500Mz, please apply the command f...
# cpufreq-set -f 500MH
~
After executing the command above, there are no indicatio...
# cpufreq-info
cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 200...
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: omap
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by...
maximum transition latency: 300 us.
hardware limits: 125 MHz - 600 MHz
available frequency steps: 125 MHz, 250 MHz, 500 MHz, ...
available cpufreq governors: conservative, ondemand, p...
current policy: frequency should be within 125 MHz and...
The governor "userspace" may decide wh...
within this range.
current CPU frequency is 500 MHz (asserted by call to ...
cpufreq stats: 125 MHz:0.00%, 250 MHz:0.00%, 500 MHz:3...
To check /proc/cpuinfo, it shows changes in BogoMIPS, dep...
To use BogoMIPS, the results of a new configuration are r...
** Comparing network throughput against different operati...
>
To boot bc10-router with the router mode, compare the lev...
To measure network throughputs, nuttcp is used. In the ne...
~
WAN Side: bc10-router nuttcp -S~
LAN Side: PC nuttcp 192.168.30.1~
~
kernel 3.3.7~
>
- 600MHz~
BogoMIPS 581.89~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |51.6822|50.4957|49.9095|50.0213|52.2133|47.8628|...
|%TX |6 |6 |6 |6 |6 |7 |...
|%RX |24 |24 |23 |23 |24 |22 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |1.51 |2.01 |1.49 |1.49 |1.53 |1.92 |...
>
- 550MHz~
BogoMIPS 533.31~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |50.6394|49.4836|56.4597|56.8420|52.9812|55.7499|...
|%TX |6 |6 |7 |7 |7 |7 |...
|%RX |24 |23 |25 |25 |25 |27 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |3.29 |1.58 |1.34 |2.20 |1.89 |1.65 |...
>
- 500MHz~
BogoMIPS 484.74~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |56.6270|57.3872|57.0966|56.7836|57.3331|55.9722|...
|%TX |6 |7 |6 |6 |7 |7 |...
|%RX |23 |25 |23 |24 |24 |25 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |1.42 |1.60 |3.47 |1.98 |1.42 |1.73 |...
>
- 250MHz~
BogoMIPS 242.87~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |31.6962|29.8153|29.7751|30.5470|31.3641|31.6964|...
|%TX |2 |2 |2 |2 |2 |4 |...
|%RX |14 |15 |14 |14 |16 |11 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |2.31 |2.15 |1.77 |2.32 |1.98 |2.56 |...
>
- 125MHz~
BogoMIPS 121.43~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |16.3279|16.0135|15.1922|15.6184|15.8227|16.6981|...
|%TX |1 |1 |1 |1 |1 |1 |...
|%RX |14 |12 |10 |14 |13 |12 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |3.05 |2.44 |2.36 |2.31 |4.31 |5.22 |...
*** Results [#s1e50c72]
>
Since the test load of nttcp consumes sufficient processi...
~
At less than 500MHz of operational frequencies, the relat...
~
As Several Wi-Fi clients are connected and communicated t...
**Operated by ondemand governor [#r1a55c94]
>
As the configuration is changed from cpufreq governor to ...
* Revision History [#r4807ee8]
>
- 2013-08-09 This article is initially uploaded.
End:
[[bc10]]~
[[bc10-router]]~
#contents
* The Dynamic Operating Frequency Change by cpufreq [#p9c...
>
Linux kernel has cpufreq, a feature that changes the dyna...
~
There is a particular way to change the operating frequen...
~
To utilize cpufreq, measure the change of network through...
~
** driver [#gec93b5c]
>
To use cpufreq, let kernel driver active, Setting menuco...
-> CPU Power management
-> CPU Frequency scaling
[*] CPU Frequency scaling
<*> CPU frequency translation statistics
[*] CPU frequency translation statistics details
Default CPUFreq governor (userspace) --->
<*> 'performance' governor
<*> 'powersave' governor
-*- 'userspace' governor for userspace frequency ...
<*> 'ondemand' cpufreq policy governor
<*> 'conservative' cpufreq governor
[*] Generic CPU0 cpufreq driver
ARM CPU frequency scaling drivers --->
Configure which governor makes active and which active go...
** governor [#te000c2e]
>
CPUfreq governor determines the rules of operating freque...
governors, which OMAP3530 of bc10 can use, are shown belo...
~
|performance|Make CPU work at the maximum operating frequ...
|powersave|Make CPU work at the minimum operating frequen...
|userspace|Allow root user or root program to change oper...
|ondemand|To depend on CPU load, change the dynamic opera...
|conservative|To depend on CPU load, change the dynamic o...
** cpufreq Interface [#h9653cba]
>
To let boot the kernel, which enables the previously set-...
# ls /sys/devices/system/cpu/cpu0/cpufreq/
affected_cpus scaling_cur_freq
cpuinfo_cur_freq scaling_driver
cpuinfo_max_freq scaling_governor
cpuinfo_min_freq scaling_max_freq
cpuinfo_transition_latency scaling_min_freq
related_cpus scaling_setspeed
scaling_available_frequencies stats
scaling_available_governors
~
To use this interface, configure the operating frequency ...
|affected_cpus|The list of CPUs, whose frequency should b...
|cpuinfo_cur_freq|The present dynamic operating frequency...
|cpuinfo_max_freq|The maximum dynamic operating frequency...
|cpuinfo_min_freq|The minimum dynamic operating frequency...
|cpuinfo_transition_latency|The duration of time, which i...
|related_cpus|Regardless of software and hardware, the li...
|scaling_available_frequencies|the list of available oper...
|scaling_available_governors|the list of available govern...
|scaling_cur_freq|A value of dynamic operating frequency,...
|scaling_driver|Hardware driver for cpufreq|
|scaling_governor|Governors that currently use. Add gover...
|scaling_max_freq|The conditional maximum dynamic operati...
|scaling_min_freq|The conditional minimum dynamic operati...
|scaling_setspeed|To change dynamic operating frequency, ...
|stats|time_in_state|A list that how many hours each CPU ...
||total_trans|Total number of operating frequency changes|
||trans_table|A table that shows the configuration and ho...
** cpufrequtils [#ae5ee064]
>
Since it is too tedious to operate directly this interfac...
# cpufreq-info
cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 200...
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: omap
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by ...
maximum transition latency: 300 us.
hardware limits: 125 MHz - 600 MHz
available frequency steps: 125 MHz, 250 MHz, 500 MHz, 5...
available cpufreq governors: conservative, ondemand, po...
current policy: frequency should be within 125 MHz and ...
The governor "userspace" may decide whi...
within this range.
current CPU frequency is 600 MHz (asserted by call to h...
cpufreq stats: 125 MHz:0.00%, 250 MHz:0.00%, 500 MHz:0....
The performance of the present setting is shown above, an...
OMAP3530 of bc10 can operate at 125, 250, 500, 550 and 60...
the present governor is userspace, and~
the CPU is currently operating at 600MHz.~
~
cpufreq-set is used for changing the current configuratio...
# cpufreq-set --help
cpufrequtils 006: cpufreq-set (C) Dominik Brodowski 2004...
Report errors and bugs to cpufreq@vger.kernel.org, please.
Usage: cpufreq-set [options]
Options:
-c CPU, --cpu CPU number of CPU where cpufreq s...
-d FREQ, --min FREQ new minimum CPU frequency the...
-u FREQ, --max FREQ new maximum CPU frequency the...
-g GOV, --governor GOV new cpufreq governor
-f FREQ, --freq FREQ specific frequency to be set....
governor to be available and ...
-r, --related Switches all hardware-related...
-h, --help Prints out this screen
Notes:
1. Omitting the -c or --cpu argument is equivalent to se...
2. The -f FREQ, --freq FREQ parameter cannot be combined...
except the -c CPU, --cpu CPU parameter
3. FREQuencies can be passed in Hz, kHz (default), MHz, ...
by postfixing the value with the wanted unit name, wi...
(FREQuency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz ...
The Option ?c? and ?r? are only for multi-processor syste...
~
To make bc10 operate at 500Mz, please apply the command f...
# cpufreq-set -f 500MH
~
After executing the command above, there are no indicatio...
# cpufreq-info
cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 200...
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: omap
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by...
maximum transition latency: 300 us.
hardware limits: 125 MHz - 600 MHz
available frequency steps: 125 MHz, 250 MHz, 500 MHz, ...
available cpufreq governors: conservative, ondemand, p...
current policy: frequency should be within 125 MHz and...
The governor "userspace" may decide wh...
within this range.
current CPU frequency is 500 MHz (asserted by call to ...
cpufreq stats: 125 MHz:0.00%, 250 MHz:0.00%, 500 MHz:3...
To check /proc/cpuinfo, it shows changes in BogoMIPS, dep...
To use BogoMIPS, the results of a new configuration are r...
** Comparing network throughput against different operati...
>
To boot bc10-router with the router mode, compare the lev...
To measure network throughputs, nuttcp is used. In the ne...
~
WAN Side: bc10-router nuttcp -S~
LAN Side: PC nuttcp 192.168.30.1~
~
kernel 3.3.7~
>
- 600MHz~
BogoMIPS 581.89~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |51.6822|50.4957|49.9095|50.0213|52.2133|47.8628|...
|%TX |6 |6 |6 |6 |6 |7 |...
|%RX |24 |24 |23 |23 |24 |22 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |1.51 |2.01 |1.49 |1.49 |1.53 |1.92 |...
>
- 550MHz~
BogoMIPS 533.31~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |50.6394|49.4836|56.4597|56.8420|52.9812|55.7499|...
|%TX |6 |6 |7 |7 |7 |7 |...
|%RX |24 |23 |25 |25 |25 |27 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |3.29 |1.58 |1.34 |2.20 |1.89 |1.65 |...
>
- 500MHz~
BogoMIPS 484.74~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |56.6270|57.3872|57.0966|56.7836|57.3331|55.9722|...
|%TX |6 |7 |6 |6 |7 |7 |...
|%RX |23 |25 |23 |24 |24 |25 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |1.42 |1.60 |3.47 |1.98 |1.42 |1.73 |...
>
- 250MHz~
BogoMIPS 242.87~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |31.6962|29.8153|29.7751|30.5470|31.3641|31.6964|...
|%TX |2 |2 |2 |2 |2 |4 |...
|%RX |14 |15 |14 |14 |16 |11 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |2.31 |2.15 |1.77 |2.32 |1.98 |2.56 |...
>
- 125MHz~
BogoMIPS 121.43~
|N | 1| 2| 3| 4| 5| 6| ...
|Mbps |16.3279|16.0135|15.1922|15.6184|15.8227|16.6981|...
|%TX |1 |1 |1 |1 |1 |1 |...
|%RX |14 |12 |10 |14 |13 |12 |...
|retrans|0 |0 |0 |0 |0 |0 |...
|msRTT |3.05 |2.44 |2.36 |2.31 |4.31 |5.22 |...
*** Results [#s1e50c72]
>
Since the test load of nttcp consumes sufficient processi...
~
At less than 500MHz of operational frequencies, the relat...
~
As Several Wi-Fi clients are connected and communicated t...
**Operated by ondemand governor [#r1a55c94]
>
As the configuration is changed from cpufreq governor to ...
* Revision History [#r4807ee8]
>
- 2013-08-09 This article is initially uploaded.
Page: