How do I disable CPU throttling

Paul Procacci pprocacci at gmail.com
Mon Jul 12 20:12:29 UTC 2021


sysctl's get set generally in /etc/sysctl.conf

dev.cpu.0.freq_levels <-- This format is called a mib in the native
parlance.
sysctl.conf(5) and sysctl(8) go into much further detail.

~Paul

On Mon, Jul 12, 2021 at 3:55 PM Thomas D. Dean <tomdean at wavecable.com>
wrote:

> On 7/12/21 3:48 AM, Thomas D. Dean wrote:
> > I want to run this system at a fixed freq.  It has beefed-up cooling.
> >
> > How do I do this?
> >
> >  > uname -a
> > FreeBSD aorus 13.0-RELEASE FreeBSD 13.0-RELEASE #0:
> >     Sat Jul 10 23:47:01 PDT 2021
> >     tomdean at aorus:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
> >
> >  From dmidecode:
> >   MB: Gigabyte TRX40 AORUS XTREME
> >   CPU: AMD Ryzen Threadripper 3970X
> >     Max Speed: 4550 MHz
> >     Current Speed: 3700 MHz
> >
> > # sysctl dev.cpu | grep freq
> > dev.cpu.0.freq_levels: 3700/4070 2800/2800 2200/1980
> > dev.cpu.0.freq: 2200
> >
> > #sysctl dev.cpu.0.freq=3700
> > dev.cpu.0.freq: 2200 -> 3700
> >
> > === wait 30 sec
> >
> > # sysctl dev.cpu.0.freq
> > dev.cpu.0.freq: 2200
> >
> > Why does dmidecode (via cpu-x) report a different value than
> >    sysctl dev.cpu.0.freq?
>
>
> where does dev.cpu.0.freq_levels get set at boot time?
>
>  > sysctl -n dev.cpu.0.freq_levels
> 3700/4070 2800/2800 2200/1980
>
> Looks like this is hardwired somewhere.
>
> I searched src/sys/* and found nothing, unless I missed it.  grep'd
> freq_levels, 3700, 4070
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


-- 
__________________

:(){ :|:& };:


More information about the freebsd-questions mailing list