HEADSUP: cpufreq import complete, acpi_throttling changed
Anton A. Karpov
toxa at toxahost.ru
Mon Feb 7 00:08:33 GMT 2005
On Sun, Feb 06, 2005 at 01:21:32PM -0800, Nate Lawson wrote:
> I've finished the major work of importing cpufreq. As part of this, the
> sysctls for acpi throttling have been removed. The power_profile script
> has been updated, so you can use performance/economy_cpu_freq= in
> rc.conf to set AC on/offline cpu frequencies. The acpi throttling
> support has been compiled into acpi_perf.ko so load that to get
> throttling. Do a sysctl dev.cpu to get an understanding of the cpufreq
> sysctls.
>
> If you have throttling, please test the new configuration to be sure it
> still works as before. Final upcoming work will be manpage support and
> bugfixing as necessary.
>
MY laptop has CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
(1988.52-MHz 686-class CPU). I've tested tx states with the following
script:
#!/bin/sh
freq_levels=`sysctl dev.cpu.0.freq_levels|cut -d : -f 2|sed -e 's/\/-1//g'`
echo "Supported freq levels are: ${freq_levels}"
for i in ${freq_levels}
do
echo "[=== Results testing [$i] freq level ===]"
sysctl dev.cpu.0.freq=$i 1> /dev/null
openssl speed blowfish
done
Here is some output:
Supported freq levels are: 1991 1742 1493 1244 1196 1046 995 897 746
598 497 448 299 248 149
[=== Results testing [1991] freq level ===]
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
blowfish cbc 44067.47k 46774.97k 46975.74k 47349.96k 47353.11k
...
[=== Results testing [1196] freq level ===]
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
blowfish cbc 26456.76k 27924.48k 28192.14k 28336.50k 28410.68k
...
[=== Results testing [149] freq level ===]
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
blowfish cbc 2541.21k 2660.68k 2731.58k 2720.56k 2720.05k
It seems to work. By the way, what does /-1 mean, in
dev.cpu.0.freq_levels output?
--
Anton A. Karpov
PGP key: http://www.toxahost.ru/pgp/pubkey.asc
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
Contrary to popular belief, Unix is user friendly.
It just happens to be very selective
about who it decides to make friends with.
/* no comment */
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
More information about the freebsd-current
mailing list