Score:0

Transfer to USB 3 external hard drive starts fast but slows down quickly

ng flag

I've just bought a Toshiba Canvio Advance 1TB external hard drive that connects to a USB 3.0 port. I've formatted it with file system ext4 using Ubuntu's Disks utility. When I take a full backup of my laptop's hard disk, the transfer rate starts very fast, something around 300 MB/s, but it quickly slows down to 30 MB/s as its "steady" rate. Why is that happening? Shall I upgrade the USB driver? My laptop has 16 GB of RAM and is running Ubuntu 22.04. Thanks.

cc flag
Search this site for slow copy Lots of problems like yours, Shingled Magnetic Recording used on the disk really slows things down even more, disk buffer used to make the initial part of copy seem fast, system buffers fill up and the whole system slows to a crawl...See https://askubuntu.com/questions/995946/decrease-of-transfer-rate-when-copying-large-amount-of-data Basic problem is write is slower than read, buffers fill up, and things slow down. Many approaches to making reads better match writes to avoid dragging system down.
user2083893 avatar
ng flag
Thanks for your input. My external HDD being a thin 1TB, it certainly doesn't use Shingled Magnetic Recording!
user2083893 avatar
ng flag
Ok, I believe you, it's just that Wikipedia says SMR is normally for 4TB+ hard disks. Anyway, I've found from a previous post the following tweaks:
user2083893 avatar
ng flag
echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
user2083893 avatar
ng flag
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes
user2083893 avatar
ng flag
The copy to the USB 3.0 drive still slows down, but to a steady rate of about 70 MB/s, which is sufficient for my needs. Thanks everybody!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.