OPNsense Forum

English Forums => Hardware and Performance => Topic started by: devilkin on October 31, 2020, 05:17:06 pm

Title: OPNsense on APU2E4 performance
Post by: devilkin on October 31, 2020, 05:17:06 pm
Hi folks,

I know there have been some threads about the APU2 performance, but I'm not really in the same boat, as I'm not using PPPoE.

So, inital tests using iperf on the APU2 itself: maximum throughput I seem to get is around 740Mbit. Decent, but I was hoping to get more. I notice that the bottleneck there is the CPU, so I guess that's as good as it gets.

Running iperf outside (server/client on other machines) I hit 1Gbps, even with NAT on.

What I have noticed is that when the system is busy transferring the packets - even without NAT - I hit around 100% system, interrupts stays very low at all times. I was hoping if I could reduce the system load somehow?

Hardware CRC/TSO/LRO and Vlan filtering are enabled.
Title: Re: OPNsense on APU2E4 performance
Post by: aesth on October 31, 2020, 06:24:36 pm
Could you check what frequency it's at while you're doing the test. It seems I was able to keep mine clocked at 1400 by placing additional heatsinks on the case.
(I don't really do speed tests myself however, my system performs fine at 1400 with good temperatures.)
Add:
Code: [Select]
hint.p4tcc.0.disabled=1
hint.acpi_throttle.0.disabled=1
hint.acpi_perf.0.disabled=1
To:
Code: [Select]
boot/loader.conf.localAnd run:
Code: [Select]
sysctl dev.cpu.0To see if the frequency drops.
Code: [Select]
dev.cpu.0.freq_levels: 1400/-1 1200/-1 1000/-1
dev.cpu.0.freq: 1400
Title: Re: OPNsense on APU2E4 performance
Post by: devilkin on November 01, 2020, 05:11:40 pm
Hm, ok.

I was assuming there would be some form of scaling but the cpu is just at 1400, is this right?
Title: Re: OPNsense on APU2E4 performance
Post by: aesth on November 02, 2020, 09:47:00 am
Okay, so it's not throttling. Thanks for checking.