XU4 USB 3.0 speed issue

Moderators: odroid, mdrjr

XU4 USB 3.0 speed issue

Unread postby Gaurav277 » Mon Jul 27, 2015 2:13 pm

Hi
I recently bought XU4 . My initial tests show that data transfer over samba is just at par with USB 2.0. Let me explain you my setup . May be you can help what is going wrong....
I have TPLink Gigabit router with 2 USB 2.0 slots. It is running openwrt and connected with 1TB USB 3.0 WD 2.5" drive. Data transfer over lan from this drive is 55-60Mbps over samba and if I connect this drive to XU4 running Ubuntu I see almost same speed around 60Mbps. No benefit of USB 3.0.
please suggest what might be going wrong . I bought this in the hope to use it for file sharing at USB 3.0 speeds my purpose seems defeated .... Pls help....
Gaurav277
 
Posts: 18
Joined: Thu Jul 16, 2015 3:12 pm
languages_spoken: english
ODROIDs: XU4

Re: XU4 USB 3.0 speed issue

Unread postby odroid » Mon Jul 27, 2015 3:34 pm

Is it 60Mega-Bit-Per-Second(Mbps)? or 60Mega-Byte-Per-Second(MBps)?
USB 2.0 storage can do only 25~30MBps.
User avatar
odroid
Site Admin
 
Posts: 21221
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: XU4 USB 3.0 speed issue

Unread postby Gaurav277 » Mon Jul 27, 2015 5:24 pm

It is 60 mega bits not byte .... I am saying storage is USB 3 but its giving me same results of 60mega bits if I share it through USB 2 router or if I share it through USB 3 ports of XU4. Speed is same around 60mega bits. I am wondering if USB 3 ports of xu4 are actually working as USB 3
Gaurav277
 
Posts: 18
Joined: Thu Jul 16, 2015 3:12 pm
languages_spoken: english
ODROIDs: XU4

Re: XU4 USB 3.0 speed issue

Unread postby odroid » Mon Jul 27, 2015 5:31 pm

"7~8MBps" is really slow. :o We could get near 10 times faster speed with an SSD and 5 times faster speed with a HDD.

What is the result of "lsusb -t" if you connect your USB 3.0 storage in the USB 3.0 host port on the XU4?
Can you try it on the upper side of USB 3.0 dual port connector?
User avatar
odroid
Site Admin
 
Posts: 21221
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: XU4 USB 3.0 speed issue

Unread postby Gaurav277 » Wed Jul 29, 2015 5:27 am

I connected USB 3 HDD on the upper side and here is the output of lsusb -t

root@XU4NAS:~# lsusb -t
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=vend., Driver=r8152, 5000M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/2p, 5000M
|__ Port 2: Dev 3, If 0, Class=stor., Driver=usb-storage, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/2p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M

Please suggest what is going wrong ?
Gaurav277
 
Posts: 18
Joined: Thu Jul 16, 2015 3:12 pm
languages_spoken: english
ODROIDs: XU4

Re: XU4 USB 3.0 speed issue

Unread postby tobetter » Wed Jul 29, 2015 7:56 am

According to the log of "lsusb", your storage is connected in USB 3.0 but weird about slow speed. Do you connect your storage only on USB port? Do you know what's the model number of your HDD and USB storage? Can you try to attach another USB storage like USB 3.0 stick if you have?
tobetter
 
Posts: 1974
Joined: Mon Feb 25, 2013 10:55 am
Location: Republic Of Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: XU4 USB 3.0 speed issue

Unread postby venkatbo » Wed Jul 29, 2015 8:42 am

... I have TPLink Gigabit router with 2 USB 2.0 slots. It is running openwrt and connected with 1TB USB 3.0 WD 2.5" drive...

At some point, all else, isn't the throughput governed by the fact that the USB ports on the router are only 2.0 (lowest common denominator) based ?
User avatar
venkatbo
 
Posts: 408
Joined: Mon Feb 25, 2013 3:10 pm
Location: Bay Area, California
languages_spoken: english
ODROIDs: C0/C1+/C2 U3+ XU3-Lite/XU4 VU/VU7+ Touchscreen Show TFT Cloudshell SmartPower mAHRS DAC GPS Multiscope

