wisdpi / wp-ut5_linux

2 stars 0 forks source link

Getting only ~3.5G #1

Closed sasha-id closed 3 days ago

sasha-id commented 4 days ago

Test setup:

Screenshot 2024-10-24 at 12 17 20
wisdpi commented 3 days ago

The log stabilizes at a speed of 3.7 Gbps. Please check if your USB is operating in 5 Gbps mode; it needs to work in 10 Gbps mode (USB 3.2) to reach 4.7 Gbps.

sasha-id commented 3 days ago

Looks like both devices on USB 3.2 in 10G mode. Also tried different ports, same result

# lsusb -tv

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 10000M
        ID 0bda:8157 Realtek Semiconductor Corp.
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 10: Dev 2, If 0, Class=Wireless, Driver=btusb, 12M
        ID 8087:0026 Intel Corp. AX201 Bluetooth
    |__ Port 10: Dev 2, If 1, Class=Wireless, Driver=btusb, 12M
        ID 8087:0026 Intel Corp. AX201 Bluetooth
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 20000M/x2
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
        ID 0bda:9201 Realtek Semiconductor Corp.
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
 lsusb -tv
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 3: Dev 4, If 0, Class=Vendor Specific Class, Driver=r8152, 10000M
        ID 0bda:8157 Realtek Semiconductor Corp.
    |__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/2p, 5000M
        ID 0bda:0412 Realtek Semiconductor Corp.
        |__ Port 2: Dev 6, If 0, Class=Vendor Specific Class, Driver=, 5000M
            ID 17e9:4374 DisplayLink
        |__ Port 2: Dev 6, If 1, Class=Application Specific Interface, Driver=, 5000M
            ID 17e9:4374 DisplayLink
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        ID 1c4f:0084 SiGma Micro
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        ID 1c4f:0084 SiGma Micro
    |__ Port 4: Dev 4, If 0, Class=Hub, Driver=hub/2p, 480M
        ID 0bda:5412 Realtek Semiconductor Corp.
    |__ Port 10: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
        ID 8087:0026 Intel Corp. AX201 Bluetooth
    |__ Port 10: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
        ID 8087:0026 Intel Corp. AX201 Bluetooth
