NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
chadwixk
Dec 31, 2022Aspirant
Copy Speed Test Results to USB 3.0 Drive w/ SSD - why so slow?
NAS: RN102
I need to copy off about 3TB of data...I know not a ton, but was curious to test various copy methods to see which was fastest and just to learn a little more in the process.
SOURCE:
The NAS disks are WD Red 5,400rpm, capable of around 110 MB/s reads each. This is a RAID 1 of 2 disks, so assuming it could read in parallel from each disk to have a potential of double that right?
DESTINATION:
A usb NVME drive to the rear USB 3.0 port. It is a Samsung 970 Evo SSD with write speeds of around 2,500 MB/s .
TEST RESULTS:
ssh > rsync: 7.5 MB/s
ssh > cp: 18 MB/s
Windows Drag and Drop: 18 MB/s
Windows command prompt > Robocopy: 64 MB/s
Here are the specific commands in case the switches have an impact.
In all cases, the destination file did not exist.
rsync -hvrPt --info=progress2 --ignore-existing "/data/Videos/2022/12/2022-12-20-063917.mkv" "/media/USB_HDD_7/Videos/2022/12/"
cp -r -u -v "/data/Videos/2022/12/2022-12-20-063917.mkv" "/media/USB_HDD_7/Videos/2022/12/"
Robocopy \\READYNAS\Videos\2022\12 \\Readynas\usb_hdd_7\Videos\2022\12 2022-12-20-063917.mkv /s /zb /r:1 /w:1 /XO /MT:32
The BUT WHYs 🙂 ?
But Why is rsync so slow and since it is via ssh, I thought this was a direct copy from the internal disks > usb port > NVME ssd without a round trip over the network to the client and back?
Interestingly cp, also via ssh and hence I believe a direct hardware copy like rsync, was about 2.5 times faster than rsync.
Windows drag and drop...isn't this a copy over the network, to the client and then back? NAS > Windows Client > NAS > USB Port > NVME SSD? This shocked me!
Robocopy, wouldn't this be over the network too? Yet in the end it was 8+x faster than ssh rsync?????
But Why, since it is a direct link over USB and sourced from 2 disks in RAID 1, was the speed not near the theorhetical 220 MB/s (read from 2 disks in parallel at 110 MB/s each)? I tried copying multiple files to try to take advantage of this, but I guess these copy commands are sequential in nature...I'll have to look to see how you could actually copy 2 files in parallel to test this aspect further.
So I guess outside of parallel reads from the RAID 1, the speed should still be closer to 110 MB/s (the read limit of the source disks being the bottleneck), no?
5 Replies
Replies have been turned off for this discussion
- StephenBGuru - Experienced User
The slow CPU and limited memory in the RN102 likely is also a factor.
chadwixk wrote:
SOURCE:
The NAS disks are WD Red 5,400rpm, capable of around 110 MB/s reads each. This is a RAID 1 of 2 disks, so assuming it could read in parallel from each disk to have a potential of double that right?
Theoretically, yes. But from what I've read (posts on other forums), a single file is only read from one disk. A second file copy should be read from the second disk if it is done at the same time. But this is not something I've tested.
chadwixk wrote:
But Why, since it is a direct link over USB and sourced from 2 disks in RAID 1, was the speed not near the theorhetical 220 MB/s (read from 2 disks in parallel at 110 MB/s each)? I tried copying multiple files to try to take advantage of this, but I guess these copy commands are sequential in nature...I'll have to look to see how you could actually copy 2 files in parallel to test this aspect further.
Use two ssh sessions to test this.
chadwixk wrote:
DESTINATION:
A usb NVME drive to the rear USB 3.0 port. It is a Samsung 970 Evo SSD with write speeds of around 2,500 MB/s .
But USB 3.0 is ~600 MB/s, so it would be the write bottleneck. Or possibly the NVME adapter you used???
Did you measure the read and write speeds on the RN102 using dd? Might be worth doing (for both source and destination).
FWIW, the NVME formatting might also be relevant here. NTFS is likely slower than ext.
chadwixk wrote:
Windows drag and drop...isn't this a copy over the network, to the client and then back? NAS > Windows Client > NAS > USB Port > NVME SSD?
Yes. As is robocopy.
chadwixk wrote:
rsync -hvrPt --info=progress2 --ignore-existing "/data/Videos/2022/12/2022-12-20-063917.mkv" "/media/USB_HDD_7/Videos/2022/12/"No one ever accused rsync of being fast. It also verifies, which will of course make quite a difference in transfer times. But might be worth the performance penalty.
If you add --checksum-choice="None", it should be somewhat faster.
chadwixk wrote:
TEST RESULTS:
ssh > cp: 18 MB/scp -r -u -v "/data/Videos/2022/12/2022-12-20-063917.mkv" "/media/USB_HDD_7/Videos/2022/12/"
This one is surprising. It might be worth copying to /dev/null to test the read speed (in addition using dd to test read and write speeds of both devices).
- chadwixkAspirant
Thank you StephenB for your time in responding and helping me learn and investigate this.
<
I see how to quote you're entire reply, but I don't know how to break up the quote to then insert my replies...curious how if you don't mind...so bear with my formatting below to mimic this...well I could use the raw html editing, but that would take a while...and I'm assuming there is an easier way to do this how you did in your replies
>
The slow CPU and limited memory in the RN102 likely is also a factor.
I'm not a hardware or linux guy (more a microsoft web dev), so not sure if I'm interpreting these properly, but CPU and Mem or not at 100%, but maybe they are effectively at 100%, limiting throughput?
Theoretically, yes. But from what I've read (posts on other forums), a single file is only read from one disk. A second file copy should be read from the second disk if it is done at the same time. But this is not something I've tested.
Tried this, one session running RoboCopy and one running cp, IOSTAT still shows a 20MB/s read and write (in this view CPU also does seem to be pegged).
But USB 3.0 is ~600 MB/s, so it would be the write bottleneck. Or possibly the NVME adapter you used???
True, but we're waaaay less than the 600MB/s bottleneck. The NVME adapter is well doing well over 1,000MB/s from Crystal Disk tests.
Did you measure the read and write speeds on the RN102 using dd? Might be worth doing (for both source and destination).
Looked that up, I'll try after my 2 current copy sessions end.
FWIW, the NVME formatting might also be relevant here. NTFS is likely slower than ext.
True, but I can't imaging that would reduce the 110 MB/s read of the disks down to 1/5. Also doesn't account for the wide range of speeds seen in the test results.
This one is surprising. It might be worth copying to /dev/null to test the read speed (in addition using dd to test read and write speeds of both devices).
This was in response to:
ssh > cp: 18 MB/s
cp -r -u -v "/data/Videos/2022/12/2022-12-20-063917.mkv" "/media/USB_HDD_7/Videos/2022/12/"
Just curious why this one was surprising to you...because it was also ssh and 2.5x the speed of rsync?
To me, the Biggest Surprise is how an over-the-network copy was several factors faster than a direct device copy?!?!? That makes zero sense...in fact opposite a reasonable hypothesis.
- chadwixkAspirant
Actually, I missed the 12% si utilization on the CPU summary in the TOP command pic. So CPU is pegged.
Another interesting thing I see on IOSTAT output is the %utilization of the read HDDs vs the write SSD and also the WAIT on the SSD?
The HDDs show pretty low utilization, and it's % util sort of corresponds with the % of actual to rated read speed...what would be holding this back? CPU/Memory is not designed in this such as to take full advantage of these slow HDDs?
The SSD shows very high utilization when the throughput is way less than capacity. I have no theories as to why this would be. Also note the WAITs for this. No clues on my end.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!