Re: XU4 USB 3.0 speed issue

Unread postby odroid » Wed Jul 29, 2015 12:34 pm

My XU4s runs the official Ubuntu 15.04 image with Kernel 3.10.82 now.

I connected my WD My Passport 2.5" 1TB USB 3.0 HDD to the XU4.
And it shows below result.
Code: Select all
odroid@odroid:~$ lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
        |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M



So your connection seems to be okay.

My HDD was mounted on "/media/odroid/25a2a133-01ec-4121-9d46-33753b8140df" and it has the EXT4 file system.

This is my HDD test result of 537MB write and read.
Code: Select all
odroid@odroid:~$ cd /media/odroid/25a2a133-01ec-4121-9d46-33753b8140df/
odroid@odroid:/media/odroid/25a2a133-01ec-4121-9d46-33753b8140df$ sudo  dd if=/dev/zero of=test oflag=direct bs=8M count=64
[sudo] password for odroid:
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 7.86903 s, 68.2 MB/s
odroid@odroid:/media/odroid/25a2a133-01ec-4121-9d46-33753b8140df$ dd if=test of=/dev/null iflag=direct bs=8M
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 6.52816 s, 82.2 MB/s
odroid@odroid:/media/odroid/25a2a133-01ec-4121-9d46-33753b8140df$


It is 3~4 times faster than USB 2.0 HDD.

Try above test and let us know the result.
If your HDD speed is similar to mine, you need to check your Ethernet connection.
User avatar
odroid
Site Admin
 
Posts: 21221
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: XU4 USB 3.0 speed issue

Unread postby lotar1958 » Wed Jul 29, 2015 3:16 pm

I just tested my Seagate USB 3.0

XU4
Code: Select all
odroid@odroid:/media/odroid/seagate_slim$ sudo dd if=/dev/zero of=test oflag=direct bs=8M count=64
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 15.7374 s, 34.1 MB/s


Code: Select all
odroid@odroid:/media/odroid/seagate_slim$ dd if=test of=/dev/null iflag=direct bs=8M
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 15.0793 s, 35.6 MB/s


XU4 After Reboot
Code: Select all
odroid@odroid:/media/odroid/seagate_slim$ sudo dd if=/dev/zero of=test oflag=direct bs=8M count=64
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 4.56861 s, 118 MB/s


Code: Select all
odroid@odroid:/media/odroid/seagate_slim$ dd if=test of=/dev/null iflag=direct bs=8M
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 4.48772 s, 120 MB/s


I think is a software related problem and perfectible understandable because the Xu4 is a brand new board. If I may give you a suggestion Gaurav277, reboot your machine if have not done this yet and if this does not solve the issue, "re-flash" your OS and let us know.
Last edited by lotar1958 on Thu Jul 30, 2015 3:02 pm, edited 1 time in total.
lotar1958
 
Posts: 28
Joined: Sat Jul 18, 2015 2:53 pm
languages_spoken: english
ODROIDs: XU4

Re: XU4 USB 3.0 speed issue

Unread postby odroid » Wed Jul 29, 2015 3:54 pm

@ lotar1958
It seems that your first test result was caused by USB 2.0 mode not USB 3.0.
Can you check the output of the "lsusb -t" when it is slow?
BTW, do you use 3.5inch HDD? It looks 30~40% faster than my 2.5inch HDD.
User avatar
odroid
Site Admin
 
Posts: 21221
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: XU4 USB 3.0 speed issue

Unread postby moon.linux » Wed Jul 29, 2015 6:16 pm

HDD has it's own I/O and cache buffer when it come to read write issue and I/O scheduler.
If you want to measure or observe the I/O operation you need to observer the utility iotop.

Another utility that could be used to measure the I/O operation in the kernel side is blktrace.
following link will help how to observer the output of the HDD.

http://www.cse.unsw.edu.au/~aaronc/iosc ... trace.html

Coming to the issue with USB 3.0 speed issue.

When we transfer large chunk of file across the peripherals like Ethernet to USB3.0 HDD.
It depended on the bus speed and I/O scheduler and DMA cache being used by the device.

Its no guaranty that the device will perform better when we reboot.
It should be consistence in the performance with respect to read/write
operation over the period of time.
moon.linux
 
