OPNsense Forum

English Forums => Hardware and Performance => Topic started by: Mastah on March 23, 2024, 09:38:57 pm

Title: Unable to boost higher than 3.8Ghz on zen3 5800X
Post by: Mastah on March 23, 2024, 09:38:57 pm
Somehow my CPU is unable to boost higher than 3.8Ghz on opnsense.
When I boot the exact same hardware on debian all core reach 4.7-4.8Ghz easily.

When I check sysctl output it clearly show that opnsense is unable to manage higher than 3.8Ghz



Quote
sysctl hw.acpi
Code: [Select]
hw.acpi.cpu.cx_lowest: C8
hw.acpi.cpu.cppc_notify: 1
hw.acpi.reset_video: 0
hw.acpi.handle_reboot: 1
hw.acpi.disable_on_reboot: 0
hw.acpi.verbose: 0
hw.acpi.s4bios: 0
hw.acpi.sleep_delay: 1
hw.acpi.suspend_state: S3
hw.acpi.standby_state: NONE
hw.acpi.lid_switch_state: NONE
hw.acpi.sleep_button_state: S3
hw.acpi.power_button_state: S5
hw.acpi.supported_sleep_state: S3 S4 S5



Quote
sysctl dev.cpu.0.freq
Code: [Select]
dev.cpu.0.freq: 3800


Quote
sysctl dev.cpu.0.freq_levels
Code: [Select]
dev.cpu.0.freq_levels: 3800/4180 2800/2800 2200/1980


OPNsense 24.1.2_1-amd64
Title: Re: Unable to boost higher than 3.8Ghz on zen3 5800X
Post by: Mastah on March 24, 2024, 04:23:36 pm
powerd -v give the following during high usage


Code: [Select]
changing clock speed from 2200 MHz to 3800 MHz
load  70%, current freq 3800 MHz ( 0), wanted freq 6460 MHz
load  73%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  63%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  64%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  72%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  63%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  66%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  75%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  72%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  66%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  73%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  64%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  67%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  88%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  69%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  72%, current freq 3800 MHz ( 0), wanted freq 7600 MHz
load  87%, current freq 3800 MHz ( 0), wanted freq 7600 MHz

So definitly wants to get boost but still lock at 3800





