bb-qq / aqc111

DSM driver for Aquantia AQC111U(5Gbps) based USB Ethernet adapters
429 stars 45 forks source link

Support for DS916+ #12

Open mkter opened 4 years ago

mkter commented 4 years ago

Description of the problem

There are several issues:

Please have a look into the remaining two issues: Crash upon MTU change and low SMB write rates

Performance/Stability table

For Issue 2 and 3 I tried several combinations of link speed, MTU, Throttling and remote station. The interfaces are described in more detail in the following sections.

NAS interface Remote interface Link Speed MTU Throttling Used USB Port Iperf Tx Iperf Rx SMB Tx SMB Rx
QNA Intel 1G 9000 Yes 4 946 947 950 950
Synology Aquantia 1G 1500 - - 946 947 940 940
QNA Aquantia 5G 9000 Yes 4 1560 2040 1490 Crash
QNA Aquantia 2.5G 9000 Yes 4 1570 2050 2270 Crash
QNA Aquantia 5G 1500 Yes 4 1560 Crash Crash Crash
QNA Aquantia 2.5G 1500 Yes 4 1570 1720 1310 Crash
QNA Aquantia 5G 1500 No 4 1560 Crash 1530 Crash
QNA Aquantia 2.5G 1500 No 4 1530 Crash 1540 Crash
QNA Aquantia 5G 1500 Yes 2 3400 1500 1300 650
QNA Aquantia 5G 1500 No 2 2890 1780 1300 650
QNA Aquantia 2.5G 1500 Yes 2 2350 1800 1300 550
QNA Aquantia 2.5G 1500 No 2 2360 1770 1300 550
QNA Aquantia 2.5G 9000 Yes 2 2450 2470 2500 1800
QNA Aquantia 5G 9000 Yes 2 3640 3510 3300 2100
QNA Aquantia 2.5G 1500 Yes 2 2360 2140 1300 550
QNA Aquantia 5G 1500 Yes 2 3400 1740 1300 700
QNA Aquantia 2.5G 9000 Yes 2 2470 2460 2200 1800
QNA Aquantia 5G 9000 Yes 2 3650 3520 3300 2100
QNA Aquantia 2.5G 1500 Yes 3+4 1530 Crash - -
QNA Aquantia 5G 1500 Yes 3+4 1540 Crash 1300 Crash
QNA Aquantia 2.5G 9000 Yes 3+4 1580 2050 1500 1600
QNA Aquantia 5G 9000 Yes 3+4 1560 2050 1450 1600

Notes:

Outcome:

Description of your products

NAS

NAS is a DS916+ with 3 WD140PURZ and 1 WD80EFZX in RAID5.

Network Adapter

QNAP QNA-UC5G1T USB to 5GbE Adapter - QNAP System Inc.

Description of your environment

NAS and remote station were connected directly. No Hubs or Switches.

A 10m STP Cat.5e and a 10, SFTP Cat.6 cable were used for all test.

Output of dmesg command

There is no output after the cable was connected after 42000. dmesg.txt This is an exemplary output of one of the tests.

Output of lsusb command

Output when Adapter was attached at the rear port.

|__usb1          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (xhci_hcd 0000:00:14.0) hub
  |__1-5         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 650064DA20E41658)
|__usb2          1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (xhci_hcd 0000:00:14.0) hub
|__usb3          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (Linux 3.10.105 etxhci_hcd-170202 Etron xHCI Host Controller 0000:04:00.0) hub
|__usb4          1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (Linux 3.10.105 etxhci_hcd-170202 Etron xHCI Host Controller 0000:04:00.0) hub
  |__4-2         1c04:0015:0101 00  3.20 5000MBit/s 896mA 1IF  (QNAP QNAP QNA-UC5G1T USB to 5GbE Adapter 02I08329)

Output when Adapter was attached at the front port.

|__usb1          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (xhci_hcd 0000:00:14.0) hub
  |__1-5         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 650064DA20E41658)
|__usb2          1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (xhci_hcd 0000:00:14.0) hub
  |__2-2         1c04:0015:0101 00  3.20 5000MBit/s 896mA 1IF  (QNAP QNAP QNA-UC5G1T USB to 5GbE Adapter 02I08329)
|__usb3          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (Linux 3.10.105 etxhci_hcd-170202 Etron xHCI Host Controller 0000:04:00.0) hub
|__usb4          1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (Linux 3.10.105 etxhci_hcd-170202 Etron xHCI Host Controller 0000:04:00.0) hub

Output of ifconfig -a command

eth0      Link encap:Ethernet  HWaddr 00:11:32:5D:03:B9
          inet addr:192.168.60.10  Bcast:192.168.60.255  Mask:255.255.255.0
          inet6 addr: fe80::211:32ff:fe5d:3b9/64 Scope:Link
          inet6 addr: 2003:cd:770d:a300:211:32ff:fe5d:3b9/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21019885 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13627187 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:27761844139 (25.8 GiB)  TX bytes:5625192053 (5.2 GiB)

eth1      Link encap:Ethernet  HWaddr 00:11:32:5D:03:BA
          inet addr:169.254.7.239  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth2      Link encap:Ethernet  HWaddr 24:5E:BE:4D:99:D9
          inet addr:192.168.70.100  Bcast:192.168.70.255  Mask:255.255.255.0
          inet6 addr: fe80::265e:beff:fe4d:99d9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3009123 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3032428929 (2.8 GiB)  TX bytes:14303703448 (13.3 GiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:230267 errors:0 dropped:0 overruns:0 frame:0
          TX packets:230267 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:70866766 (67.5 MiB)  TX bytes:70866766 (67.5 MiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Output of ethtool

The missing link mode adverstisement for 2.5G and 5G seems odd to me.

Settings for eth2:
        Supported ports: [ TP MII ]
        Supported link modes:   100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Speed: 5000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: yes
Balooforever commented 4 years ago

Thank a lot for your idea to use the front port ! I have the same problem with the write speed (from Windows 550mb, from Linux 1,7Gb ... why ?) but i can read to 3Gb from NAS :) With Jumbo Frame, 3,5Gb and 2Gb write 👍