General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-11-2024, 01:21 AM
|
#1
|
Member
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 723
Rep:
|
SSD vs HDD transfer speed
We know SSD is so much faster than traditional HDD and there's no doubt about that, but in actual use it depends on cases. I was copying 100GB of files from a uSD to a Samsung T5 drive, and I can barely get 9MB/s, but the same thing with a 7200RPM HDD via USB adapter and a hub I can easily get 20MB/s. It was not the HDD caching as it sustains the speed and keep rising, was it the USB cable I used !?
|
|
|
12-11-2024, 12:15 PM
|
#2
|
LQ Guru
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 5,046
|
I've read that some cables, especially those with one end USB-A and the other, USB-C have issues in that not only do cables vary but the C end orientation has profound effects. If you use any cables of this sort try flipping the C end over.
|
|
|
12-11-2024, 02:11 PM
|
#3
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,055
|
Quote:
Originally Posted by joboy
We know SSD is so much faster than traditional HDD and there's no doubt about that, but in actual use it depends on cases. I was copying 100GB of files from a uSD to a Samsung T5 drive, and I can barely get 9MB/s, but the same thing with a 7200RPM HDD via USB adapter and a hub I can easily get 20MB/s. It was not the HDD caching as it sustains the speed and keep rising, was it the USB cable I used !?
|
The total speed of the transfer will depend upon teh drives, the drivers, the connections/controller, and how well the buffer space can stage in memory (with depends upon total free RAM and the CPU). USB4 is FAST, but USB3 has multiple speed levels depending upon other factors. (All USB3 is NOT the same!) USB2 is much slower, and USB1 should never be encountered. Proper SATA with a single device per channel is very fast, but ANY controller slows down if it has multiple devices fighting for bandwidth.
(The fastest enterprise F-W SCSI controllers I have ever used maxed out with 5 active drives. They could handle 15 easily, but any more than 5 SSDs and the total speed dropped.They could handle 12 rotating rust drives with no slowdown, but less maximum speed.)
The speed of your transfer will be the speed of the TIGHTEST bottleneck in the data flow path.
Last edited by wpeckham; 12-11-2024 at 02:13 PM.
|
|
|
12-11-2024, 08:14 PM
|
#4
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,057
|
Physically speaking, a solid-state drive has none of the "mechanical latencies" that are associated with disks. The first, "seek time," is the time required to move the read/write mechanism to the proper track. The second, "rotational latency," is the time required for the desired piece of data to spin underneath it. Although these delays are measured in "mere milliseconds," they are significant.
I still have a box of unrecoverable "spinning platter" drives which contain data that I have now forever lost. It is for this reason alone that I no longer use that kind of drive. (And, why I now make multiple copies of my SSD's. Just in case.)
|
|
|
12-11-2024, 08:37 PM
|
#5
|
Member
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 593
|
Quote:
I still have a box of unrecoverable "spinning platter" drives which contain data that I have now forever lost. It is for this reason alone that I no longer use that kind of drive. (And, why I now make multiple copies of my SSD's. Just in case.)
|
Lesson learned then . Which reminds me. It is coming up on the time to do the 'yearly' backup and store off site.
On topic, it is hard to say where the problem lies for writing. Caches, cable, machine, port being used (like a 2.0 USB port), etc. Most times read time is the most important item when it comes to storage devices. Unless it is a backup in which case read/write time isn't so important.
|
|
|
12-12-2024, 12:29 AM
|
#6
|
Member
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 723
Original Poster
Rep:
|
Quote:
Originally Posted by enorbet
I've read that some cables, especially those with one end USB-A and the other, USB-C have issues in that not only do cables vary but the C end orientation has profound effects. If you use any cables of this sort try flipping the C end over.
|
Yeah, I found some such cables can't do quick charge until flipped !
|
|
|
12-12-2024, 12:46 AM
|
#7
|
Member
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 723
Original Poster
Rep:
|
Quote:
Originally Posted by sundialsvcs
... I still have a box of unrecoverable "spinning platter" drives which contain data that I have now forever lost. It is for this reason alone that I no longer use that kind of drive. (And, why I now make multiple copies of my SSD's. Just in case.)
|
As far as my experience goes, mechanical drives are more ' reliable' than SSD in a way, due to the use of magnetic media instead of electronics components. I too got many bad spinning drives, most of them are noisy clicking due to the head can't 'home', or some other mechanical problem. On most of the bad spinning drives I still managed to partially recover the data after retry reading, but on the SSD or flash drive, depends on which part it failed it may total lost. I've got both an early Sandisk flash and a SSD that randomly 'disappear', so that I would not go with too high capacity on one drive, and make multiple backup as well.
|
|
|
12-12-2024, 01:07 AM
|
#8
|
Member
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 723
Original Poster
Rep:
|
Quote:
Originally Posted by rclark
Lesson learned then . Which reminds me. It is coming up on the time to do the 'yearly' backup and store off site.
On topic, it is hard to say where the problem lies for writing. Caches, cable, machine, port being used (like a 2.0 USB port), etc. Most times read time is the most important item when it comes to storage devices. Unless it is a backup in which case read/write time isn't so important.
|
... I was backing up the cell phone uSD via card reader to a SSD, then retrying with a HDD, on a slow i3 Debian (Mint) box. I believed it wasn't caching to make the HDD do better, as the faster transfer speed lasted for over an hour, not just a burst. I also found that heat also affects the transfer speed, cooling down the HDD can indeed speed up the transfer. And 20MB/s is really nothing, in ideal condition USB 2.0 can go up to 480Mb/s or 60MB/s. Whenever I go buy a USB drive, the sales people will give me the one that supports the fastest USB spec., but little do they know, what really made a fast drive wasn't the USB spec. it supported, but the design of the flash memory, a 12 lanes highway will not make a snail run faster you see what I mean !
|
|
|
12-12-2024, 08:04 AM
|
#9
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,057
|
It's important to distinguish between "memory sticks" and true "SSD drives." Memory sticks are based on "flash" technology, which causes them to be very slow to write information. However, their true purpose is to preserve information for future reading, with no power consumption and minimal cost.
The good news is: "'true' SSD technology is now 'dirt cheap.'" (And: "youuuge!")
(If you actually need "removability," the memory-cards used in digital cameras are also available, with appropriate USB interface devices. But the memory units are very small – heh, "no surprise there" – and thus very easily lost.)
Last edited by sundialsvcs; 12-12-2024 at 08:07 AM.
|
|
|
12-12-2024, 09:42 AM
|
#10
|
Moderator
Registered: Aug 2002
Posts: 26,459
|
FYI both memory sticks and SSD drives use flash memory. I am not sure what is true SSD technology... The cheap memory sticks might use older EEPROM technology but I would assume that USB 3 memory sticks use NAND as well. For T5 max transfer speeds you need to be plugged into a USB 3 port and have UASP mode enabled.
A quick search found a number of threads reporting T5 slow speeds and one thread where replacing the cable helped for awhile. One thread only showed 22MB/s when connected to a USB 2 bus.
|
|
|
12-12-2024, 03:07 PM
|
#11
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,055
|
Quote:
Originally Posted by sundialsvcs
I still have a box of unrecoverable "spinning platter" drives which contain data that I have now forever lost. It is for this reason alone that I no longer use that kind of drive. (And, why I now make multiple copies of my SSD's. Just in case.)
|
There is no DEVICE that is the solution for that. BACKUPS are the solution for that. Multiple copies is one form of backup.
|
|
|
12-12-2024, 05:34 PM
|
#12
|
Senior Member
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,199
|
In my experience, when an HDD is dying, there will be signs. If you act soon enough, you should be able to recover most of, if not all of the data.
SSDs might be overall more reliable than HDDs, but when they're ready to die, they'll go without saying goodbye.
If your USB devices are bus-powered, use separate USB ports or a powered hub. Some devices will still work, but slower if they don't get enough power.
|
|
|
12-13-2024, 12:44 AM
|
#13
|
Member
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 723
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
FYI both memory sticks and SSD drives use flash memory. I am not sure what is true SSD technology...
|
Yeah that's what I said, depends on the type of flash in use and the bus design to result in different speed...
|
|
|
12-13-2024, 12:46 AM
|
#14
|
Member
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 723
Original Poster
Rep:
|
Quote:
Originally Posted by replica9000
...
If your USB devices are bus-powered, use separate USB ports or a powered hub. Some devices will still work, but slower if they don't get enough power.
|
Right, I should have used separate power on the hub to get better speed.
|
|
|
12-13-2024, 12:49 AM
|
#15
|
Member
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 723
Original Poster
Rep:
|
Quote:
Originally Posted by replica9000
In my experience, when an HDD is dying, there will be signs. If you act soon enough, you should be able to recover most of, if not all of the data.
SSDs might be overall more reliable than HDDs, but when they're ready to die, they'll go without saying goodbye...
|
Very true, especial early types of SSDs are not reliable enough to replace HDD. I got an early 60G one that suddenly 'disappeared' without saying goodbye !
|
|
|
All times are GMT -5. The time now is 03:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|