Quote
sysctl dev.cpu
Code: [Select]
dev.cpu.15.temperature: 48.5C
dev.cpu.15.cx_method: C1/hlt C2/io
dev.cpu.15.cx_usage_counters: 4862 458019
dev.cpu.15.cx_usage: 1.05% 98.94% last 66101us
dev.cpu.15.cx_lowest: C8
dev.cpu.15.cx_supported: C1/1/1 C2/2/18
dev.cpu.15.%parent: acpi0
dev.cpu.15.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.15.%location: handle=\_PR_.C00F
dev.cpu.15.%driver: cpu
dev.cpu.15.%desc: ACPI CPU
dev.cpu.14.temperature: 48.5C
dev.cpu.14.cx_method: C1/hlt C2/io
dev.cpu.14.cx_usage_counters: 5216 448305
dev.cpu.14.cx_usage: 1.15% 98.84% last 93319us
dev.cpu.14.cx_lowest: C8
dev.cpu.14.cx_supported: C1/1/1 C2/2/18
dev.cpu.14.%parent: acpi0
dev.cpu.14.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.14.%location: handle=\_PR_.C00E
dev.cpu.14.%driver: cpu
dev.cpu.14.%desc: ACPI CPU
dev.cpu.13.temperature: 48.5C
dev.cpu.13.cx_method: C1/hlt C2/io
dev.cpu.13.cx_usage_counters: 4980 438561
dev.cpu.13.cx_usage: 1.12% 98.87% last 108163us
dev.cpu.13.cx_lowest: C8
dev.cpu.13.cx_supported: C1/1/1 C2/2/18
dev.cpu.13.%parent: acpi0
dev.cpu.13.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.13.%location: handle=\_PR_.C00D
dev.cpu.13.%driver: cpu
dev.cpu.13.%desc: ACPI CPU
dev.cpu.12.temperature: 48.5C
dev.cpu.12.cx_method: C1/hlt C2/io
dev.cpu.12.cx_usage_counters: 5005 434655
dev.cpu.12.cx_usage: 1.13% 98.86% last 130722us
dev.cpu.12.cx_lowest: C8
dev.cpu.12.cx_supported: C1/1/1 C2/2/18
dev.cpu.12.%parent: acpi0
dev.cpu.12.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.12.%location: handle=\_PR_.C00C
dev.cpu.12.%driver: cpu
dev.cpu.12.%desc: ACPI CPU
dev.cpu.11.temperature: 48.5C
dev.cpu.11.cx_method: C1/hlt C2/io
dev.cpu.11.cx_usage_counters: 5089 437012
dev.cpu.11.cx_usage: 1.15% 98.84% last 242396us
dev.cpu.11.cx_lowest: C8
dev.cpu.11.cx_supported: C1/1/1 C2/2/18
dev.cpu.11.%parent: acpi0
dev.cpu.11.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.11.%location: handle=\_PR_.C00B
dev.cpu.11.%driver: cpu
dev.cpu.11.%desc: ACPI CPU
dev.cpu.10.temperature: 48.5C
dev.cpu.10.cx_method: C1/hlt C2/io
dev.cpu.10.cx_usage_counters: 5108 439730
dev.cpu.10.cx_usage: 1.14% 98.85% last 310027us
dev.cpu.10.cx_lowest: C8
dev.cpu.10.cx_supported: C1/1/1 C2/2/18
dev.cpu.10.%parent: acpi0
dev.cpu.10.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.10.%location: handle=\_PR_.C00A
dev.cpu.10.%driver: cpu
dev.cpu.10.%desc: ACPI CPU
dev.cpu.9.temperature: 48.5C
dev.cpu.9.cx_method: C1/hlt C2/io
dev.cpu.9.cx_usage_counters: 4608 470169
dev.cpu.9.cx_usage: 0.97% 99.02% last 39290us
dev.cpu.9.cx_lowest: C8
dev.cpu.9.cx_supported: C1/1/1 C2/2/18
dev.cpu.9.%parent: acpi0
dev.cpu.9.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.9.%location: handle=\_PR_.C009
dev.cpu.9.%driver: cpu
dev.cpu.9.%desc: ACPI CPU
dev.cpu.8.temperature: 48.5C
dev.cpu.8.cx_method: C1/hlt C2/io
dev.cpu.8.cx_usage_counters: 4989 433776
dev.cpu.8.cx_usage: 1.13% 98.86% last 39333us
dev.cpu.8.cx_lowest: C8
dev.cpu.8.cx_supported: C1/1/1 C2/2/18
dev.cpu.8.%parent: acpi0
dev.cpu.8.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.8.%location: handle=\_PR_.C008
dev.cpu.8.%driver: cpu
dev.cpu.8.%desc: ACPI CPU
dev.cpu.7.temperature: 48.5C
dev.cpu.7.cx_method: C1/hlt C2/io
dev.cpu.7.cx_usage_counters: 4671 492909
dev.cpu.7.cx_usage: 0.93% 99.06% last 74302us
dev.cpu.7.cx_lowest: C8
dev.cpu.7.cx_supported: C1/1/1 C2/2/18
dev.cpu.7.%parent: acpi0
dev.cpu.7.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.7.%location: handle=\_PR_.C007
dev.cpu.7.%driver: cpu
dev.cpu.7.%desc: ACPI CPU
dev.cpu.6.temperature: 48.5C
dev.cpu.6.cx_method: C1/hlt C2/io
dev.cpu.6.cx_usage_counters: 5617 791347
dev.cpu.6.cx_usage: 0.70% 99.29% last 46544us
dev.cpu.6.cx_lowest: C8
dev.cpu.6.cx_supported: C1/1/1 C2/2/18
dev.cpu.6.%parent: acpi0
dev.cpu.6.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.6.%location: handle=\_PR_.C006
dev.cpu.6.%driver: cpu
dev.cpu.6.%desc: ACPI CPU
dev.cpu.5.temperature: 48.5C
dev.cpu.5.cx_method: C1/hlt C2/io
dev.cpu.5.cx_usage_counters: 4659 477757
dev.cpu.5.cx_usage: 0.96% 99.03% last 128292us
dev.cpu.5.cx_lowest: C8
dev.cpu.5.cx_supported: C1/1/1 C2/2/18
dev.cpu.5.%parent: acpi0
dev.cpu.5.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.5.%location: handle=\_PR_.C005
dev.cpu.5.%driver: cpu
dev.cpu.5.%desc: ACPI CPU
dev.cpu.4.temperature: 48.5C
dev.cpu.4.cx_method: C1/hlt C2/io
dev.cpu.4.cx_usage_counters: 5746 698691
dev.cpu.4.cx_usage: 0.81% 99.18% last 8754us
dev.cpu.4.cx_lowest: C8
dev.cpu.4.cx_supported: C1/1/1 C2/2/18
dev.cpu.4.%parent: acpi0
dev.cpu.4.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.4.%location: handle=\_PR_.C004
dev.cpu.4.%driver: cpu
dev.cpu.4.%desc: ACPI CPU
dev.cpu.3.temperature: 48.5C
dev.cpu.3.cx_method: C1/hlt C2/io
dev.cpu.3.cx_usage_counters: 4708 483212
dev.cpu.3.cx_usage: 0.96% 99.03% last 115489us
dev.cpu.3.cx_lowest: C8
dev.cpu.3.cx_supported: C1/1/1 C2/2/18
dev.cpu.3.%parent: acpi0
dev.cpu.3.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.3.%location: handle=\_PR_.C003
dev.cpu.3.%driver: cpu
dev.cpu.3.%desc: ACPI CPU
dev.cpu.2.temperature: 48.5C
dev.cpu.2.cx_method: C1/hlt C2/io
dev.cpu.2.cx_usage_counters: 5096 539661
dev.cpu.2.cx_usage: 0.93% 99.06% last 40502us
dev.cpu.2.cx_lowest: C8
dev.cpu.2.cx_supported: C1/1/1 C2/2/18
dev.cpu.2.%parent: acpi0
dev.cpu.2.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.2.%location: handle=\_PR_.C002
dev.cpu.2.%driver: cpu
dev.cpu.2.%desc: ACPI CPU
dev.cpu.1.temperature: 48.5C
dev.cpu.1.cx_method: C1/hlt C2/io
dev.cpu.1.cx_usage_counters: 4564 466781
dev.cpu.1.cx_usage: 0.96% 99.03% last 120392us
dev.cpu.1.cx_lowest: C8
dev.cpu.1.cx_supported: C1/1/1 C2/2/18
dev.cpu.1.%parent: acpi0
dev.cpu.1.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.1.%location: handle=\_PR_.C001
dev.cpu.1.%driver: cpu
dev.cpu.1.%desc: ACPI CPU
dev.cpu.0.temperature: 48.5C
dev.cpu.0.cx_method: C1/hlt C2/io
dev.cpu.0.cx_usage_counters: 5075 845559
dev.cpu.0.cx_usage: 0.59% 99.40% last 5814us
dev.cpu.0.cx_lowest: C8
dev.cpu.0.cx_supported: C1/1/1 C2/2/18
dev.cpu.0.freq_levels: 3800/4180 2800/2800 2200/1980
dev.cpu.0.freq: 3800
dev.cpu.0.%parent: acpi0
dev.cpu.0.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.0.%location: handle=\_PR_.C000
dev.cpu.0.%driver: cpu
dev.cpu.0.%desc: ACPI CPU
dev.cpu.%parent:
Title: Re: Unable to boost higher than 3.8Ghz on zen3 5800X
Post by: Mastah on March 25, 2024, 06:23:39 pm
After speaking with people at freebsd discord I've more than the feeling that freebsd is at best dying, at worst already dead and can't keep with modern tech and hardware.

