Please report all spam threads, posts and suspicious members. We receive spam notifications and will take immediate action!
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: USB 3.0 External drive not transfering data at superspeed.




  1. #11
    TonyLudwick is offline Junior Member
    Join Date
    Jan 2013
    Location
    Council Bluffs, Iowa
    Posts
    10

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    We tried the built in USB 3.0 ports already and got the same results.

    root@AntecNas1:/# lsusb -v -s 6:

    Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 3.00
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 3
    bMaxPacketSize0 9
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0003 3.0 root hub
    bcdDevice 3.02
    iManufacturer 3 Linux 3.2.0-35-generic xhci_hcd
    iProduct 2 xHCI Host Controller
    iSerial 1 0000:07:00.0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 31
    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 Unused
    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 10 * 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 5Gbps power Rx.Detect
    Port 2: 0000.02a0 5Gbps power Rx.Detect
    Port 3: 0000.02a0 5Gbps power Rx.Detect
    Port 4: 0000.0203 5Gbps power U0 enable connect
    Binary Object Store Descriptor:
    bLength 5
    bDescriptorType 15
    wTotalLength 15
    bNumDeviceCaps 1
    SuperSpeed USB Device Capability:
    bLength 10
    bDescriptorType 16
    bDevCapabilityType 3
    bmAttributes 0x00
    Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported 0x0008
    Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport 3
    Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat 0 micro seconds
    bU2DevExitLat 0 micro seconds
    Device Status: 0x0001
    Self Powered

    Bus 006 Device 002: ID 152d:0551 JMicron Technology Corp. / JMicron USA Technology Corp.
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 3.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 9
    idVendor 0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
    idProduct 0x0551
    bcdDevice 1.00
    iManufacturer 1 JMicron
    iProduct 2 USB to ATA/ATAPI Bridge
    iSerial 5 1F0FFFFFFFFF
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 44
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
    Self Powered
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 8 Mass Storage
    bInterfaceSubClass 6 SCSI
    bInterfaceProtocol 80 Bulk-Only
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0400 1x 1024 bytes
    bInterval 0
    bMaxBurst 15
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x02 EP 2 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0400 1x 1024 bytes
    bInterval 0
    bMaxBurst 15
    Binary Object Store Descriptor:
    bLength 5
    bDescriptorType 15
    wTotalLength 42
    bNumDeviceCaps 3
    USB 2.0 Extension Device Capability:
    bLength 7
    bDescriptorType 16
    bDevCapabilityType 2
    bmAttributes 0x00000002
    Link Power Management (LPM) Supported
    SuperSpeed USB Device Capability:
    bLength 10
    bDescriptorType 16
    bDevCapabilityType 3
    bmAttributes 0x00
    Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported 0x000e
    Device can operate at Full Speed (12Mbps)
    Device can operate at High Speed (480Mbps)
    Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport 1
    Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat 10 micro seconds
    bU2DevExitLat 32 micro seconds
    Container ID Device Capability:
    bLength 20
    bDescriptorType 16
    bDevCapabilityType 4
    bReserved 0
    ContainerID {00010203-0405-0607-0800-000000000000}
    Device Status: 0x0001
    Self Powered

  2. #12
    synack's Avatar
    synack is offline Member
    Join Date
    Oct 2012
    Location
    Ontario, Canada
    Posts
    265

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    Yep confirmed, the hub and the device and drivers all support superspeed 5Gb transfers, and the jmicron is connected with USB3

    next layer is the SCSI transport.

    is it possible for you to disconnect the external storage for a minute, and then plug it back in?
    If so can you run this command first and leave it running during the disconnect, reconnect:
    tail -n 0 -f /var/log/messages
    and post the output.

    (ctrl-c exits the command above)

    this will give us some more info on the USB connection as well as the initial scsi connection.

  3. #13
    TonyLudwick is offline Junior Member
    Join Date
    Jan 2013
    Location
    Council Bluffs, Iowa
    Posts
    10

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    I get an error when trying to do this. See below:

    root@AntecNas1:/# tail -n 0 -f /var/log/messages
    tail: cannot open `/var/log/messages' for reading: No such file or directory


    Can I point this somewhere else instead?

  4. #14
    synack's Avatar
    synack is offline Member
    Join Date
    Oct 2012
    Location
    Ontario, Canada
    Posts
    265

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    UGH ubuntu... Every linux in the known world has /var/log/messages... ubuntu decided to make it /var/log/syslog in v11 (natty)

    sigh... linux is hard enough to learn, for people to make dumb decisions like that to make it harder. sheesh

    so use tail -n 0 -f /var/log/syslog instead

    Syn

  5. #15
    TonyLudwick is offline Junior Member
    Join Date
    Jan 2013
    Location
    Council Bluffs, Iowa
    Posts
    10

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    See output below:

    root@AntecNas1:/# tail -n 0 -f /var/log/syslog
    Jan 18 16:24:46 AntecNas1 kernel: [20578.512300] usb 6-4: USB disconnect, device number 2
    Jan 18 16:25:22 AntecNas1 kernel: [20614.452141] hub 5-0:1.0: unable to enumerate USB device on port 4
    Jan 18 16:25:22 AntecNas1 kernel: [20614.672983] usb 6-4: new SuperSpeed USB device number 3 using xhci_hcd
    Jan 18 16:25:22 AntecNas1 kernel: [20614.694755] scsi11 : usb-storage 6-4:1.0
    Jan 18 16:25:23 AntecNas1 kernel: [20615.694196] scsi 11:0:0:0: Direct-Access ST3000DM 001-9YN166 PQ: 0 ANSI: 5
    Jan 18 16:25:23 AntecNas1 kernel: [20615.696562] sd 11:0:0:0: Attached scsi generic sg9 type 0
    Jan 18 16:25:23 AntecNas1 kernel: [20615.697703] sd 11:0:0:0: [sdi] Very big device. Trying to use READ CAPACITY(16).
    Jan 18 16:25:23 AntecNas1 kernel: [20615.698305] sd 11:0:0:0: [sdi] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
    Jan 18 16:25:23 AntecNas1 kernel: [20615.700102] sd 11:0:0:0: [sdi] Write Protect is off
    Jan 18 16:25:23 AntecNas1 kernel: [20615.700113] sd 11:0:0:0: [sdi] Mode Sense: 28 00 00 00
    Jan 18 16:25:23 AntecNas1 kernel: [20615.701992] sd 11:0:0:0: [sdi] No Caching mode page present
    Jan 18 16:25:23 AntecNas1 kernel: [20615.702028] sd 11:0:0:0: [sdi] Assuming drive cache: write through
    Jan 18 16:25:23 AntecNas1 kernel: [20615.702908] sd 11:0:0:0: [sdi] Very big device. Trying to use READ CAPACITY(16).
    Jan 18 16:25:23 AntecNas1 kernel: [20615.706475] sd 11:0:0:0: [sdi] No Caching mode page present
    Jan 18 16:25:23 AntecNas1 kernel: [20615.706508] sd 11:0:0:0: [sdi] Assuming drive cache: write through
    Jan 18 16:25:23 AntecNas1 kernel: [20615.750996] sdi: sdi1 sdi2
    Jan 18 16:25:23 AntecNas1 kernel: [20615.752130] sd 11:0:0:0: [sdi] Very big device. Trying to use READ CAPACITY(16).
    Jan 18 16:25:23 AntecNas1 kernel: [20615.755665] sd 11:0:0:0: [sdi] No Caching mode page present
    Jan 18 16:25:23 AntecNas1 kernel: [20615.755702] sd 11:0:0:0: [sdi] Assuming drive cache: write through
    Jan 18 16:25:23 AntecNas1 kernel: [20615.755724] sd 11:0:0:0: [sdi] Attached SCSI disk

  6. #16
    synack's Avatar
    synack is offline Member
    Join Date
    Oct 2012
    Location
    Ontario, Canada
    Posts
    265

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    OK lets start with doing a little perf testing

    run the command: hdparm -tT /dev/sdi

    also run hdparm /dev/sdi
    to see what parameters are set

  7. #17
    TonyLudwick is offline Junior Member
    Join Date
    Jan 2013
    Location
    Council Bluffs, Iowa
    Posts
    10

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    root@AntecNas1:/# hdparm -tT /dev/sdi

    /dev/sdi:
    Timing cached reads: 3436 MB in 2.00 seconds = 1717.49 MB/sec
    Timing buffered disk reads: 376 MB in 3.01 seconds = 124.75 MB/sec



    root@AntecNas1:/# hdparm /dev/sdi

    /dev/sdi:
    multcount = 1 (on)
    readonly = 0 (off)
    readahead = 256 (on)
    geometry = 364801/255/63, sectors = 5860533168, start = 0

  8. #18
    synack's Avatar
    synack is offline Member
    Join Date
    Oct 2012
    Location
    Ontario, Canada
    Posts
    265

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    well it seems the usb/scsi subsystem is more than capable of transferring the data at the speed you expect. ~125MB/sec is definitely faster than what you were expecting. So either the drive itself is really slow to write which you say works else where, so probably not that. Or the data you are reading from is really slow. where is the 3.7 GB you are reading from?

    You can also do a write speed test.

    I'm not sure where you have that disk mounted but you can create a file to write like this, that does not depend on a source drive

    time dd if=/dev/zero of=/whatever/path/and/filename bs=1M count=3700

    should output something like:
    3700+0 records in
    3700+0 records out
    3879731200 bytes (3.9 GB) copied, 15.405 s, 252 MB/s

    real 0m15.406s
    user 0m0.002s
    sys 0m1.545s

  9. #19
    TonyLudwick is offline Junior Member
    Join Date
    Jan 2013
    Location
    Council Bluffs, Iowa
    Posts
    10

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    This particular macine has a 10 TB raid5 software raid array where the file resides. I have also made a copy of the file on the OS drive and tried copying it from there to the external and got same result. The file copied to the external in about 20 seconds using Windows 2008 Server on this same equipment. When I performed the test on the Dell T3400 I used the same USB 3.0 Card removed fro the other box, same external drive, same version of ubuntu and the file copied in 35-40 seconds. When I copy these files, I typically do them like "time cp B2D000208.bkf /media/UsbDrive" from within the source directory. Given the above information, are there any settings in the BIOS setup that control how wide a gate gets opened that is on the road between the internal hard drive and the external hard drive? A gate that if set to "Auto", windows would be able to command it to open all the way, but linux might not be able to control at all, requiring us to choose a manual setting? I am not a hardware guy, so forgive my simplistic description. :) But I think you understand what I am asking.



    Results from the command you shared:

    root@AntecNas1:/# time dd if=/dev/zero of=/media/UsbDrive/file2.bkf bs=1M count=3700
    3700+0 records in
    3700+0 records out
    3879731200 bytes (3.9 GB) copied, 209.848 s, 18.5 MB/s

    real 3m29.896s
    user 0m0.008s
    sys 0m59.372s

  10. #20
    synack's Avatar
    synack is offline Member
    Join Date
    Oct 2012
    Location
    Ontario, Canada
    Posts
    265

    Default Re: USB 3.0 External drive not transfering data at superspeed.

    No I dont think there is anything that should be limiting or setting a gate size as it were.

    We proved earlier that the "gate" is capable and willing to push through about 125 MB/sec.
    I'm now thinking it may have something to do with the partitioning of the drive. or something like that.
    It doesn't make sense that we can access the "drive" at 125MB/sec and the partitition at only 18.5. write's will be slower than reads for sure.. but not that slow.

    try a read of a file on that drive and see what we get
    like:
    time dd if=/media/UsbDrive/file3.bkf of=/dev/null bs=1M

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •