Odroid-XU4 | USB Drive Speed (54% write/160% read) boost Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
rhkean@gmail.com

Odroid-XU4 | USB Drive Speed (54% write/160% read) boost

Post by rhkean@gmail.com »

So, I just got a major speed boost on my USB3 bus.

By compiling a 4.2.0 kernel and enabling the uas (usb attached scsi) module, I got a bump from 109MB/s to 168MB/s (54% increase) on the write speed and a bump from 79MB/s to 209MB/s (160% increase) on the read speed.
3.10.96+ kernel using usb_mass_storage
3.10.96+ kernel using usb_mass_storage
4.2.0+ kernel using usb_attached_scsi
4.2.0+ kernel using usb_attached_scsi
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid-XU4 | USB Drive Speed (50% write/100% read) boost

Post by Fourdee »

Nice, is this on a SSD?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
rhkean@gmail.com

Re: Odroid-XU4 | USB Drive Speed (50% write/100% read) boost

Post by rhkean@gmail.com »

Fourdee wrote:Nice, is this on a SSD?
Nope

1GB test file
2TB drive: http://www.newegg.com/Product/Product.a ... 6822148834
USB 3.1 Enclosure: http://www.newegg.com/Product/Product.a ... 6817392088

UAS is a beast at pumping data through a USB3 hub. 8-)

I also have 2 5TB Seagate Expansion Drives that also loaded with the uas module, but they have data in use, so I didn't test them
rhkean@gmail.com

Re: Odroid-XU4 | USB Drive Speed (54% write/160% read) boost

Post by rhkean@gmail.com »

I used the hardkernel repository with the 4.2.0-rc1 branch and got the blue LED heartbeat functions back, but the /proc/cpuinfo is still not reporting "SAMSUNG EXYNOS (Flattened Device Tree)" instead of "Odroid-XU3", so the dietpi banner is stating "unknown".

but, with some tweaks to the default config file, I got the kernel to build with 4 built-in cpu governors (powersave, conservative, ondemand [default], & performance). And, I got the uas driver to build and load.

I think that I can modify the source file properly to get it to report the correct CPU string, too. I'll let you know.

-rob
noobs4u
Posts: 24
Joined: Tue Apr 12, 2016 6:00 pm

Re: Odroid-XU4 | USB Drive Speed (54% write/160% read) boost

Post by noobs4u »

:|
Last edited by noobs4u on Mon Apr 18, 2016 6:07 pm, edited 1 time in total.
filemoon
Posts: 10
Joined: Thu Feb 25, 2016 5:18 pm

Re: Odroid-XU4 | USB Drive Speed (54% write/160% read) boost

Post by filemoon »

Can we expect to have 4.2.0 delivered soon?
rhkean@gmail.com

Re: Odroid-XU4 | USB Drive Speed (54% write/160% read) boost

Post by rhkean@gmail.com »

filemoon wrote:Can we expect to have 4.2.0 delivered soon?
Fourdee doesn't maintain the kernel used in the core Odroid-XU3/4 distro, so it's unlikely to be "officially" supported "soon". Meverick just updated the official kernel packages and they were still 3.10.96+ .

that being said, I'm am working on getting DietPi to properly recognize my XU4 with the 4.2.0 kernel. Currently, it reports "Unknown Model"

(and I've never built a kernel package for distribution, so.... :| )
filemoon
Posts: 10
Joined: Thu Feb 25, 2016 5:18 pm

Re: Odroid-XU4 | USB Drive Speed (54% write/160% read) boost

Post by filemoon »

Can we have 3.10.96+ with uas support?

Is Maverick reading this forum?
rhkean@gmail.com

Re: Odroid-XU4 | USB Drive Speed (54% write/160% read) boost

Post by rhkean@gmail.com »

UAS was not added to the Linux kernel until 3.15.

I have no experience back-porting on the kernel and wouldn't even know where to begin. I'm still testing on my 4.2-rc1 kernel build. If I can get it working correctly and build a valid package, then I'll discuss with Fourdee about adding it (as a feature add) to DietPi. But currently, your best best is to follow/modify the build instructions on the Odroid wiki

here: http://odroid.com/dokuwiki/doku.php?id= ... ing_kernel

NOTES:
  • These instructions are centered around cross compiling (I actually built the kernel on my XU4)
  • These instructions are clearly labeled "Experimental"
  • the hardkernel fork seems to have better support for the XU4 hardware than the tobetter fork mentioned above. It can be found here: https://github.com/hardkernel/linux/tre ... 4-v4.2-rc1
  • the config does not build the uas module by default. it needs to be added to the .config file
  • the config also doesn't add support for multiple cpu governors (only performance).... You'll want to add the others. I use ondemand with pretty good results.
  • As I'm typing this, I realized that I didn't test mass-storage on the 4.2 kernel, so I'm not 100% that the speed increase is from the UAS driver or the kernel upgrade... I will test this tonight.
  • Using any kernel on an Odroid XU4, other than meverick's, will break DietPi. It will no longer properly identify the hardware (I'm working on the fix for this)
And, I cannot speak for Meverick. sorry
filemoon
Posts: 10
Joined: Thu Feb 25, 2016 5:18 pm

Re: Odroid-XU4 | USB Drive Speed (54% write/160% read) boost

Post by filemoon »

Thank you for update.
Post Reply