From owner-freebsd-stable@FreeBSD.ORG Sun Mar 29 09:21:40 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 079331065672; Sun, 29 Mar 2009 09:21:40 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id BB5428FC08; Sun, 29 Mar 2009 09:21:39 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mobileKamikaze.norad (unknown [88.130.210.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 178DB8A00D1; Sun, 29 Mar 2009 11:21:36 +0200 (CEST) Message-ID: <49CF2F8D.6000905@bsdforen.de> Date: Sun, 29 Mar 2009 10:21:33 +0200 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.21 (X11/20090321) MIME-Version: 1.0 To: Alexander Motin References: <1238293386.00093672.1238281804@10.7.7.3> <49CF0803.1070505@FreeBSD.org> In-Reply-To: <49CF0803.1070505@FreeBSD.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: powerd broken 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: Sun, 29 Mar 2009 09:21:40 -0000 Alexander Motin wrote: > Dominic Fandrey wrote: >> Since I updated to the 7.2 prerelease, powerd is broken. >> >>> uname -a >> FreeBSD mobileKamikaze.norad 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: >> Tue Mar 24 07:57:30 CET 2009 >> root@mobileKamikaze.norad:/usr/obj/HP6510b/amd64/usr/src/sys/HP6510b >> amd64 >> >> It increases the CPU frequency very aggressively in adaptive mode. >> That means full speed with a system load below 1%. I have to use the >> following nonsensical powerd_flags to make it work sensibly: >> -a adaptive -b minimum -i 95 -r 99 >> >> The system is a Core2 Duo, if that is of any help. > > Run powerd in foreground with -v option to get it's work trace. If it > reaches full speed, there must be some reason to do it. > > Updated powerd indeed may behave a bit more aggressively (especially in > new hiadaptive mode, default for AC power). But it was made several > months ago and nobody have complained yet. I am personally using it on > 8-CURRENT on my Core2Duo laptop every day. > # grep powerd /etc/rc.conf powerd_enable="YES" #powerd_flags="-a adaptive -b minimum -i 95 -r 99" powerd_flags="-a adaptive -b minimum -v" # rcrestart powerd powerd not running? Starting powerd. powerd: using sysctl for AC line status powerd: using devd for AC line status load 77%, current freq 2400 MHz ( 0), wanted freq 2400 MHz load 74%, current freq 2400 MHz ( 0), wanted freq 2400 MHz load 78%, current freq 2400 MHz ( 0), wanted freq 2400 MHz load 79%, current freq 2400 MHz ( 0), wanted freq 2400 MHz load 65%, current freq 2400 MHz ( 0), wanted freq 2400 MHz load 72%, current freq 2400 MHz ( 0), wanted freq 2400 MHz load 76%, current freq 2400 MHz ( 0), wanted freq 2400 MHz ... The real load was between 3 and 7 % while these were recorded. Note that I use the normal/old adaptive mode.