From owner-freebsd-stable@FreeBSD.ORG Tue Aug 22 08:32:21 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BC3316A5D3 for ; Tue, 22 Aug 2006 08:32:21 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unsane.co.uk [62.140.220.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5856E43D90 for ; Tue, 22 Aug 2006 08:32:15 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.13.7/8.13.3) with ESMTP id k7M8WEfW076689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Aug 2006 09:32:15 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <44EAC105.7050204@unsane.co.uk> Date: Tue, 22 Aug 2006 09:32:05 +0100 From: Vince User-Agent: Thunderbird 1.5.0.5 (X11/20060811) MIME-Version: 1.0 To: Torfinn Ingolfsen References: <20060821223848.683b7a40.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20060821223848.683b7a40.torfinn.ingolfsen@broadpark.no> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: speedstep / cpu frequency control on 6-stable? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 08:32:21 -0000 Torfinn Ingolfsen wrote: > Hello, > > What ids the current way to control cpu speed (and power consumption) > in FreeBSD 6-stable? > Before, est was one way, but all traces of est has disappeared > from /etc/defaults/rc.conf and thereabouts. > I find something about powerd and power_profile, but they don't seem to > work, and I can't seem to find out what variables / configuration items > to set. 'man cpufreq' isn't much help in that regard either. In what way does powerd not work for you? (jhary@prawn)$grep powerd /etc/defaults/rc.conf powerd_enable="NO" # Run powerd to lower our power usage. powerd_flags="" # Flags to powerd (if enabled). read man powerd for flags and try powerd -v this should give an indication of what happens, for example I get {root@prawn}#powerd -v idle time > 90%, decreasing clock speed from 1666 MHz to 1457 MHz idle time > 90%, decreasing clock speed from 1457 MHz to 1249 MHz idle time > 90%, decreasing clock speed from 1249 MHz to 1041 MHz idle time > 90%, decreasing clock speed from 1041 MHz to 833 MHz idle time > 90%, decreasing clock speed from 833 MHz to 624 MHz idle time > 90%, decreasing clock speed from 624 MHz to 416 MHz idle time > 90%, decreasing clock speed from 416 MHz to 208 MHz idle time < 65%, increasing clock speed from 208 MHz to 624 MHz idle time > 90%, decreasing clock speed from 624 MHz to 416 MHz idle time > 90%, decreasing clock speed from 416 MHz to 208 MHz idle time < 65%, increasing clock speed from 208 MHz to 624 MHz idle time > 90%, decreasing clock speed from 624 MHz to 416 MHz which is a pain if i'm running X on mains so I tend to use -a maximum -b adaptive as my powerd flags as it defaults to adaptive even if your on mains power. > > Do I need working acpi to use a power control method? Umm not sure as mine works, but probably, since my dmesg says I have acpi_throttle0: {root@prawn}#dmesg | grep -i cpu CPU: Genuine Intel(R) CPU T2300 @ 1.66GHz (1662.51-MHz 686-class CPU) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu0: on acpi0 acpi_throttle0: on cpu0 cpu1: on acpi0 acpi_throttle1: on cpu1 SMP: AP CPU #1 Launched! Vince