OPNsense Forum

English Forums => Hardware and Performance => Topic started by: KevinPeters on June 16, 2022, 03:13:08 PM

Title: intel_speed_shift.default_epp being ignored on boot
Post by: KevinPeters on June 16, 2022, 03:13:08 PM
Using OPNSense 22.1.8 typing in:

sysctl dev.hwpstate_intel.0.epp=100

which results in a nice drop in CPU temperature.

I want this setting to persist at reboot, but regardless of where I put it, it is ignored. I have tried /boot/loader.conf.local
/etc/sysctl.conf
/etc/sysctl.conf.local
/etc/rc.conf.d/10-mysysctl


Interestingly, if I manually do a:
service sysctl restart

It immediately picks up the new setting and the temps drop.

So my question is, where can I put the setting so that it will be read at boot time?
Title: Re: intel_speed_shift.default_epp being ignored on boot
Post by: meyergru on June 16, 2022, 06:44:59 PM
Do in in System-> Settings -> Tuneables. It will survive a reboot.
Title: Re: intel_speed_shift.default_epp being ignored on boot
Post by: KevinPeters on June 16, 2022, 07:29:48 PM
Thanks, that worked!!
Title: Re: intel_speed_shift.default_epp being ignored on boot
Post by: franco on June 17, 2022, 10:19:21 AM
Just to comment on the previous attempts:

> /boot/loader.conf.local

Won't work if it's a runtime value.

> /etc/sysctl.conf
> /etc/sysctl.conf.local

We don't use the sysctl rc service.

> /etc/rc.conf.d/10-mysysctl

This doesn't make any sense?


Cheers,
Franco
Title: Re: intel_speed_shift.default_epp being ignored on boot
Post by: abulafia on July 12, 2022, 08:16:50 AM
Also note that depending on your CPU, sysctl dev.hwpstate_intel.0.xyz may not work - on my i5250u, it doesn't :-(

root@OPNsense:~ # sysctl dev.hwpstate_intel.0
sysctl: unknown oid 'dev.hwpstate_intel.0'