Re: powerd(8)

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Mon, 18 Apr 2005 14:19:14 +0200
In message <4263A33A.3030201_at_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_at_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.
Received on Mon Apr 18 2005 - 10:19:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:32 UTC