How to speed up rsync when haveing lots of files
malayter at gmail.com
Wed Mar 4 13:56:59 GMT 2009
On Wed, Mar 4, 2009 at 1:26 AM, Boniforti Flavio <flavio at piramide.ch> wrote:
> Is there any way to know *in advance* if using or not using "-z" could
> be the better solution?
I don't think so. You need to run your tasks on your own hardware and
network to see where the bottlenecks are.
If the task is CPU-bound, turn off or lower compression (-z1) and see
if that improves the total wall-clock transfer time.
If the task is network bound, try turning on compression, or tweaking
--sockopts to increase your TCP send and receive windows on both ends
of the connection.
If the taks is disk-bound, try using --inplace, -W, or any other
options which prevent extra file reads and writes.
More information about the rsync