From owner-freebsd-current@FreeBSD.ORG Mon Apr 18 12:19:22 2005 Return-Path: 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 3C89C16A4CE; Mon, 18 Apr 2005 12:19:22 +0000 (GMT) Received: from mx01.stofanet.dk (mx01.stofanet.dk [212.10.10.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C52443D49; Mon, 18 Apr 2005 12:19:21 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from d40a2021.rev.stofanet.dk ([212.10.32.33] helo=critter.freebsd.dk) by mx01.stofanet.dk (envelope-from ) with esmtp id 1DNVDi-0004HW-01; Mon, 18 Apr 2005 14:19:20 +0200 Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.3) with ESMTP id j3ICJEWv002305; Mon, 18 Apr 2005 14:19:14 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Eric Anderson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 18 Apr 2005 07:08:26 CDT." <4263A33A.3030201@centtech.com> Date: Mon, 18 Apr 2005 14:19:14 +0200 Message-ID: <2304.1113826754@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: freebsd-current@freebsd.org Subject: Re: powerd(8) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 18 Apr 2005 12:19:22 -0000 In message <4263A33A.3030201@centtech.com>, Eric Anderson writes: >Lukas Ertl wrote: > >There's been some discussion on the -mobile list (I believe) about >this kind of thing before. I think powerd is currently running with >a 'best shot' configuration, and I'm pretty sure that if anyone has >a better algorithm in a patch form for people to try, I'm certain the >good people with commit bits would easily commit a patched better version. I don't think a proportional approach will work in this case, the steps are too far apart. I also think the switch to full speed is wrong. Such see-saw algorithms waste far too much time decaying. A less steep flank should be used. For instance: if (idle > 90%) reduce clock one step. if (idle < 80%) increase clock two steps. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.