External Disk USB 3.0 very slow speed

    • OMV 2.x
    • External Disk USB 3.0 very slow speed

      Hello everbody,

      i'm using OMV since 1 year and i am pretty happy - great OS. Nevertheless, the inevitable happened and i can not help myself so i need your help ;)

      As backup drive for my RAID i'm using a 3 TB external disk with USB 3.0 formatted with ext4. This worked fine until now...i don't know why it changed.
      Within the PC i have a USB 3.0 PCIe Card with 2 USB (external) Ports (Transcend TS-PDU3).
      Unfortunatly, copying big data (e.g. several gigabytes ~20, tested with rsync -aP) is very very slow. In the beginning it starts with 120 Mb/s but after a few seconds it decreases down to 8-12 Mb/s. In case of small files it is much less.

      I proofed the disk by plug in to my laptop. There it's copying with a usual speed of 80-100 Mb/s. Also SMART values looking good. Hence, i would say the disk is fully functional but my NAS has any problem with USB 3.0 ??

      What else can i do?

      Here you can see some outputs. I have no idea what i have to look for... :/

      dmesg | grep -i usb:

      Source Code

      1. root@MyNAS:~# dmesg | grep -i usb
      2. [ 0.663259] ACPI: bus type USB registered
      3. [ 0.663313] usbcore: registered new interface driver usbfs
      4. [ 0.663328] usbcore: registered new interface driver hub
      5. [ 0.679039] usbcore: registered new device driver usb
      6. [ 0.680077] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      7. [ 0.680679] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      8. [ 0.681013] ehci-pci 0000:00:0b.1: new USB bus registered, assigned bus number 1
      9. [ 0.692057] ehci-pci 0000:00:0b.1: USB 2.0 started, EHCI 1.00
      10. [ 0.692170] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
      11. [ 0.692173] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      12. [ 0.692175] usb usb1: Product: EHCI Host Controller
      13. [ 0.692178] usb usb1: Manufacturer: Linux 3.16.0-0.bpo.4-amd64 ehci_hcd
      14. [ 0.692180] usb usb1: SerialNumber: 0000:00:0b.1
      15. [ 0.692410] hub 1-0:1.0: USB hub found
      16. [ 0.693240] ohci-pci 0000:00:0b.0: new USB bus registered, assigned bus number 2
      17. [ 0.731583] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
      18. [ 0.731919] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
      19. [ 0.731922] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      20. [ 0.731924] usb usb3: Product: xHCI Host Controller
      21. [ 0.731926] usb usb3: Manufacturer: Linux 3.16.0-0.bpo.4-amd64 xhci_hcd
      22. [ 0.731928] usb usb3: SerialNumber: 0000:01:00.0
      23. [ 0.732148] hub 3-0:1.0: USB hub found
      24. [ 0.732356] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 4
      25. [ 0.735562] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
      26. [ 0.735594] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
      27. [ 0.735596] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      28. [ 0.735599] usb usb4: Product: xHCI Host Controller
      29. [ 0.735601] usb usb4: Manufacturer: Linux 3.16.0-0.bpo.4-amd64 xhci_hcd
      30. [ 0.735603] usb usb4: SerialNumber: 0000:01:00.0
      31. [ 0.735787] hub 4-0:1.0: USB hub found
      32. [ 0.750157] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
      33. [ 0.750162] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      34. [ 0.750164] usb usb2: Product: OHCI PCI host controller
      35. [ 0.750166] usb usb2: Manufacturer: Linux 3.16.0-0.bpo.4-amd64 ohci_hcd
      36. [ 0.750168] usb usb2: SerialNumber: 0000:00:0b.0
      37. [ 0.750340] hub 2-0:1.0: USB hub found
      38. [ 53.580011] usb 1-3: new high-speed USB device number 2 using ehci-pci
      39. [ 53.713792] usb 1-3: New USB device found, idVendor=174c, idProduct=55aa
      40. [ 53.713796] usb 1-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
      41. [ 53.713799] usb 1-3: Product: USB 3.0 Device
      42. [ 53.713800] usb 1-3: Manufacturer: Intenso
      43. [ 53.713802] usb 1-3: SerialNumber: 30500000000000002242
      44. [ 53.730602] usb-storage 1-3:1.0: USB Mass Storage device detected
      45. [ 53.730767] usb-storage 1-3:1.0: Quirks match for vid 174c pid 55aa: 400000
      46. [ 53.730792] scsi10 : usb-storage 1-3:1.0
      47. [ 53.730880] usbcore: registered new interface driver usb-storage
      48. [ 54.730399] scsi 10:0:0:0: Direct-Access Intenso USB 3.0 Device 0 PQ: 0 ANSI: 6
      Display All


      lspci -nnk | grep "USB controller" -A2:

      Source Code

      1. root@MyNAS:~# lspci -nnk | grep "USB controller" -A2
      2. 00:0b.0 USB controller [0c03]: NVIDIA Corporation MCP55 USB Controller [10de:036c] (rev a1)
      3. Subsystem: ASUSTeK Computer Inc. Device [1043:cb84]
      4. Kernel driver in use: ohci-pci
      5. 00:0b.1 USB controller [0c03]: NVIDIA Corporation MCP55 USB Controller [10de:036d] (rev a2)
      6. Subsystem: ASUSTeK Computer Inc. Device [1043:cb84]
      7. Kernel driver in use: ehci-pci
      8. --
      9. 01:00.0 USB controller [0c03]: NEC Corporation uPD720200 USB 3.0 Host Controller [1033:0194] (rev 04)
      10. Kernel driver in use: xhci_hcd
      11. 02:0b.0 FireWire (IEEE 1394) [0c00]: VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller [1106:3044] (rev c0)
      Display All


      lsusb

      Source Code

      1. root@MyNAS:~# lsusb
      2. Bus 001 Device 002: ID 174c:55aa ASMedia Technology Inc.
      3. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      4. Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
      5. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      6. Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub


      uname -a

      Source Code

      1. Linux MyNAS 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt25-2~bpo70+1 (2016-04-12) x86_64 GNU/Linux



      Thanks and cheers,
      ikaruz

      The post was edited 2 times, last by ikaruz ().

    • Yes, it does. But it's not plugged in USB 2, it's a USB 3.0 Port.

      I played a bit and figured out that my other USB 3.0 disks (Transcend and Samsung) worked fine with a speed of 70-80 Mb/s. Additionally, i used my Linux on my Laptop and formatted the disks to ext4 and tried again to copy a big file... AGAIN a speed of 35 Mb/s, the same like with Windows.

      Why do i just reach 35 Mb/s? Is it possible that the controller of the USB 3.0 enclosure is broken? And why do i just reach 10 Mb/s at my NAS?
    • The driver that Linux uses may not be optimized for the usb controller and forces it to connect at usb2 even though it is usb3. Hard to say since I don't use many usb hard drives.
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!