1
23.1 Legacy Series / Re: Abysmal performance in one direction over QSFP+ (Can't disable VLAN_HWTSO)
« on: July 13, 2023, 12:13:55 am »
An update:
Note: all iperf3s here were running the server _on_ opnsense.
I swapped the QSFP+ card out for an X520:
[ $ iperf3 -c opnsense.infra.footclan.ninja -P5 --bidir
. . .
[SUM][TX-C] 0.00-10.00 sec 1.08 GBytes 930 Mbits/sec 0 sender
[SUM][TX-C] 0.00-10.01 sec 1.07 GBytes 922 Mbits/sec receiver
. . .
[SUM][RX-C] 0.00-10.00 sec 259 MBytes 217 Mbits/sec 1889 sender
[SUM][RX-C] 0.00-10.01 sec 254 MBytes 213 Mbits/sec receiver
I was still seeing poor performance in one direction from the router so I enabled flow control, which didn't seem to make too much of a difference (i.e. I still see retransmits in one direction and horrible speed), however when running bidirectional tests that aren't simulltaneous it seems far better:
$ iperf3 -c opnsense.infra.footclan.ninja -P5
. . .
[SUM] 0.00-10.00 sec 1.09 GBytes 932 Mbits/sec 0 sender
[SUM] 0.00-10.00 sec 1.08 GBytes 928 Mbits/sec receiver
and
$ iperf3 -c opnsense.infra.footclan.ninja -P5 -R
. . .
[SUM] 0.00-10.00 sec 1.09 GBytes 933 Mbits/sec 1450 sender
[SUM] 0.00-10.00 sec 1.08 GBytes 928 Mbits/sec receiver
I _still_ see a lot of retransmits, however there are less now. Between my two SFP+-connected hosts I've managed to get ~5gbit with 5 parallel iperf instances in the "good" direction, and 500Mbit in the bad direction.
$ iperf3 -c opnsense.infra.footclan.ninja -P5 --bidir
. . .
[SUM][TX-C] 0.00-10.00 sec 603 MBytes 506 Mbits/sec 4 sender
[SUM][TX-C] 0.00-10.00 sec 593 MBytes 497 Mbits/sec receiver
. . .
[SUM][RX-C] 0.00-10.00 sec 5.70 GBytes 4.89 Gbits/sec 22 sender
[SUM][RX-C] 0.00-10.00 sec 5.69 GBytes 4.89 Gbits/sec receiver
However when running single direction tests I don't see nearly the same issue:
$ iperf3 -c opnsense.infra.footclan.ninja -P5
. . .
[SUM] 0.00-10.00 sec 9.35 GBytes 8.03 Gbits/sec 0 sender
[SUM] 0.00-10.00 sec 8.25 GBytes 7.09 Gbits/sec receiver
$ iperf3 -c opnsense.infra.footclan.ninja -P5 -R
. . .
[SUM] 0.00-10.01 sec 6.19 GBytes 5.31 Gbits/sec 25 sender
[SUM] 0.00-10.00 sec 6.18 GBytes 5.31 Gbits/sec receiver
Any thoughts or insight? Is my CRS354 unhappy or is there something in my opnsense configuration that's likely to be the cause?
Also mods, could you please move this to the 23.1 forum? I didn't reallise I was posting in 22.7
Note: all iperf3s here were running the server _on_ opnsense.
I swapped the QSFP+ card out for an X520:
[ $ iperf3 -c opnsense.infra.footclan.ninja -P5 --bidir
. . .
[SUM][TX-C] 0.00-10.00 sec 1.08 GBytes 930 Mbits/sec 0 sender
[SUM][TX-C] 0.00-10.01 sec 1.07 GBytes 922 Mbits/sec receiver
. . .
[SUM][RX-C] 0.00-10.00 sec 259 MBytes 217 Mbits/sec 1889 sender
[SUM][RX-C] 0.00-10.01 sec 254 MBytes 213 Mbits/sec receiver
I was still seeing poor performance in one direction from the router so I enabled flow control, which didn't seem to make too much of a difference (i.e. I still see retransmits in one direction and horrible speed), however when running bidirectional tests that aren't simulltaneous it seems far better:
$ iperf3 -c opnsense.infra.footclan.ninja -P5
. . .
[SUM] 0.00-10.00 sec 1.09 GBytes 932 Mbits/sec 0 sender
[SUM] 0.00-10.00 sec 1.08 GBytes 928 Mbits/sec receiver
and
$ iperf3 -c opnsense.infra.footclan.ninja -P5 -R
. . .
[SUM] 0.00-10.00 sec 1.09 GBytes 933 Mbits/sec 1450 sender
[SUM] 0.00-10.00 sec 1.08 GBytes 928 Mbits/sec receiver
I _still_ see a lot of retransmits, however there are less now. Between my two SFP+-connected hosts I've managed to get ~5gbit with 5 parallel iperf instances in the "good" direction, and 500Mbit in the bad direction.
$ iperf3 -c opnsense.infra.footclan.ninja -P5 --bidir
. . .
[SUM][TX-C] 0.00-10.00 sec 603 MBytes 506 Mbits/sec 4 sender
[SUM][TX-C] 0.00-10.00 sec 593 MBytes 497 Mbits/sec receiver
. . .
[SUM][RX-C] 0.00-10.00 sec 5.70 GBytes 4.89 Gbits/sec 22 sender
[SUM][RX-C] 0.00-10.00 sec 5.69 GBytes 4.89 Gbits/sec receiver
However when running single direction tests I don't see nearly the same issue:
$ iperf3 -c opnsense.infra.footclan.ninja -P5
. . .
[SUM] 0.00-10.00 sec 9.35 GBytes 8.03 Gbits/sec 0 sender
[SUM] 0.00-10.00 sec 8.25 GBytes 7.09 Gbits/sec receiver
$ iperf3 -c opnsense.infra.footclan.ninja -P5 -R
. . .
[SUM] 0.00-10.01 sec 6.19 GBytes 5.31 Gbits/sec 25 sender
[SUM] 0.00-10.00 sec 6.18 GBytes 5.31 Gbits/sec receiver
Any thoughts or insight? Is my CRS354 unhappy or is there something in my opnsense configuration that's likely to be the cause?
Also mods, could you please move this to the 23.1 forum? I didn't reallise I was posting in 22.7