The more I think about it and the more I believe that freebsd is not the way to go, and that opnsense should switch to something with more support, more perf and more hardware support.
Title: Re: Unable to boost higher than 3.8Ghz on zen3 5800X
Post by: Monviech on March 25, 2024, 07:36:02 pm
Just to show what runs most of the internet, a FreeBSD based OS.

https://en.m.wikipedia.org/wiki/Junos_OS
Title: Re: Unable to boost higher than 3.8Ghz on zen3 5800X
Post by: Seimus on March 26, 2024, 01:56:36 am
Just to show what runs most of the internet, a FreeBSD based OS.

https://en.m.wikipedia.org/wiki/Junos_OS

Correct, this is so true yet so many people dont even realize it. Even most if not all PE and P routers for MPLS, AVPN, EVPN and L2VPN are running on Juniper Routers.

After speaking with people at freebsd discord I've more than the feeling that freebsd is at best dying, at worst already dead and can't keep with modern tech and hardware.

The more I think about it and the more I believe that freebsd is not the way to go, and that opnsense should switch to something with more support, more perf and more hardware support.

Sorry but absolute nonsense.

Also using Discord for asking help on a OS is just wrong. Ask them on forum not on discord, thats where is the knowhow.

Also did you set your PowerD settings in OPN to HiAdaptive at least?

Regards,
S.
Title: Re: Unable to boost higher than 3.8Ghz on zen3 5800X
Post by: Mastah on March 27, 2024, 12:41:14 am
Also did you set your PowerD settings in OPN to HiAdaptive at least?

Yes I did, no it doesn't work. Yes the ppl on discord are actual contributor to the source code of freebsd.
And no, the kernel is not able so it would seem, to handle properly AMD cpu above zen2. And even zen2 are not supported correctly. That a 5-6years old tech at that point.

You are speaking of custom OS that have forked for more than 10-15years from BSD. It's like comparing Apple OS to unix/linux.
I'm wondering why some major open source (and not open source) project are getting the f out of bsd to move to linux though.
Title: Re: Unable to boost higher than 3.8Ghz on zen3 5800X
Post by: Mastah on March 28, 2024, 12:35:32 am
Been testing Debian 12 on the exact same hardware today (dual booting next to opnsense).

CPU load is 2-3 times less, thread are spread on multiples cores, CPU boost is maxed, packet loss is 0, and routing work damn great.

I max out a symmetrical 10Gbe, which I was not able to do prior to that.

Up to you to draw the conclusion. Linux is my new router.