powerd - Initial load monitor and cpu frequency adjustment daemon
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 28 Jun 2010 21:36:24 +0000 (14:36 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 28 Jun 2010 21:36:24 +0000 (14:36 -0700)
commitcc537f99eefe3e1190b0d2388ead346180e9ea24
tree0d7b6b88ce85a2be782928f495e4cd4a17981c9e
parent0b3a8a4f79c920a3c3b71c5602e3b2edf57e097b
powerd - Initial load monitor and cpu frequency adjustment daemon

This daemon uses the hw.acpi.cpu.px_dom* sysctls to adjust the frequency
for all cpus based on the system cpu load.

For this initial implementation the daemon simply sets cpus to the maximum
frequency when the 1-second load exceeds 25% of one cpu and sets the cpus
to the minimum frequency when the 10-second load drops below 12%.
usr.sbin/powerd/Makefile [new file with mode: 0644]
usr.sbin/powerd/powerd.8 [new file with mode: 0644]
usr.sbin/powerd/powerd.c [new file with mode: 0644]