Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2021 14:01:34 -0700
From:      "Thomas D. Dean" <tomdean@wavecable.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: How do I disable CPU throttling
Message-ID:  <4d1e32fc-3e77-626e-138b-6af872445c5e@wavecable.com>
In-Reply-To: <CAFbbPuhuWdzjfH2e7RSwiUa2UORAoJE_-yQeqyoMz7gTMjfxTA@mail.gmail.com>
References:  <f982b8fd-0ec0-24a9-8272-4da3bd5d19c4@wavecable.com> <0be4883a-6bf6-28bc-a14b-9cb1f6d729ae@wavecable.com> <CAFbbPuhuWdzjfH2e7RSwiUa2UORAoJE_-yQeqyoMz7gTMjfxTA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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

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@wavecable.com 
> <mailto:tomdean@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@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@freebsd.org <mailto:freebsd-questions@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@freebsd.org
>     <mailto:freebsd-questions-unsubscribe@freebsd.org>"
> 
> 
> 
> -- 
> __________________
> 
> :(){ :|:& };:




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d1e32fc-3e77-626e-138b-6af872445c5e>