Unable to boost higher than 3.8Ghz on zen3 5800X

Started by Mastah, March 23, 2024, 09:38:57 PM

Previous topic - Next topic
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

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





Quotesysctl dev.cpu.0.freq
dev.cpu.0.freq: 3800




Quotesysctl dev.cpu.0.freq_levels
dev.cpu.0.freq_levels: 3800/4180 2800/2800 2200/1980




OPNsense 24.1.2_1-amd64

March 24, 2024, 04:23:36 PM #1 Last Edit: March 24, 2024, 04:27:50 PM by Mastah
powerd -v give the following during high usage



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





Quotesysctl dev.cpu
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:

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.

Just to show what runs most of the internet, a FreeBSD based OS.

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

Quote from: 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

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.

Quote from: 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.

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.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD

March 27, 2024, 12:41:14 AM #5 Last Edit: March 27, 2024, 12:45:07 AM by Mastah
Quote from: Seimus on March 26, 2024, 01:56:36 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.

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.