Netgate SG-1000 microFirewall

Author Topic: Drastic speed reduction in 2.4.0 vs 2.3.4?  (Read 2067 times)

0 Members and 1 Guest are viewing this topic.

Offline hescominsoon

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Drastic speed reduction in 2.4.0 vs 2.3.4?
« Reply #15 on: September 19, 2017, 11:26:22 am »
I've noticed something pretty similar to this on my Qotom. 

I think there's something in 2.4 that's impacting performance of RealTek NIC's significantly.  Previously I didn't have a problem hitting a few hundred Mbits/s... given my uplink more than ok... With 2.4:

Code: [Select]
$ iperf -c gateway -w 256k
------------------------------------------------------------
Client connecting to gateway, TCP port 5001
TCP window size:  416 KByte (WARNING: requested  256 KByte)
------------------------------------------------------------
[  3] local 10.10.1.42 port 44840 connected with 10.10.1.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   107 MBytes  89.4 Mbits/sec

Can't seem to get these above 90 Mbits/sec.

It's indeed detected as gigabit:
Code: [Select]
re0@pci0:1:0:0: class=0x020000 card=0x012310ec chip=0x816810ec rev=0x06 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
re1@pci0:2:0:0: class=0x020000 card=0x012310ec chip=0x816810ec rev=0x06 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet

The interface is definitely "1000baseT <full-duplex>".

Very strange... I'm running out of things to look at.
Considering realtek is a software nic written in the winmodem model a slowdown isn't surprising.  If you can get some Intel I-series nics or broadcoms and try again.  If the slowdown is still present then I would worry about there being a general code issue.  Even then the new codebase might be cpu hungry until it gets evened out..but usually these kinds of networking slowdowns are due to "win-nics".

Offline peppersass

  • Jr. Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Drastic speed reduction in 2.4.0 vs 2.3.4?
« Reply #16 on: September 19, 2017, 01:52:02 pm »
Considering realtek is a software nic written in the winmodem model a slowdown isn't surprising.  If you can get some Intel I-series nics or broadcoms and try again.  If the slowdown is still present then I would worry about there being a general code issue.  Even then the new codebase might be cpu hungry until it gets evened out..but usually these kinds of networking slowdowns are due to "win-nics".

 Alas, my Realtek NICs are on the motherboard of a Zoltac ZBOX C1327, which isn't expandable.  :(

Offline peppersass

  • Jr. Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Drastic speed reduction in 2.4.0 vs 2.3.4?
« Reply #17 on: November 23, 2017, 03:07:43 am »
FWIW, I switched from the Zotac C1327 to a Protectli E3845 Vault with Intel NICs and there's no problem with speed under 2.4.2. I think it's likely an issue with the Realtek driver used in the latest version of FreeBSD, though it could also have something to do with a crypto or BIOS incompatibility.