Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2007 16:43:29 +0200
From:      Pietro Cerutti <gahr@gahr.ch>
To:        freebsd-hackers@freebsd.org
Subject:   [patch] enhance powerd(8) to handle max temperature
Message-ID:  <46AA0491.5000203@gahr.ch>

next in thread | raw e-mail | index | archive | help
Hi list,
here is a patch to allow powerd(8) accept a "-t tval" option to set a
temperature limit above which performance should be decreased.
It's a first draft, and I identified the following problems:

- the CPU temperature takes some time to decrease, so powerd keeps
decreasing the CPU frequency until the temperature is below the limit.
The effect is a "increase to maximum, decrease to minimum, increase to
maximum, decrease to minimum, ...." which may not be desirable.

- the temperature is retrieved by the hw.acpi.thermal.tz0.temperature
sysctl MIB. Support for other methods would be desirable.

The patches to powerd.c and powerd.8 are here:
http://www.gahr.ch/FreeBSD/patches/powerd.c.diff
http://www.gahr.ch/FreeBSD/patches/powerd.8.diff

Any comment is welcome!

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46AA0491.5000203>