I was copying some ~5GB files today.
The source was a SATA SSD connected through a USB3.2 (red) interface on the motherboard, but the SSD enclosure was just a cheap USB3.0 (blue) one. The target HDD is a WD-Black 8TB HDD with a 6Gb/s interface. As you'll see, that interface is pure theory, nothing to do with the real world.
So, here's the information I captured.
Code:
$ du -sh File-S4E0*
5.2G File-S4E02-str1080-huge.mkv
4.8G File-S4E03-str1080-huge.mkv
4.8G File-S4E04-str1080-huge.mkv
3.4G File-S4E05-str1080-huge.mkv
# and the copy times in order:
Code:
real 2m7.146s
user 0m1.110s
sys 0m4.284s
real 1m58.245s
user 0m1.140s
sys 0m3.925s
real 1m57.804s
user 0m1.159s
sys 0m3.597s
real 2m3.514s
user 0m1.187s
sys 0m4.357s
"real" is clock time not including sync. To get the Mbps values, we take the file size in GigaBytes and divide by the number of seconds, then multiply by 8 (there are 8 bits in a byte).
Code:
5.2G x 8 x 1024
---------------- = 335.03 Mbps (conversion to Mbits)
127.146
4.8G
---- = 332.54 Mbps
118.245s
4.8G
---- = 333.79 Mbps
117.804s
3.4G
---- = 225.50 Mbps
123.514s
So, about 330 Mbps is the reported copy performance. This is bogus, since the drive manufacturer says it is a little over 160Mbps for writes. This is why disk caches are so important, they make slow devices seem faster. But eventually, the bytes need to be written to the storage.
Nothing we don't already know.
Bookmarks