Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2005 03:06:04 +0300
From:      "Anton A. Karpov" <toxa@toxahost.ru>
To:        current@freebsd.org, acpi@freebsd.org
Subject:   Re: HEADSUP: cpufreq import complete, acpi_throttling changed
Message-ID:  <20050207000604.GA4385@laptoxa.toxa.lan>
In-Reply-To: <42068A5C.1030300@root.org>
References:  <42068A5C.1030300@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 */
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050207000604.GA4385>