TX2 USB 3.0 speed test

I tried USB 3.0 speed test with USB memory(HXS3 / 64GB).
(https://www.kingston.com/datasheets/hxs3_us.pdf)

When I connect usb memory through usb hub, it is faster than direct usb memory connection
I tested it several times, but the results did not change. The connection through the usb hub was always fast.

In general, I thought that if hubs were connected between usb and usb, the speed would drop.

What do you think about the unexpected result?

Connect usb memory directly to usb 3.0 on tx2 board.

root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda1

/dev/sda1:
 Timing buffered disk reads: 574 MB in  3.00 seconds = 191.16 MB/sec
root@tegra-ubuntu:/home/ubuntu# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/3p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/4p, 480M

Connect usb memory to usb3.0 of tx2 board through usb hub.

root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda1

/dev/sda1:
 Timing buffered disk reads: 622 MB in  3.00 seconds = 207.32 MB/sec
root@tegra-ubuntu:/home/ubuntu# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/3p, 5000M
    |__ Port 1: Dev 4, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/4p, 480M
    |__ Port 2: Dev 11, If 0, Class=Hub, Driver=hub/4p, 480M

Connect usb memory to usb3.0 of PC Main-board through usb hub.

root@ludishur-Ubuntu17:/media/ludishur/KINGSTON# hdparm -t /dev/sdf

/dev/sdf:
 Timing buffered disk reads: 1262 MB in  3.00 seconds = 420.44 MB/sec
root@ludishur-Ubuntu17:/media/ludishur/KINGSTON# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
    |__ Port 5: Dev 26, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 5: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 5: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M

Connect usb memory directly to usb 3.0 on PC Main-board.

root@ludishur-Ubuntu17:/media/ludishur/KINGSTON# hdparm -t /dev/sde1

/dev/sde1:
 Timing buffered disk reads: 1250 MB in  3.00 seconds = 416.47 MB/sec
root@ludishur-Ubuntu17:/media/ludishur/KINGSTON# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
    |__ Port 5: Dev 27, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 2: Dev 28, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 5: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 5: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M

Hi ludishur,

Our test result of usb hotplug is better than via usb hub.
Hotplug: 178.78 MB/sec
USB hub: 168.68 MB/sec

USB3.0 device: SanDisk USB3.0 32GB and Kingston USB3.0 32GB.
Hub: Transcend usb3.0 hub.

Could you try others usb3.0 again? or try to use IOZone benchmark tool.

Thank you for your kind reply, carolyuu.

I tested it with another usb memory.
In this case, there was no big difference in speed.

I would like to test it using the IOZone benchmark tool.
How do I use the IOZone benchmark tool?
I can not find a command to test for a specific device.
Could you tell me the command to test?

I hope to hear your answer to this inquiry.
And thanks again for your answers.

Hotplug : Transcend

root@tegra-ubuntu:/home/ubuntu# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/3p, 5000M
    |__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/4p, 480M
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 242 MB in  3.02 seconds =  80.11 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 240 MB in  3.00 seconds =  79.88 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 242 MB in  3.02 seconds =  80.02 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 240 MB in  3.00 seconds =  79.92 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 242 MB in  3.02 seconds =  80.21 MB/sec

USB Hub : Transcend

root@tegra-ubuntu:/home/ubuntu# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/3p, 5000M
    |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/4p, 480M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 240 MB in  3.02 seconds =  79.47 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 240 MB in  3.02 seconds =  79.58 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 240 MB in  3.02 seconds =  79.45 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 240 MB in  3.01 seconds =  79.80 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 240 MB in  3.00 seconds =  79.99 MB/sec

Hotplug : HXS3

root@tegra-ubuntu:/home/ubuntu# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/3p, 5000M
    |__ Port 1: Dev 9, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/4p, 480M
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 572 MB in  3.00 seconds = 190.57 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 574 MB in  3.01 seconds = 190.92 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 572 MB in  3.01 seconds = 190.28 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 574 MB in  3.01 seconds = 190.71 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 566 MB in  3.01 seconds = 188.28 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 572 MB in  3.00 seconds = 190.41 MB/sec

USB Hub : HXS3

root@tegra-ubuntu:/home/ubuntu# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/3p, 5000M
    |__ Port 1: Dev 6, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 8, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/4p, 480M
    |__ Port 2: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 604 MB in  3.01 seconds = 200.95 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 618 MB in  3.01 seconds = 205.35 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 622 MB in  3.00 seconds = 207.04 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 604 MB in  3.01 seconds = 200.74 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 624 MB in  3.01 seconds = 207.38 MB/sec
root@tegra-ubuntu:/home/ubuntu# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 616 MB in  3.01 seconds = 204.92 MB/sec

Hi ludishur,

Please following below steps to install iozone3:
Add below source in /etc/apt/sources.list:
deb Index of /ubuntu-ports trusty multiverse

sudo apt-get update
sudo apt-get install iozone3
sudo apt-get install bc
sudo apt-get install hdparm
sudo apt-get install smartmontools

You can refer iozone command from below link: