From owner-freebsd-acpi@FreeBSD.ORG Mon Feb 7 00:08:32 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0D7116A4CF for ; Mon, 7 Feb 2005 00:08:32 +0000 (GMT) Received: from ank-pki.ru (mercury.ank-pki.ru [213.170.76.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1B4243D3F for ; Mon, 7 Feb 2005 00:08:31 +0000 (GMT) (envelope-from toxa@cterra.ru) Received: (qmail 46637 invoked by uid 0); 7 Feb 2005 03:08:19 +0300 Received: from toxa@cterra.ru by mercury.ank-pki.ru by uid 0 with qmail-scanner-1.22 (spamassassin: 3.0.2. Clear:RC:0(62.89.204.62):SA:0(?/?):. Processed in 11.3972 secs); 07 Feb 2005 00:08:19 -0000 Received: from unknown (HELO localhost) (toxa@62.89.204.62) by mail.ank-pki.ru with SMTP; 7 Feb 2005 03:08:07 +0300 Date: Mon, 7 Feb 2005 03:06:04 +0300 From: "Anton A. Karpov" To: current@freebsd.org, acpi@freebsd.org X-Comment-To: "Anton A. Karpov" Message-ID: <20050207000604.GA4385@laptoxa.toxa.lan> Mail-Followup-To: current@freebsd.org, acpi@freebsd.org References: <42068A5C.1030300@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <42068A5C.1030300@root.org> User-Agent: Outluck Express 1.5.6i for MS-DOS 6.22-SMP X-Mailer: See User-Agent above :) X-Operating-System: MS-DOS 6.22-CURRENT on Sony VAIO laptop X-PGP-Public-Key: http://toxahost.ru/gpg/pubkey.asc X-Useless-Header: Do Androids Dream of Electric Sheep? X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on mercury.ank-pki.ru X-Spam-Level: X-Spam-Status: No, score=0.0 required=7.0 tests=none autolearn=failed version=3.0.2 Subject: Re: HEADSUP: cpufreq import complete, acpi_throttling changed X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 00:08:33 -0000 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 */ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=