# lsusb -vvd 1d6b:0003

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0003 3.0 root hub
  bcdDevice            6.08
  iManufacturer           3 Linux 6.8.12-2-pve xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 0000:00:14.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001f
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
        bMaxBurst               0
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             4
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay             0 nano seconds
  DeviceRemovable    0x10
 Hub Port Status:
   Port 1: 0000.02a0 lowspeed L1
   Port 2: 0000.02a0 lowspeed L1
   Port 3: 0000.0203 lowspeed enable connect
   Port 4: 0000.0243 lowspeed enable connect
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x005b
  bNumDeviceCaps          2
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x0008
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat         160 micro seconds
  SuperSpeedPlus USB Device Capability:
    bLength                76
    bDescriptorType        16
    bDevCapabilityType     10
    bmAttributes         0x000000ef
      Sublink Speed Attribute count 15
      Sublink Speed ID count 7
    wFunctionalitySupport   0x1106
    bmSublinkSpeedAttr[0]   0x00050034
      Speed Attribute ID: 4 5Gb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[1]   0x000500b4
      Speed Attribute ID: 4 5Gb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[2]   0x000a4035
      Speed Attribute ID: 5 10Gb/s Symmetric RX SuperSpeedPlus
    bmSublinkSpeedAttr[3]   0x000a40b5
      Speed Attribute ID: 5 10Gb/s Symmetric TX SuperSpeedPlus
    bmSublinkSpeedAttr[4]   0x00e00026
      Speed Attribute ID: 6 224Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[5]   0x00e000a6
      Speed Attribute ID: 6 224Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[6]   0x00c00027
      Speed Attribute ID: 7 192Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[7]   0x00c000a7
      Speed Attribute ID: 7 192Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[8]   0x00800028
      Speed Attribute ID: 8 128Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[9]   0x008000a8
      Speed Attribute ID: 8 128Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[10]   0x00b10029
      Speed Attribute ID: 9 177Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[11]   0x00b100a9
      Speed Attribute ID: 9 177Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[12]   0x0063002a
      Speed Attribute ID: 10 99Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[13]   0x006300aa
      Speed Attribute ID: 10 99Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[14]   0x00c6002b
      Speed Attribute ID: 11 198Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[15]   0x00c600ab
      Speed Attribute ID: 11 198Mb/s Symmetric TX SuperSpeed
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered
# lsusb -vvd 1d6b:0003

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0003 3.0 root hub
  bcdDevice            6.08
  iManufacturer           3 Linux 6.8.12-2-pve xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 0000:00:14.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001f
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
        bMaxBurst               0
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             4
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay             0 nano seconds
  DeviceRemovable    0x10
 Hub Port Status:
   Port 1: 0000.0203 lowspeed enable connect
   Port 2: 0000.02a0 lowspeed L1
   Port 3: 0000.02a0 lowspeed L1
   Port 4: 0000.02a0 lowspeed L1
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x005b
  bNumDeviceCaps          2
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x0008
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat         160 micro seconds
  SuperSpeedPlus USB Device Capability:
    bLength                76
    bDescriptorType        16
    bDevCapabilityType     10
    bmAttributes         0x000000ef
      Sublink Speed Attribute count 15
      Sublink Speed ID count 7
    wFunctionalitySupport   0x1106
    bmSublinkSpeedAttr[0]   0x00050034
      Speed Attribute ID: 4 5Gb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[1]   0x000500b4
      Speed Attribute ID: 4 5Gb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[2]   0x000a4035
      Speed Attribute ID: 5 10Gb/s Symmetric RX SuperSpeedPlus
    bmSublinkSpeedAttr[3]   0x000a40b5
      Speed Attribute ID: 5 10Gb/s Symmetric TX SuperSpeedPlus
    bmSublinkSpeedAttr[4]   0x00e00026
      Speed Attribute ID: 6 224Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[5]   0x00e000a6
      Speed Attribute ID: 6 224Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[6]   0x00c00027
      Speed Attribute ID: 7 192Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[7]   0x00c000a7
      Speed Attribute ID: 7 192Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[8]   0x00800028
      Speed Attribute ID: 8 128Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[9]   0x008000a8
      Speed Attribute ID: 8 128Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[10]   0x00b10029
      Speed Attribute ID: 9 177Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[11]   0x00b100a9
      Speed Attribute ID: 9 177Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[12]   0x0063002a
      Speed Attribute ID: 10 99Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[13]   0x006300aa
      Speed Attribute ID: 10 99Mb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[14]   0x00c6002b
      Speed Attribute ID: 11 198Mb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[15]   0x00c600ab
      Speed Attribute ID: 11 198Mb/s Symmetric TX SuperSpeed
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0003 3.0 root hub
  bcdDevice            6.08
  iManufacturer           3 Linux 6.8.12-2-pve xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 0000:00:0d.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001f
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
        bMaxBurst               0
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             2
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay             0 nano seconds
  DeviceRemovable    0x00
 Hub Port Status:
   Port 1: 0000.02a0 lowspeed L1
   Port 2: 0000.0203 lowspeed enable connect
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x003b
  bNumDeviceCaps          2
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x0008
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           0 micro seconds
    bU2DevExitLat         400 micro seconds
  SuperSpeedPlus USB Device Capability:
    bLength                44
    bDescriptorType        16
    bDevCapabilityType     10
    bmAttributes         0x00000067
      Sublink Speed Attribute count 7
      Sublink Speed ID count 3
    wFunctionalitySupport   0x1104
    bmSublinkSpeedAttr[0]   0x00050034
      Speed Attribute ID: 4 5Gb/s Symmetric RX SuperSpeed
    bmSublinkSpeedAttr[1]   0x000500b4
      Speed Attribute ID: 4 5Gb/s Symmetric TX SuperSpeed
    bmSublinkSpeedAttr[2]   0x000a4035
      Speed Attribute ID: 5 10Gb/s Symmetric RX SuperSpeedPlus
    bmSublinkSpeedAttr[3]   0x000a40b5
      Speed Attribute ID: 5 10Gb/s Symmetric TX SuperSpeedPlus
    bmSublinkSpeedAttr[4]   0x00054036
      Speed Attribute ID: 6 5Gb/s Symmetric RX SuperSpeedPlus
    bmSublinkSpeedAttr[5]   0x000540b6
      Speed Attribute ID: 6 5Gb/s Symmetric TX SuperSpeedPlus
    bmSublinkSpeedAttr[6]   0x000a4037
      Speed Attribute ID: 7 10Gb/s Symmetric RX SuperSpeedPlus
    bmSublinkSpeedAttr[7]   0x000a40b7
      Speed Attribute ID: 7 10Gb/s Symmetric TX SuperSpeedPlus
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered
wisdpi commented 3 days ago