Posts: 667
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: XU4 USB 3.0 speed issue

Unread postby Gaurav277 » Wed Jul 29, 2015 11:01 pm

odroid wrote:My XU4s runs the official Ubuntu 15.04 image with Kernel 3.10.82 now.

I connected my WD My Passport 2.5" 1TB USB 3.0 HDD to the XU4.
And it shows below result.
Code: Select all
odroid@odroid:~$ lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
        |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M



So your connection seems to be okay.

My HDD was mounted on "/media/odroid/25a2a133-01ec-4121-9d46-33753b8140df" and it has the EXT4 file system.

This is my HDD test result of 537MB write and read.
Code: Select all
odroid@odroid:~$ cd /media/odroid/25a2a133-01ec-4121-9d46-33753b8140df/
odroid@odroid:/media/odroid/25a2a133-01ec-4121-9d46-33753b8140df$ sudo  dd if=/dev/zero of=test oflag=direct bs=8M count=64
[sudo] password for odroid:
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 7.86903 s, 68.2 MB/s
odroid@odroid:/media/odroid/25a2a133-01ec-4121-9d46-33753b8140df$ dd if=test of=/dev/null iflag=direct bs=8M
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 6.52816 s, 82.2 MB/s
odroid@odroid:/media/odroid/25a2a133-01ec-4121-9d46-33753b8140df$


It is 3~4 times faster than USB 2.0 HDD.

Try above test and let us know the result.
If your HDD speed is similar to mine, you need to check your Ethernet connection.


