From owner-cvs-all Tue Jan 14 13: 4:39 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D458A37B422 for ; Tue, 14 Jan 2003 13:04:33 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65B1B43F7E for ; Tue, 14 Jan 2003 13:04:32 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 2302 invoked from network); 14 Jan 2003 21:04:38 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 14 Jan 2003 21:04:38 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h0EL4TUT007539; Tue, 14 Jan 2003 16:04:29 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030114211406.A29186@freebie.xs4all.nl> Date: Tue, 14 Jan 2003 16:04:41 -0500 (EST) From: John Baldwin To: Wilko Bulte Subject: Re: cvs commit: src/sys/dev/acpica acpi_cpu.c Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, Nate Lawson Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 14-Jan-2003 Wilko Bulte wrote: > On Tue, Jan 14, 2003 at 02:54:13PM -0500, John Baldwin wrote: >> >> On 14-Jan-2003 Nate Lawson wrote: >> > njl 2003/01/14 11:39:41 PST >> > >> > Modified files: >> > sys/dev/acpica acpi_cpu.c >> > Log: >> > For the cpu throttling message, s/enabled/available >> > >> > Requested by: many >> >> Albeit lying. If it were just available but not enabled, then the >> CPU wouldn't slow down when I pulled the power cord of out my laptop. >> However, when I pull the power cord out of my laptop, the CPU does >> slow down. Thus, it would seem rather obvious that CPU throttling >> is most certainly enabled and not just available. > > How does this work on desktops? I've seen one of my P2 boxes report > this throttling thing? > > Surely not the power plug being pulled out, although it slowed down > greatly when pulled ;) Here's how our current throttling works. Your CPU can run at 8 different speeds. There are 4 sysctl's related to this: > sysctl hw.acpi.cpu hw.acpi.cpu.max_speed: 8 hw.acpi.cpu.current_speed: 8 hw.acpi.cpu.performance_speed: 8 hw.acpi.cpu.economy_speed: 6 Currently we only throttle when switching between 'performance' and 'economy' modes. 'performance' mode is defined to be the state in which AC power is available to the system. 'economy' mode is defined to be the state in which AC power is not available. Thus, it is currently a very limited policy, but it doesn't prohibit more aggressive policies in the future. You could change the speed on your desktop by changing the performance speed to be 6 (75%) using the sysctl for example: > sudo sysctl hw.acpi.cpu.performance_speed=6 Password: hw.acpi.cpu.performance_speed: 8 -> 6 > sysctl hw.acpi.cpu.current_speed hw.acpi.cpu.current_speed: 6 This was on my laptop with the power plugged in, but you could do the same on a desktop machine. Eventually we may define more complex policies that slow the CPU down to conserve power if the system is largely idle for example. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message