Index | Thread | Search

From:
"Thomas L." <tom.longshine@web.de>
Subject:
Re: apmd: adapt to changes in hw.perfpolicy sysctl
To:
Klemens Nanni <kn@openbsd.org>
Cc:
tech@openbsd.org
Date:
Sat, 11 Jan 2025 01:05:30 +0100

Download raw body.

Thread
On Fri, 10 Jan 2025 18:47:39 +0000
Klemens Nanni <kn@openbsd.org> wrote:

> 10.01.2025 20:13, Jeremie Courreges-Anglas пишет:
> > To get the default behavior of the kernel since 2021, which is
> > effectively "high,auto", you can just stop using apmd's -A flag.  
> 
> -A is the default, so dropping it should make no difference
> unless you pass -L or -H instead.
> 

the manpage lies, actually there are 4 different ways:
-A doperf=PERF_AUTO and setperfpolicy("auto") on startup (sets 
  hw.perfpolicy=auto)
-L doperf=PERF_MANUAL and setperfpolicy("low") on startup (sets
  hw.perfpolicy=manual and hw.setperf=0)
-H doperf=PERF_MANUAL and setperfpolicy("high") on startup (sets
  hw.perfpolicy=manual and hw.setperf=100)
none of the above, doperf=PERF_MANUAL and no sysctl on startup