11 ms·
Anecdotally, and not necessarily protocol but current implementation on my Debian boxes… When copying a large number of small files rsync over ssh is much fast
by jws 7y ago
Anecdotally, and not necessarily protocol but current implementation on my Debian boxes…
When copying a large number of small files rsync over ssh is much faster.
- jabl 7y agoModern rsync (err, 3.0+, so maybe not that modern any longer) can scan the directory tree concurrently with sending the files. (I'm not sure how it's done, presumably interleaving readdir() calls with non-blocking sendfile, allowing page cache prefetching as well as the actual sending to be done in parallel by the kernel.)
- snagglegaggle 7y agoDefinitely, but mostly due to compression and change tracking. The canonical replacement for scp is sftp which is to me a nonstarter, I'm either using scp in code or for single files, or rsync for a lot of files. I would use rsync everywhere, but I need to make up a good alias, it needs too many flags by default.