LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-22-2021, 12:19 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,612

Rep: Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618
USB Question


My box has 2 usb2 ports and 2 usb3 ports. Received wisdom is that usb is faster/better for things like file transfers. Now either my box is situated where the Bermuda Triangle intersects with the Twilight Zone, or there's a hardware fault. I've experimented with a number of goos usb pluggable devices. I'll attach disk timings:

1. A Known Good usb backup 2.5" drive in USB3
Code:
/dev/sdb:
 Timing cached reads:   7722 MB in  2.00 seconds = 3867.23 MB/sec
 Timing buffered disk reads: 120 MB in  3.04 seconds =  39.50 MB/sec
2. The same in USB2 socket
Code:
 /dev/sdb:
 Timing cached reads:   10276 MB in  2.00 seconds = 5149.32 MB/sec
 Timing buffered disk reads: 398 MB in  3.01 seconds = 132.32 MB/sec
I'm doing an rsync of media to get around formatting weirdness and tried running the rsync on a number of 2.1G episodes on the usb2 & usb3 sockets Both returned times of 50 seconds per 2.1G episode, or roughly 40MB/s.

Apart from the fact that rsync was mounted, and the hdparm was not, is it just a lousy usb3 performance here? USB 2 & 3 is part of Intel series 7 chipset - 2012 vintage.
 
Old 12-22-2021, 08:34 PM   #2
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
business_kid:

Was this portion of your comment:
Quote:
Originally Posted by business_kid View Post
...Received wisdom is that usb is faster/better for things like file transfers...
intended to suggest that USB3 is faster than USB2? If so, you might want to consider the difference in the physical connectors that is used to achieve the higher speed of USB3, and how that might impact your situation: https://en.wikipedia.org/wiki/USB_ha..._compatibility
 
Old 12-23-2021, 01:42 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,335

Rep: Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986
that is the cache I think. The data was not really written to the usb device. You need to run sync/umount/eject or similar to really complete that operation.
 
1 members found this post helpful.
Old 12-23-2021, 06:02 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,572

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
Quote:
Originally Posted by business_kid View Post
Apart from the fact that rsync was mounted, and the hdparm was not, is it just a lousy usb3 performance here? USB 2 & 3 is part of Intel series 7 chipset - 2012 vintage.
The bottleneck in terms of speed will NOT be the USB2/USB3 implementation. For any storage device it's the device itself that will be the slow part and unless it's really fast you'll see identical performance times on USB2/USB3. If you're transferring "real" files from one device to another then both device speeds come in to play.

For a fast device it can be different, just for fun, and because it beats working, I did the CrystalDiskMark 8 tests with a Dell XPS laptop and a fast Lexar SDXC card. The card is rated as "250MB/s Read" These are the SEQ1M Q8T1 test results
  1. Onboard SD card reader: Read 92.20MB/s, Write 89.08MB/s
  2. Lexar USB3.0 card reader direct to USB-C port: Read 225.86MB/s, 114.49MB/s
  3. Same card reader, USB3 port on cheapo USB-C multi-function hub: Read: 35.23MB/s, 29.50MB/s
  4. Same card reader, USB2 port on cheapo USB-C multi-function hub: Read: 35.44MB/s, 29.35MB/s
  5. Same card reader, USB-C to USB adaptor that came with the lappy: Read: 91.17MB/s, 86.19MB/s

So, for exactly the same device speeds can vary wildly depending on exactly what it's attached to.

Last edited by TenTenths; 12-23-2021 at 06:03 AM.
 
1 members found this post helpful.
Old 12-23-2021, 06:07 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,612

Original Poster
Rep: Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618
Quote:
Originally Posted by rigor View Post
business_kid:

Was this portion of your comment:intended to suggest that USB3 is faster than USB2? If so, you might want to consider the difference in the physical connectors that is used to achieve the higher speed of USB3, and how that might impact your situation: https://en.wikipedia.org/wiki/USB_ha..._compatibility
I have two usb3 drive caddies here, USB with about 250mm leads, and usb3 plugs (the top one from your link). The laptop is a nine year old Samsung NP350 type which is still made today. never got indications on usb socket specs, so I just used what seemed faster as usb3. They certainly have current capacity for charging. I might have to go looking for those extra pins in the usb3 socket. No fun, as I'm disabled.
 
Old 12-23-2021, 12:00 PM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,612

Original Poster
Rep: Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618
Quote:
Originally Posted by TenTenths
Lexar USB3.0 card reader direct to USB-C port: Read 225.86MB/s, 114.49MB/s
Usb-C wasn't included in the laptop. I only have USB-A ports. I don't think usb-C was on laptops in 2012, certainly not mine. What upset me was that hdparm was showing roughly 5 times the speed on tests to usb keys (not shown), and 3.5 times the speed to drives (shown in post #1). My card reader is usb-2.0 and unspectacular, but still nearly as fast as the usb-3 ports.

It shows my usb-3.0 is way off the pace, but beyond that we're guessing really.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: USB 2.0, USB 3.0 And USB Type C – USB Ports Explained LXer Syndicated Linux News 0 11-29-2017 03:40 PM
[SOLVED] Is it ok to use usb 2 and usb 3 devices simultaneously on a usb 3 hub? Ulysses_ Linux - Hardware 3 10-12-2016 06:46 PM
USB-xover-USB cable -- emulate USB HID -- hardware/driver options? dizzy13 Linux - Hardware 4 04-24-2013 08:24 PM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration