Peter Hessler [phess...@openbsd.org] wrote:
> On 2014 Oct 17 (Fri) at 12:12:07 +0100 (+0100), Kevin Chadwick wrote:
> :On Thu, 16 Oct 2014 19:55:00 -0600 (MDT)
> :Ted Unangst wrote:
> :
> :> remove performance throttling code from here, use the kernel version
> :> instead. this effectively kills -C, though the option is kept for compat.
> :
> :>> redo the performance throttling in the kernel.
> :>> introduce a new sysctl, hw.perfpolicy, that governs the policy.
> :>> when set to anything other than manual, hw.setperf then becomes read
> :>> only. phessler was heading in this direction, but this is slightly
> :>> different. :)
> :
> :Is the default hw.perfpolicy equivalent to -C or should
> :I investigate the options when I upgrade?
> :
> :Thanks,
> :     Kc
> :
> 
> The default has the same semantics as -C.  -A was a hack to work around
> the bugs that in kernel performance throttling fixed.
> 

To clarify Peter's answer;

The default hw.perfpolicy is 'manual' which is still the same as before.
(Nothing changes if you upgrade -current, you can still control hw.setperf
by hand.)

Once you set the policy to 'auto' then it is the same as what apmd tried
to do from userland with -C. But it works for more general purposes,
due to reduced latency of moving the power mgmt logic into the kernel.

Chris

Reply via email to