From: Rafael Sadowski Subject: Re: cpu perfpolicy To: Vitaliy Makkoveev Cc: Ted Unangst , tech@openbsd.org Date: Mon, 2 Jun 2025 20:29:56 +0200 On Mon Jun 02, 2025 at 05:37:00PM +0300, Vitaliy Makkoveev wrote: > On Sun, Jun 01, 2025 at 03:22:59PM -0400, Ted Unangst wrote: > > This introduces a helper function for hw.perfpolicy that allows more > > machine specific policies to be set. > > > > On my laptop, there's also a fan policy. This affects performance, but > > it's not really related to the existing hw.setperf mechanism. For > > example, a "silent" fan setting and "high" CPU setting is reasonable. > > Exactly what I want, in fact. > > > > Fortunately, perfpolicy takes a string, which makes it flexible. > > This uses two new optional functions to parse and append the policy. > > > > hw.perfpolicy=silent,auto > > > > Do we really need to combine them? Why don't have dedicated > hw.fanpolicy? > +1