If you connect the two WP-UT5 devices directly with an Ethernet cable without using the CSR310 switch, what speed can be achieved?

wisdpi commented 3 days ago

We tested the WP-UT5 on PVE 8.2.7 (kernel 6.8.12) and found that the maximum speed is around 4.1 Gbps, which is significantly slower than on the Windows platform. We will investigate the original drivers provided by Realtek to see if there is room for optimization.

The test machine I used is the MINISFORUM MS-01, which has both USB-A and USB-C ports with 10 Gbps capability. I measured only 3.5 Gbps on the 10 Gbps USB-A port, which matches your test results; at that time, the system indicated it was in 10G USB mode. When I switched the WP-UT5 to the 10 Gbps USB-C port, the speed increased to 4.1 Gbps. I think this can serve as a reference for you, and I believe there may be an issue with how PVE handles this.

图片

sasha-id commented 3 days ago

Good news!

tested from macbook m1 with same device -> linux (proxmox 6.8.12-2-pve) beelink eq13

❯ iperf3-darwin -c 10.0.30.12
Connecting to host 10.0.30.12, port 5201
[  5] local 10.0.30.33 port 57809 connected to 10.0.30.12 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd          RTT
[  5]   0.00-1.00   sec   548 MBytes  4.60 Gbits/sec   20   2.25 MBytes   4ms
[  5]   1.00-2.00   sec   556 MBytes  4.66 Gbits/sec    0   2.42 MBytes   5ms
[  5]   2.00-3.00   sec   553 MBytes  4.64 Gbits/sec    0   2.65 MBytes   5ms
[  5]   3.00-4.00   sec   557 MBytes  4.67 Gbits/sec    3   2.06 MBytes   3ms
[  5]   4.00-5.00   sec   551 MBytes  4.62 Gbits/sec    0   2.26 MBytes   4ms
[  5]   5.00-6.00   sec   551 MBytes  4.62 Gbits/sec    0   2.43 MBytes   5ms

But eq12 (linux proxmox) <-> eq13 (linux proxmox) getting 3.5G I guess something todo with USB ports on that server. Will investigate.

Thank you for awesome device and your help!

wisdpi commented 3 days ago

Good news!

tested from macbook m1 with same device -> linux (proxmox 6.8.12-2-pve) beelink eq13

❯ iperf3-darwin -c 10.0.30.12
Connecting to host 10.0.30.12, port 5201
[  5] local 10.0.30.33 port 57809 connected to 10.0.30.12 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd          RTT
[  5]   0.00-1.00   sec   548 MBytes  4.60 Gbits/sec   20   2.25 MBytes   4ms
[  5]   1.00-2.00   sec   556 MBytes  4.66 Gbits/sec    0   2.42 MBytes   5ms
[  5]   2.00-3.00   sec   553 MBytes  4.64 Gbits/sec    0   2.65 MBytes   5ms
[  5]   3.00-4.00   sec   557 MBytes  4.67 Gbits/sec    3   2.06 MBytes   3ms
[  5]   4.00-5.00   sec   551 MBytes  4.62 Gbits/sec    0   2.26 MBytes   4ms
[  5]   5.00-6.00   sec   551 MBytes  4.62 Gbits/sec    0   2.43 MBytes   5ms

But eq12 (linux proxmox) <-> eq13 (linux proxmox) getting 3.5G I guess something todo with USB ports on that server. Will investigate.

Thank you for awesome device and your help!

On the PVE platform, I strongly recommend using a PCIe version of the 5GbE network card.WP-NA5000

sasha-id commented 3 days ago

Unfortunately it won't fit into mini-pc