Date: Tue, 31 Jul 2007 10:21:24 +0900 From: Hajimu UMEMOTO <ume@freebsd.org> To: Pietro Cerutti <gahr@gahr.ch> Cc: acpi@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: [patch] enhance powerd(8) to handle max temperature Message-ID: <yge4pjl1i7f.wl%ume@mahoroba.org> In-Reply-To: <46AE58B5.3080506@gahr.ch> References: <46AA0491.5000203@gahr.ch> <yge7iol6zb8.wl%ume@mahoroba.org> <46ADAF5B.6050602@gahr.ch> <20070730180355.GA7355@rot26.obsecurity.org> <46AE58B5.3080506@gahr.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
>>>>> On Mon, 30 Jul 2007 23:31:33 +0200
>>>>> Pietro Cerutti <gahr@gahr.ch> said:
gahr> I can't test it, since I can't use passive cooling, but how do not these
gahr> two systems interfere with each other wrt setting the CPU frequency?
gahr> What if, for example, my CPU temperature rises above _PSV but the CPU
gahr> usage drops below 65%?
Do you mean that your hw.acpi.thermal.tz0._PSV has reasonable value?
If so, perhaps, your ACPI BIOS is broken, and _TC1, _TC2 and _TSP are
not defined correctly. Please show me the output of `sysctl hw.acpi'
and `acpidump -dt'.
gahr> In this case, the CPU frequency should be increased according to
gahr> powerd's algorithm and should be decreased according to passive
gahr> cooling's algorithm.
gahr> Wouldn't it be better to have one subsystem deal with both usage and
gahr> temperature in order to decide which is the best next frequency to be set?
No, we have a priority to control a cpufreq in our kernel, to deal
with conflict between kernel and userland. Controlling cpufreq within
our kernel is considered as high proirity. So, during our kernel is
controlling a cpufreq, we cannot change cpufreq from userland. And,
our kernel releasing the control, a cpufreq is back to the value
before our kernel changed it.
gahr> My patch is really just a first draft that I wrote in order to have
gahr> feedbacks on the general idea to implement a temperature controlling
gahr> system inside powerd, and doesn't implement hysteresis as you noted, and
gahr> your feedback is that it's not a good idea, which I respect.
It is rather backward, IMHO. I did implement a passive cooling
feature as an enhancement of powerd(8) like you did, during initial
phases. Then, I implemented it in our kernel as a result.
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge4pjl1i7f.wl%ume>
