From owner-freebsd-acpi@FreeBSD.ORG Sun Jul 3 01:03:13 2005 Return-Path: X-Original-To: acpi@freebsd.org 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 5DF4216B72D; Sun, 3 Jul 2005 01:02:46 +0000 (GMT) (envelope-from ps@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5326E44CF9; Sun, 3 Jul 2005 00:54:31 +0000 (GMT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id 0E68861D2D; Sat, 2 Jul 2005 17:18:47 -0700 (PDT) X-Original-To: ps@mu.org Delivered-To: ps@mu.org Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by elvis.mu.org (Postfix) with ESMTP id 1AF365CA14; Mon, 7 Feb 2005 05:12:21 -0800 (PST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id C7ADF569E3; Mon, 7 Feb 2005 13:10:49 +0000 (GMT) (envelope-from owner-freebsd-current@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 3E85D16A5FF; Mon, 7 Feb 2005 13:10:04 +0000 (GMT) Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD74A16A4CE 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 ACF2043D39 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 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-Mailman-Approved-At: Mon, 07 Feb 2005 13:09:50 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Sender: owner-freebsd-current@freebsd.org Errors-To: owner-freebsd-current@freebsd.org X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on elvis.mu.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.1 X-Spam-Level: Cc: Subject: Re: HEADSUP: cpufreq import complete, acpi_throttling changed X-BeenThere: freebsd-acpi@freebsd.org List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 03 Jul 2005 01:03:16 -0000 X-Original-Date: Mon, 7 Feb 2005 03:06:04 +0300 X-List-Received-Date: Sun, 03 Jul 2005 01:03:16 -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 */ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"