Performance Issues LAN

Started by bpalob, May 02, 2020, 11:24:11 AM

Previous topic - Next topic
Good day,

am not sure if this is related to the 20.7 Dev Build. I apologize if I´m in the wrong topic.

I have just recently started using Opensense. Got myself a APU4 board from PCEngines. It all runs quite smooth, am certainly not unhappy. Managed to get the firewall and everything to my liking, still battling VPN client issues (OpenVPN to Server). But that´s a different topic ;-)

An issue I am having is with LAN performance. If I do IPERF vs. the router, I get approx. 450mbps for TCP, but I do get 1gbps when using UDP. Have tried both with 5 parallel streams. When I look at the processor load on TCP, I get core 0 running pretty much idle, while 2,3 & 4 are maxed out. Overall Netdata shows me 100% usage.

For WAN I do have 300/30mbps connection, which I do get to the client without problems.

Everything is wired btw.

Any suggestions on how I can improve TCP throughput in the LAN? I specially don´t like slow speeds between NAS and clients...

Thanks.

Is your APU your NAS or why do you push client <> nas traffic trough your APU?

Did you run iperf on the apu itself? that cost a lot cpu power and hurt your bandwith.

June 08, 2020, 03:17:15 PM #2 Last Edit: June 08, 2020, 03:19:46 PM by sToRmInG
You'll have to run iperf with multiple connection. 450mbps is pretty much the maximum for one single TCP connection since it is bound to one single core. Additionally the APU4 uses i211at NICs with only 2 tx/rx queues compared to the APU2 which is using i210at NICs with 4 tx/rx queues. However you should be able to get around ~930mbps with more than one connection (iperf -P 4).

You should probably have a look at this topic: https://forum.opnsense.org/index.php?topic=6590.30