Ok I did lsusb -t and then ran this test here are results ( I am using Western Digital 2.5" USB 3.0 1TB HDD)

root@XU4NAS:/media/cdee8fe6-7b81-d001-c068-80e67b81d001# lsusb -t
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=vend., Driver=r8152, 5000M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/2p, 5000M
|__ Port 2: Dev 3, If 0, Class=stor., Driver=usb-storage, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/2p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M
root@XU4NAS:/media/cdee8fe6-7b81-d001-c068-80e67b81d001# sudo dd if=/dev/zero of=test oflag=direct bs=8M count=64
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 12.2299 s, 43.9 MB/s
root@XU4NAS:/media/cdee8fe6-7b81-d001-c068-80e67b81d001#

I have rebooted as well the only option I am left with is to re-flash .. do you think it will solve my problem ?
Gaurav277
 
Posts: 18
Joined: Thu Jul 16, 2015 3:12 pm
languages_spoken: english
ODROIDs: XU4

Re: XU4 USB 3.0 speed issue

Unread postby odroid » Thu Jul 30, 2015 1:06 am

What was the read speed?
Which file system to you use? The NTFS might degrade the throughput. I'm using the EXT4 on my HDD.
User avatar
odroid
Site Admin
 
Posts: 21221
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: XU4 USB 3.0 speed issue

Unread postby moon.linux » Thu Jul 30, 2015 1:44 am

Writing to USB hdd with predefined block size will get average results of all read/write.
If you have smaller block size you will get high speed.

Code: Select all
odroid@odroidxu4:/media/odroid/odroiddev/odroid$ sudo dd if=/dev/zero of=largefile bs=256k count=64
64+0 records in
64+0 records out
16777216 bytes (17 MB) copied, 0.162037 s, 104 MB/s
odroid@odroidxu4:/media/odroid/odroiddev/odroid$ sudo dd if=/dev/zero of=largefile bs=512k count=64
64+0 records in
64+0 records out
33554432 bytes (34 MB) copied, 0.871308 s, 38.5 MB/s
odroid@odroidxu4:/media/odroid/odroiddev/odroid$ sudo dd if=/dev/zero of=largefile bs=1M count=64
64+0 records in
64+0 records out
67108864 bytes (67 MB) copied, 1.8709 s, 35.9 MB/s
odroid@odroidxu4:/media/odroid/odroiddev/odroid$ sudo dd if=/dev/zero of=largefile bs=4M count=64
64+0 records in
64+0 records out
268435456 bytes (268 MB) copied, 8.91281 s, 30.1 MB/s
odroid@odroidxu4:/media/odroid/odroiddev/odroid$ sudo dd if=/dev/zero of=largefile bs=8M count=64
64+0 records in
64+0 records out
536870912 bytes (537 MB) copied, 17.5951 s, 30.5 MB/s

So when you transfer the file from one medium to another the block size vary over transfer.

if you want to tune the USB hdd you could use.
Code: Select all
Enable read-ahead:
# hdparm -A 1 /dev/sda


Code: Select all
If the disk is constantly too noisy, you can change its acoustic management at the cost of read/write performance:
# hdparm -M 128 /dev/sda


Code: Select all
to set DMA on for a device:
# hdparm -d1 /dev/hda


You can get more information on hdparm on following link.
http://linuxadministrative.blogspot.in/ ... mples.html
moon.linux
 
Posts: 667
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: XU4 USB 3.0 speed issue

Unread postby lotar1958 » Thu Jul 30, 2015 2:31 pm

odroid wrote:@ lotar1958
It seems that your first test result was caused by USB 2.0 mode not USB 3.0.
Can you check the output of the "lsusb -t" when it is slow?
BTW, do you use 3.5inch HDD? It looks 30~40% faster than my 2.5inch HDD.


I will report the output of the "lsusb -t" as soon as it gets slow...
About my hd is a Seagate Backup Plus Slim 2TB STDR2000102

What brand is your hard disk?
lotar1958
 
Posts: 28
Joined: Sat Jul 18, 2015 2:53 pm
languages_spoken: english
ODROIDs: XU4

Re: XU4 USB 3.0 speed issue

Unread postby lotar1958 » Thu Jul 30, 2015 2:41 pm

odroid wrote:What was the read speed?
Which file system to you use? The NTFS might degrade the throughput. I'm using the EXT4 on my HDD.


I agree with odroid. The NTFS is really slow compared to the more modern EXT4 filesystem.
If I were you Gaurav277 I would create a small EXT4 partition on your HD and to re-run the speed test again.
lotar1958
 
Posts: 28
Joined: Sat Jul 18, 2015 2:53 pm
languages_spoken: english
ODROIDs: XU4

Re: XU4 USB 3.0 speed issue

Unread postby crashoverride » Thu Jul 30, 2015 3:18 pm

Gaurav277 wrote:Data transfer over lan from this drive is 55-60Mbps over samba and if I connect this drive to XU4 running Ubuntu I see almost same speed around 60Mbps.

If that is MegaBITS and not MegaBYTES, then the problem is most likely due to the SAMBA configuration. If its using the SMB1 protocol to talk, then you will see speeds that slow. To take advantage of highspeed transfers, you need to be using SMB2 or SMB3 protocol. See the Samba documentation for more details. Note that both client and server must support SMB2/3. Speed should be testing using a Windows 7 or later client. Older linux distributions with older versions of Samba do not support the SMB2/3 protocol.

https://www.samba.org/samba/history/samba-4.1.0.html
Samba 4.1.0 contains the first release of our client tools
and client library that work over the new protocols SMB2 or SMB3.
Note that SMB3 only works either to a Samba server version 4.0.0
or above, or to a Windows Server running Windows 2012 or Windows 8.

The default protocol for smbclient and smbcacls is still
SMB1 (the NT1 protocol dialect).
crashoverride
 
Posts: 2320
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: XU4 USB 3.0 speed issue

Unread postby odroid » Thu Jul 30, 2015 5:12 pm

lotar1958 wrote:I will report the output of the "lsusb -t" as soon as it gets slow...
About my hd is a Seagate Backup Plus Slim 2TB STDR2000102

What brand is your hard disk?


WD My Passport 2.5" 1TB USB 3.0
Your Seagate model is much faster than mine. :cry:
User avatar
odroid
Site Admin
 
Posts: 21221
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: XU4 USB 3.0 speed issue

Unread postby mrtnggnn » Fri Feb 17, 2017 11:56 pm

I'm facing USB speeds issues as well. Here's my setup:
ODroid XU4 running ARMBIAN 5.24 stable Debian GNU/Linux 8 (jessie) 3.10.104-odroidxu4
uname -a: Linux odroidxu4 3.10.104-odroidxu4 #3 SMP PREEMPT Fri Jan 20 22:47:57 CET 2017 armv7l GNU/Linux

Drives:
usb0: Seagate 2.5" SRD00F1 2TB USB3
usb1: Seagate 3.5" STFM3000100 3TB USB3

Both use EXT4 fs:
/dev/sda1 ext4 1922728836 343127780 1481908996 19% /media/usb0
/dev/sdb1 ext4 2884152988 12527304 2725096024 1% /media/usb1

Noticed that my backup job from USB0 to USB1 was showing about 19 days left for ~350GB of data...
Code: Select all
Uploaded chunk 1220 size 2393012, 204KB/s 19 days 00:16:03 1.8%

Backing up to the cloud was MUCH faster, capping my 20 Mbps internet connection! (~2MB/s), ~10 times faster!

I use the following script to test read/write/xfer speeds of these drives:
Code: Select all
echo USB Devices:
lsusb -t

echo
echo 'Write to USB0:'
dd if=/dev/zero of=/media/usb0/testfile oflag=direct bs=8M count=12 2>&1 | tail -n1

echo 'Read from USB0:'
dd if=/media/usb0/testfile of=/dev/null iflag=direct bs=8M 2>&1 | tail -n1

echo 'Write to USB1:'
dd if=/dev/zero of=/media/usb1/testfile oflag=direct bs=8M count=12 2>&1 | tail -n1

echo 'Read from USB1:'
dd if=/media/usb1/testfile of=/dev/null iflag=direct bs=8M 2>&1 | tail -n1

echo 'Xfer USB0 -> USB1 (dd):'
dd if=/media/usb0/testfile of=/media/usb1/testfile iflag=direct bs=8M 2>&1 | tail -n1

echo 'Xfer UBS1 -> USB0 (dd):'
dd if=/media/usb1/testfile of=/media/usb0/testfile iflag=direct bs=8M 2>&1 | tail -n1

echo 'Xfer USB0 -> USB1 (cp):'
time cp /media/usb0/testfile /media/usb1/.

echo 'Xfer USB1 -> USB0 (cp):'
time cp /media/usb1/testfile /media/usb0/.

rm /media/usb0/testfile
rm /media/usb1/testfile

Here's the output after a fresh reboot:
Code: Select all
USB Devices:
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
        |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
        |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M

Write to USB0:
100663296 bytes (101 MB) copied, 1.84464 s, 54.6 MB/s
Read from USB0:
100663296 bytes (101 MB) copied, 0.90607 s, 111 MB/s
Write to USB1:
100663296 bytes (101 MB) copied, 1.55772 s, 64.6 MB/s
Read from USB1:
100663296 bytes (101 MB) copied, 0.791706 s, 127 MB/s
Xfer USB0 -> USB1 (dd):
100663296 bytes (101 MB) copied, 3.04219 s, 33.1 MB/s
Xfer UBS1 -> USB0 (dd):
100663296 bytes (101 MB) copied, 3.3415 s, 30.1 MB/s
Xfer USB0 -> USB1 (cp):

real    0m47.811s
user    0m0.010s
sys     0m1.835s
Xfer USB1 -> USB0 (cp):

real    0m38.653s
user    0m0.000s
sys     0m1.870s


Raw read/write figures are not bad, though xfers are running at ~30MB/s, roughly half the measured write speeds.
Should this be considered normal since both read and write operations are happening simultaneously on the USB bus?

However, using 'cp' to transfer the same file back and forth takes forever: ~16 times slower USB0->USB1 (47.8s vs 3.0s) and ~12 times slower for USB1->USB0 (38.7s vs 3.3s)
That's in the range of 2-2.5 MB/s.

Any idea what might be going on?
mrtnggnn
 
Posts: 1
Joined: Fri Feb 17, 2017 11:11 pm
languages_spoken: english, francais
ODROIDs: XU4

Re: XU4 USB 3.0 speed issue

Unread postby odroid » Sat Feb 18, 2017 9:49 am

111MB/s ~ 127MB/s Reading performance looks okay.
However, the two USB 3.0 ports are sharing one root hub and the copy speed between USB0 <-> USB1 should be near half and it is very normal.

But I have no idea why 'cp' command is too slow either.
User avatar
odroid
Site Admin
 
Posts: 21221
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Issues

Who is online

Users browsing this forum: No registered users and 5 guests