By default FreeBSD is optimised for Servers, not desktops or in this case laptops.
You can improve power management performance with the following.
In sysctl.conf
add something like the following. Put in enough entries to match your CPU cores. In my case it's a 12
core system. The setting of 100 is for maximum power savings. You can also use 0 for maximum performance and 50 for balanced.
dev.hwpstate_intel.0.epp=100
dev.hwpstate_intel.1.epp=100
dev.hwpstate_intel.2.epp=100
dev.hwpstate_intel.3.epp=100
dev.hwpstate_intel.4.epp=100
dev.hwpstate_intel.5.epp=100
dev.hwpstate_intel.6.epp=100
dev.hwpstate_intel.7.epp=100
dev.hwpstate_intel.8.epp=100
dev.hwpstate_intel.9.epp=100
dev.hwpstate_intel.10.epp=100
dev.hwpstate_intel.11.epp=100
Also in loader.conf
you and add the following. This allows better management of the CPU cores for laptops.
machdep.hwpstate_pkg_ctrl=0
This information was sourced from https://www.neelc.org/posts/optimize-freebsd-for-intel-tigerlake/
Copyright © 2020 | Ben Hutton