OPNsense Forum

English Forums => Hardware and Performance => Topic started by: relume on August 27, 2025, 12:18:30 PM

Title: opnsense (25.7) LAN speed limitations to devices on same proxmox network bridge
Post by: relume on August 27, 2025, 12:18:30 PM
opnsense : 25.7.2
proxmox : 8.4.10
CPU : 24 Cores / Xeon(R) CPU L5640 (yes old ones)
RAM : 128GB

Hello

I am testing LAN network speed with iperf3 from and to the OPNSense 25.7 installation as a VM on proxmox. All involved devices in test are connected on the same proxmox virtual network bridge as VMs or over a 10Gbps physical switch. Say I have the following setting:

OPNSense VM on proxmox : br00 , 8 cores, 16 GB RAM
proxmox node host : br00
VM1 ubuntu on proxmox : br00
VM2 ubuntu on proxmox : br00
Dev1 ubuntu : br00 <-> 10Gbps  physical switch

The involved net interface of OPNSense VM attached to the proxmox virtual bridge br00 is defined of type VirtIO (like all interfaces of the other VMs) and shows up as 10Gbase-T full duplex; thus, that seems to be ok.

So my question is why the throughput/network speed of OPNSense VM is limited to about 0.9 - 1.2Gbps and this as well if it is used in the iperf3 test as an iperf3 client. Operating as iperf3 client towards the attached LAN under "normal" circumstances, the firewall performance should not be the source of speed limitation (?).

Many thanks in advance for advice.




Title: Re: opnsense (25.7) LAN speed limitations to devices on same proxmox network bridge
Post by: meyergru on August 27, 2025, 12:26:05 PM
You need multithreading support and RSS, see https://forum.opnsense.org/index.php?topic=44159.0 and https://forum.opnsense.org/index.php?topic=42985.0, #10.

That being said, you should not test with OpnSense as being the source or target of an iperf test, because it puts stress on the CPU. You cannot determine routing performance like that. If at all, use "-P n" in order to use more than one TCP stream.
Title: Re: opnsense (25.7) LAN speed limitations to devices on same proxmox network bridge
Post by: relume on August 29, 2025, 11:57:09 AM
Hello

Many thanks for your advice. I read your HOWTO about virtualization (proxmox) before.

Meanwhile, I did some other tests and configuration changes:


So some general speed limitation is given by the old hardware host with proxmox installed on (OPNsense performs perfectly on a VMware ESXi 6.5 with Xeon Silver 4210 CPU). But OPNsense appears to be special on proxmox in behavior regarding the network speed, even when considering FreeBSD VM installations behave as other Linux VMs on the same node and on the same virtual bridge with 10Gbps. However, my experience seems to correlate with the issues reported on this topic (https://forum.opnsense.org/index.php?topic=45870 (https://forum.opnsense.org/index.php?topic=45870)).

Title: Re: opnsense (25.7) LAN speed limitations to devices on same proxmox network bridge
Post by: meyergru on August 29, 2025, 03:32:31 PM
Generally speaking, best practice says to never use any HW offloading on OpnSense. Though theoretically, you could gain speed if real hardware is involved, it can have idiosyncrasies. I tested on bare-metal when I first got into OpnSense, but after I while, I noticed that even on well-supported hardware, under certain circumstances, it can fail.

With a virtualized environment, using "hardware" acceleration obviously cannot give better results, but sometimes fails in a big way (e.g. the missing checksum implementation for virtio under FreeBSD).

My point being: Do not even try to use HW offloading of anything under OpnSense, even less so under virtualisation.