How do I disable CPU throttling

Thomas D. Dean tomdean at wavecable.com
Mon Jul 12 21:20:38 UTC 2021


On 7/12/21 2:01 PM, Thomas D. Dean wrote:
> On 7/12/21 1:12 PM, Paul Procacci wrote:
>> 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
> 
> 
>  > grep -Rail freq_levels /etc/*
> shows the source of freq_levels

Wow! Should be:  does not show the source of freq_levels

> 
> I believe this is hardwired somewhere.  Maybe read from the cpu? BIOS?
> 
>>
>> On Mon, Jul 12, 2021 at 3:55 PM Thomas D. Dean <tomdean at wavecable.com 
>> <mailto: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 <mailto:freebsd-questions at freebsd.org>
>>     mailing list
>>     https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>     <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>
>>     To unsubscribe, send any mail to
>>     "freebsd-questions-unsubscribe at freebsd.org
>>     <mailto:freebsd-questions-unsubscribe at freebsd.org>"
>>
>>
>>
>> -- 
>> __________________
>>
>> :(){ :|:& };:
> 
> _______________________________________________
> 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