Hello, On Wed, 03 Feb 2016 13:17:11 -0800 "Constantine A. Murenin" <c...@netbsd.org> wrote:
> On 2016-02-03 10:06, Eduardo Horvath wrote: > > On Tue, 2 Feb 2016, Constantine A. Murenin wrote: > > > >> Wouldn't the correct solution then be to kill the process-intensive jobs, > >> instead of shutting down the whole system? > > > > That doesn't really make too much sense. > > > > In theory, if the CPU has a low power mode and the machine detects > > thermal issues, you could lower the temperature by periodically switching > > into the low power mode. Some CPUs operate this way. > > > > However, at the moment there's no way that a low power mode will generate > > less heat than a no power mode. > > I think the issue at stake are the false positives, during which powerd > will rudely shutdown any box (w/ etc/powerd/scripts/sensor_temperature). Some machines do that by hardware - in my SB2500 for example the ADM1031's alarm/interrupt outputs will trigger a power down, powerd or not. Got to set sensible threshold temperatures, in that case just leave alone what the firmware put there. I wrote some code to slow down the CPU when the temperature gets too high, rather hackish and PowerPC 750 only, but I'm sure it can be generalized relatively easily. have fun Michael