Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 2834  / 2 Years ago, tue, may 31, 2022, 8:10:01

I have a number of spare external hard disk drives lying about the place and I was wondering if there is any practical way of using an external hard drive or USB flash memory drive to boost performance in Ubuntu?



The idea sprang from using a Windows PC and plugging in a USB device which prompted a pop-up asking whether I wanted the USB to be used for ReadyBoost to speed up my system. I imagine that this may well have no relevance to a Linux system but would be interested to know if there is any practical way of using an external hard drive for potential performance gain.


More From » performance

 Answers
3

ReadyBoost improves things by caching boot files on media with fast access time. It's much like ureadahead but using an agile medium instead of just stacking the files on the boot disk. Whether or not it actually works better than something like ureadahead is highly debateable.



A Flash drive might have a lower seek time than a mechanical disk but throughputs are often very limited (there are exceptions of course: USB3 SSDs, for example). It's possible that by removing the seek element (as it does by stacking the files) ureadahead is faster because the drive has the faster throughput.



ReadyBoost has no effect on after-boot performance, IIRC, though it's concievable they might put some memory paging on there too if it's fast. You can put your swap on an external drive but that's only viable if the disk is faster, in both access and throughput.



In answer to your question: plugging a slow mechanical disk into a slow USB2 bus will give you no benefit other than extra disk space. Even if ureadahead could use it (which I don't think it can) any benefit would rely on the external drive having a higher throughput than your internal disk.



If that's the case (your internal disk is slow) you really want to consider upgrading it. Your primary disk should be the fastest permanent storage in your system. If you're considering an external swap, have a look at the prices of RAM. Stupidly high quantities are very cheap these days.


[#38620] Wednesday, June 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
beateyra

Total Points: 499
Total Questions: 113
Total Answers: 125

Location: Falkland Islands
Member since Mon, Jul 13, 2020
4 Years ago
;