How to set CPU performance to max(3000MHz) on TrueNAS core?
Linux commands like cpupower, cpufreq-set are not available on FreeBSD.
I tried the command powerd with script from https://gist.github.com/dreamcat4/640f40331719d3858483 but the script(./cpu-speed.sh 3000) is not able to set the CPU frequency to 3000:
root@truenas[~]# ./cpu-speed.sh 3000
dev.cpu.0.freq: 1900
dev.cpu.0.freq_levels: 1900/1805 1600/1480 1200/1072
root@truenas[~]#
root@truenas[~]# powerd -n hadp
powerd: powerd already running, pid: 51667
root@truenas[~]# sysctl dev.cpu.0.freq_levels
dev.cpu.0.freq_levels: 1900/1805 1600/1480 1200/1072
root@truenas[~]# powerd -a max
powerd: powerd already running, pid: 51667
root@truenas[~]# sysctl dev.cpu.0.freq_levels
dev.cpu.0.freq_levels: 1900/1805 1600/1480 1200/1072
root@truenas[~]#
root@truenas[~]# cat /etc/version
TrueNAS-12.0-U2.1 (ff1fe0fc68)
root@truenas[~]# uname -a
FreeBSD truenas.local 12.2-RELEASE-p3 FreeBSD 12.2-RELEASE-p3 7851f4a452d(HEAD) TRUENAS amd64
root@truenas[~]#
CPU details:
Architecture: amd64
Byte Order: Little Endian
Total CPU(s): 24
Thread(s) per core: 1
Core(s) per socket: 24
Socket(s): 1
Vendor: AuthenticAMD
CPU family: 23
Model: 1
Model name: AMD EPYC 3351 12-Core Processor
Linux commands like cpupower, cpufreq-set are not available on FreeBSD.
I tried the command powerd with script from https://gist.github.com/dreamcat4/640f40331719d3858483 but the script(./cpu-speed.sh 3000) is not able to set the CPU frequency to 3000:
root@truenas[~]# ./cpu-speed.sh 3000
dev.cpu.0.freq: 1900
dev.cpu.0.freq_levels: 1900/1805 1600/1480 1200/1072
root@truenas[~]#
root@truenas[~]# powerd -n hadp
powerd: powerd already running, pid: 51667
root@truenas[~]# sysctl dev.cpu.0.freq_levels
dev.cpu.0.freq_levels: 1900/1805 1600/1480 1200/1072
root@truenas[~]# powerd -a max
powerd: powerd already running, pid: 51667
root@truenas[~]# sysctl dev.cpu.0.freq_levels
dev.cpu.0.freq_levels: 1900/1805 1600/1480 1200/1072
root@truenas[~]#
root@truenas[~]# cat /etc/version
TrueNAS-12.0-U2.1 (ff1fe0fc68)
root@truenas[~]# uname -a
FreeBSD truenas.local 12.2-RELEASE-p3 FreeBSD 12.2-RELEASE-p3 7851f4a452d(HEAD) TRUENAS amd64
root@truenas[~]#
CPU details:
Architecture: amd64
Byte Order: Little Endian
Total CPU(s): 24
Thread(s) per core: 1
Core(s) per socket: 24
Socket(s): 1
Vendor: AuthenticAMD
CPU family: 23
Model: 1
Model name: AMD EPYC 3351 12-Core Processor