slow rsync to USB harddrive
by bjlockie from LinuxQuestions.org on (#52X4T)
I backup my SSD to a USB harddrive.
I think this shows it is connected to USB3:
$ lsusb -vd 0bc2:2321
Bus 002 Device 002: ID 0bc2:2321 Seagate RSS LLC Expansion Portable
bcdUSB 3.00
sent 24.02G bytes received 10.66K bytes 19.81M bytes/sec
total size is 62.22G speedup is 2.59
It is probably one directory with large files that is slowing it down.
Without the large directory:
sent 852.63K bytes received 3.46K bytes 1.71M bytes/sec
total size is 62.22G speedup is 72,679.74
Shouldn't the bytes/sec be around 640MB/s?
dmesg says "Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)".
Could that be the problem?
$ sudo hdparm -t /dev/sda1
/dev/sda1:
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Timing buffered disk reads: 300 MB in 3.01 seconds = 99.71 MB/sec
That doesn't look good.


I think this shows it is connected to USB3:
$ lsusb -vd 0bc2:2321
Bus 002 Device 002: ID 0bc2:2321 Seagate RSS LLC Expansion Portable
bcdUSB 3.00
sent 24.02G bytes received 10.66K bytes 19.81M bytes/sec
total size is 62.22G speedup is 2.59
It is probably one directory with large files that is slowing it down.
Without the large directory:
sent 852.63K bytes received 3.46K bytes 1.71M bytes/sec
total size is 62.22G speedup is 72,679.74
Shouldn't the bytes/sec be around 640MB/s?
dmesg says "Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)".
Could that be the problem?
$ sudo hdparm -t /dev/sda1
/dev/sda1:
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Timing buffered disk reads: 300 MB in 3.01 seconds = 99.71 MB/sec
That doesn't look good.