[patch] enhance powerd(8) to handle max temperature

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pietro Cerutti
Date: Friday, July 27, 2007 - 7:43 am

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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] enhance powerd(8) to handle max temperature, Pietro Cerutti, (Fri Jul 27, 7:43 am)
Re: [patch] enhance powerd(8) to handle max temperature, Hajimu UMEMOTO, (Fri Jul 27, 7:23 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Pietro Cerutti, (Mon Jul 30, 2:28 am)
Re: [patch] enhance powerd(8) to handle max temperature, Kris Kennaway, (Mon Jul 30, 11:03 am)
Re: [patch] enhance powerd(8) to handle max temperature, Pietro Cerutti, (Mon Jul 30, 2:31 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Hajimu UMEMOTO, (Mon Jul 30, 6:21 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Pietro Cerutti, (Mon Jul 30, 10:54 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Hajimu UMEMOTO, (Mon Jul 30, 11:43 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Pietro Cerutti, (Mon Jul 30, 11:47 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Doug Ambrisko, (Wed Aug 1, 10:06 am)
Re: [patch] enhance powerd(8) to handle max temperature, M. Warner Losh, (Wed Aug 1, 8:17 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Garrett Cooper, (Wed Aug 1, 8:26 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Julian Elischer, (Wed Aug 1, 8:37 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Julian Elischer, (Wed Aug 1, 9:17 pm)
Re: [patch] enhance powerd(8) to handle max temperature, M. Warner Losh, (Wed Aug 1, 9:50 pm)
Re: [patch] enhance powerd(8) to handle max temperature, Garrett Cooper, (Wed Aug 1, 9:58 pm)
Re: [patch] enhance powerd(8) to handle max temperature, M. Warner Losh, (Thu Aug 2, 3:41 pm)