Userland CPU frequency scheduling for OpenBSD
Go to file
Solene Rapenne f5ac5e9b14 Use my name in LICENSE 2022-03-16 18:44:27 +01:00
LICENSE Use my name in LICENSE 2022-03-16 18:44:27 +01:00
Makefile obsdfreqd: init 2022-03-16 18:42:28 +01:00
README.md README: obsdfreqd sets policy auto when exiting 2022-03-16 18:43:56 +01:00
main.c obsdfreqd: init 2022-03-16 18:42:28 +01:00

README.md

obsdfreqd

Userland CPU frequency scheduling for OpenBSD

Compilation

As easy as make

Running

Run obsdfreqd as root, quit with Ctrl+C.

What is it doing?

obsdfreqd will change the perfpolicy sysctl to manual and will change the CPU frequency by polling every often (like 100ms) the CPU load and change the frequency accordingly, the perfpolicy is set to auto upon exit.

The end goal is to provide a feature rich CPU frequency scheduler for the following use case:

  • battery saving while keeping responsiveness when needed (which apm -L doesn't do)
  • reduce heat or electrical coil noise when on powerplug because the new default assuming mainboard and CPU can manage itself doesn't work well
  • reduce power consumption for system on powerplug while staying performant enough