OPNsense Forum

English Forums => Hardware and Performance => Topic started by: GTA_doum on July 16, 2022, 08:00:26 PM

Title: Poor performance with RTL8156 network adapter
Post by: GTA_doum on July 16, 2022, 08:00:26 PM
Hello,
I tried OPNsense on a mini computer and plugged a 2.5gbps USB adapter on a USB 3 port.  OPNsense recognized the adapter as being cdc, adapter shows it is connected at 2.5gbps, my isp supports up to 1.5gbps which for now tops at 1.2, tested with a laptop running Ubuntu with the same USB adapter.
OPNsense gets 100mbps up and down, nothing more!  Is there a way to make it run full speed?

Thanks.
Title: Re: Poor performance with RTL8156 network adapter
Post by: Patrick M. Hausen on July 16, 2022, 08:04:51 PM
With real network interfaces, yes. With USB, most probably no.
Title: Re: Poor performance with RTL8156 network adapter
Post by: GTA_doum on July 16, 2022, 08:10:05 PM
Why with USB no?
I tried running OPNsense virtually on the laptop wiht Ubuntu, connected the USB adapter to the virtual OPNsense with virtIO type and the performance were what I was expecting them to be...
Title: Re: Poor performance with RTL8156 network adapter
Post by: axsdenied on August 04, 2022, 03:29:59 AM
Seems like a driver difference given the different scenarios.  Likely the natively built driver is not optimal for the device.

Have you tried installing the realtek driver available in the packages repo?