Linux – why is scp faster than rsync

linuxrsyncscp

I always got the impression that rsync should be at least as fast as scp.
But here I have a problem. When I use rsync -avr to copy data from the remote machine, I get something like 11 mb/s. If I use scp on the same file, I get 28 mb/s.

How come? It is a directiory with many files, but the largest one is a single 1 GB file. I mean, something is wrong with the connection, it should be 1 GBit and I only get ~300 mbit, but still, its weird that rsync is so much slower here…

Any suggestions?
Thx.

Best Answer

One difference between scp and rsync is that rsync verifies transfered files whereas scp doesn't.

From the rsync manpage:

Note that rsync always verifies that each transferred file was correctly reconstructed on the receiving side by checking a whole-file checksum that is generated as the file is transferred, but that automatic after-the-transfer verification has nothing to do with this option’s before-the-transfer "Does this file need to be updated?" check.

So this could be one source for a performance difference.

Related Question