Forcing full speed 2.5gbe, usb-rj45 RTL8156

Status
Not open for further replies.

m8kbv

Cadet
Joined
Jun 7, 2022
Messages
5
Hi, I am dealing with a usb-rj45 2.5gbe cable from cable matterts with RTL8156 chipset, the network card is visible in truenas but has Media Subtype: autoselect set so the read speed is at 10MB/s.
On the built-in 1Gb/s network card, the speed is 100MB/s and it is visible correctly.
How to force full speed on usb-rj45 network card?
Below is a screen shot:

Zrzut-ekranu-2022-06-8-o-08-00-31.png


Greetings
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
You do not. 1 Gb/s and up must be autonegotiated. You probably have a bad cable or misbehaving device.

Besides that, the Realtek experience varies between sucky and miserable. The Realtek USB NIC experience spends far more time in the miserable category. Do not expect the NIC to be remotely reliably, much less reliably do 1 Gb/s, never mind 2.5 Gb/s.
 

m8kbv

Cadet
Joined
Jun 7, 2022
Messages
5
what is the solution to the problem? Another compatible usb card? If so, which one?
The device connected to windows / macOS works very well, the cables are also ok. on the built-in erhernet flies speed 100MB / s.
There are open topics where they plug in 2.5gb/s cards, but I do not know whether on usb...
 
Joined
Jun 2, 2019
Messages
591
@m8kbv

Welcome!

USB is a polling interface, thus even with a working connection you will likely never achieve full bandwidth. A PCI interface on the other hand will interrupt the host and achieve full bandwidth. USB is not suitable for a multi-gig network interface.
 

m8kbv

Cadet
Joined
Jun 7, 2022
Messages
5
But speeds will be similar/better than after 1gb/s. On macOS the speed of this card is very satisfactory.
I wanted to make a cheap server on my Mini PC (dell wyse 5070 pentium j5005+8GB RAM+ 1TB SSD as storage), at the same time I wanted to plug into a recently purchased 2.5gbe switch.
Is there really no way to force the speed if the usb interface works? Or is there no other working 2.5gbe usb interface?

Translated with www.DeepL.com/Translator (free version)
 

m8kbv

Cadet
Joined
Jun 7, 2022
Messages
5
I don't see post editing so I'm writing a post under a post (sorry).
I have Truenas Daughter uploaded, but Truenas scale is I see on Debian. Has the driver situation not improved in truenas scale? Debian seems to have more driver support than a distribution based on freebsd?
Please correct me if I am wrong. Thank you for your answers.
 
Joined
Jun 2, 2019
Messages
591
Is there really no way to force the speed if the usb interface works? Or is there no other working 2.5gbe usb interface?

Speed is auto-negated between the client and the switch. If there is a cable problem and/or one/both ends cannot successfully negotiate 2.5G, it will negotiate down to the next lower speed.

If the client and switch cannot successfully auto negotiate 2.5G, it is an indication there is a problem with one of the following

1. Client driver does not support it.
2. Cable wiring or length problem.
3. Switch or client HW does not support it.

If you have the Dell 5070 "extended" chassis, install a PCI NIC. Otherwise, you are better off using the built in network interface.

 
Last edited:

m8kbv

Cadet
Joined
Jun 7, 2022
Messages
5
Speed is auto-negated between the client and the switch. If there is a cable problem and/or one/both ends cannot successfully negotiate 2.5G, it will negotiate down to the next lower speed.

If the client and switch cannot successfully auto negotiate 2.5G, it is an indication there is a problem with one of the following

1. Client driver does not support it.
2. Cable wiring or length problem.
3. Switch or client HW does not support it.

If you have the Dell 5070 "extended" chassis, install a PCI NIC. Otherwise, you are better off using the built in network interface.

Thank you, I will check after work and let you know.
Is there a different driver base in Truenas scale due to it being built on Debian?
 

aix

Dabbler
Joined
Oct 24, 2022
Messages
13
I'm wondering if you had any success with this. I am experimenting with the same USB NIC and am experiencing the same issue.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Time heals all wounds, but for those caused by Realtek.
 

pureexe

Cadet
Joined
Nov 27, 2022
Messages
7
Same NIC, Same problem. In windows, it is able to force it to run at 2.5G I wonder if TrueNAS or FreeBSD will have a similar approach.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Time heals all wounds, but for those caused by Realtek.
Or... Time wounds all heels (especially those using Realtek) :) (credit: Groucho Marks)
 

dafonehacker

Cadet
Joined
Mar 21, 2023
Messages
4
Was anyone able to get this adapter running at full speed? Running into the same issue.

I know, USB is not ideal->however, I do not have PCIe slots available and was hoping to be able to add 2.5g to my truenas core like this
 

dafonehacker

Cadet
Joined
Mar 21, 2023
Messages
4
In case anyone is interested, I was able to get it working. I described how on post #10 of this thread:
 

crazyfrog23

Cadet
Joined
Oct 24, 2023
Messages
4
Sorry for reviving an old thread but I hit this roadblock after building a truenas system this week and hit this roadblock. The instructions posted here already are usable for someone but not me without spending weeks learning things I dont need to know.

Instead I just installed truenas scale 23.10-RC.1 it recognised my USB 3.0 ports I saw my windows transfer speed hit 266MBps and mostly stayed at 255MBps which was a massive stepup from 1Gb.


My build
Pentium G5400
Asus z370-I with only 4 sata and 1 usable m.2 slot
USB 3.0 RTL8156b off aliexpress
Four 6tb toshiba md04aca600
two 8tb Dell MG06ACA800E unusable for now
Case : Silverstone DS380

Future plans are to build up the existing system and run the Four 6tb toshiba in a cheap cheap HP N36 with a intel i226 card and possibly a better storage controller.
 

Attachments

  • Dashboard.PNG
    Dashboard.PNG
    606.4 KB · Views: 257
  • Sixtb pool.PNG
    Sixtb pool.PNG
    28.3 KB · Views: 207

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Linux/Scale does not magically turn these pieces of crap into a good idea.
 

crazyfrog23

Cadet
Joined
Oct 24, 2023
Messages
4
Linux/Scale does not magically turn these pieces of crap into a good idea.
I’ve just posted a very simple solution to an issue other users have had. Why are you instead calling my build pieces of crap, if you’re trusted to moderate here you should be a bit respectable than that.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
Inadequate hardware with inadequate drivers remains inadequate even if the Linux folks make it work.
Do not expect stability in all conditions.
 
Joined
Oct 22, 2019
Messages
3,641
Even outside of the fact that this is a RealTek chipset, USB network adapters are notorious for overheating and dropping the connection during a large, continuous transfer. I would not feel comfortable using it to save important data to my NAS.
 

crazyfrog23

Cadet
Joined
Oct 24, 2023
Messages
4
Even outside of the fact that this is a RealTek chipset, USB network adapters are notorious for overheating and dropping the connection during a large, continuous transfer. I would not feel comfortable using it to save important data to my NAS.
I’ve had a few boards with Realtek gigabit ethernet over time and in the limited use for home and small business they get absolutely fine.
I completely agree for a data centre and mission critical go for better hardware, even the motherboards Nic is intel. I’m using this system in a really limited capacity for personal use where I will only occasionally turn it on. I care about a small chassis that I can store easily and completely change the hardware over time.

Btw I already replied here you might not typed your reply if the mod hadn’t been disrespectful and refused to approve my reply.
 
Status
Not open for further replies.
Top