Subject: Re: sysmon uses more power
To: Juan RP <>
From: Iain Hibbert <>
List: tech-kern
Date: 09/25/2007 08:48:52
On Tue, 25 Sep 2007, Juan RP wrote:

> The acpibat(4) and acpitz(4) drivers were modified to check for state
> changes via sysmon_envsys(9), and there's a callout that checks
> for any change on them each 10 seconds by default.
> You can change it in kern.envsys.refresh_timeout, does that solve your
> problem?

Not sure - that we have a watchdog is fine, but that it uses more CPU time
than my window manager seems .. expensive?

> >     0     3 root      27 smtaskq    3:00  1.12%  1.12% [system]     sysmon
> >   408     1 plunky   -14 select     1:46  0.00%  0.00% icewm        -

also, looking at the code, this callout fires every NN seconds and puts
some work on a workqueue called 'envsysev' which isn't really working

> >     0    14 root     -22 envsysev   0:05  0.00%  0.00% [system]     envsysev

so its not that exactly causing the fan to boost..

> I added them because otherwise you won't be notified if a zone gets
> hot/critical or if the battery is in critical/low state.

I've set no critical limits and powerd is not running, should there be
anything else going on?