From owner-freebsd-current@FreeBSD.ORG Fri Jan 11 18:13:49 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B30C16A41B; Fri, 11 Jan 2008 18:13:49 +0000 (UTC) (envelope-from SRS0=49a8a32bfc6e967a4ea9652369547b7d9dc9597c=577=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [IPv6:2001:400:14:3::6]) by mx1.freebsd.org (Postfix) with ESMTP id B2D4A13C45D; Fri, 11 Jan 2008 18:13:48 +0000 (UTC) (envelope-from SRS0=49a8a32bfc6e967a4ea9652369547b7d9dc9597c=577=es.net=oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id RTY46446; Fri, 11 Jan 2008 10:13:46 -0800 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 5E7244500E; Fri, 11 Jan 2008 10:13:44 -0800 (PST) To: "Igor Mozolevsky" In-Reply-To: Your message of "Fri, 11 Jan 2008 11:51:07 GMT." Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1200075224_3679P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 11 Jan 2008 10:13:44 -0800 From: "Kevin Oberman" Message-Id: <20080111181344.5E7244500E@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ; ; ; ; ; ; X-Sender: X-To_Name: Igor Mozolevsky X-To_Domain: hybrid-lab.co.uk X-To: "Igor Mozolevsky" X-To_Email: igor@hybrid-lab.co.uk X-To_Alias: igor Cc: bruno@freebsd.org, =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , njl@freebsd.org, freebsd-current@freebsd.org, Stefan Lambrev Subject: Re: powerd adaptive mode latching X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2008 18:13:49 -0000 --==_Exmh_1200075224_3679P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Fri, 11 Jan 2008 11:51:07 +0000 > From: "Igor Mozolevsky" > Sender: owner-freebsd-current@freebsd.org > > On 11/01/2008, Dag-Erling Smørgrav wrote: > > > The whole point of powerd is to automatically adapt to the load. If > > your laptop "lags too much" powerd should detect that and increase the > > CPU frequency. However, poor interactive response can result when CPU > > frequency fluctuates too quickly; perhaps your problem will go away with > > Andrew's patch, which is intended to dampen such fluctuations? > > I was also thinking that the power increase probably shouldn't be > linear, maybe there should be a choice of algs: 2-step, 50%-100%, etc. > Normally you don't mind power dropping slowly, but for most things you > don't want to wait N-seconds for the clock to be stepped up to its > full throttle... The part of powerd.c that controls this is very easy to understand and modify. I write almost no C these days and I had no problems changing the adaptive algorithm to try other things. Try your idea and see how it works. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1200075224_3679P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFHh7HYkn3rs5h7N1ERAuiPAKCc5Mj2kcZQaG2TTK5+5k6Op7FNcACgthiX ei+uPPPkt9b4raTPrUyEQVQ= =JRIi -----END PGP SIGNATURE----- --==_Exmh_1200075224_3679P--