Win Server 2003上的cwRsync性能

我已经在Win Server 2003上testing了cwRsync(3.0)的几种情况。我的情况是在一个源主机上有一个rsync守护进程,总共有大约3GB的源文件。 并且有50个运行rsync命令的dest服务器同时从源服务器同步文件。 所有的服务器都在同一个子网下,并且有千兆网卡。

testing案例1: rsync -av这将做delta转移,但是性能非常糟糕。

 Number of files: 160 Number of files transferred: 49 Total file size: 2993222827 bytes = 2854 MB Total transferred file size: 1847285024 bytes =1761 MB Literal data: 69543644 bytes = 66 MB Matched data: 1777741380 bytes = 1695 MB File list size: 3088 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 1256178 Total bytes received: 70240527 = 67 MB sent 1256178 bytes received 70240527 bytes 182157.21 bytes/sec = 

0.17 MB / s总大小是2993222827加速是41.87

 time elapsed: 385 sec 

testing用例2: rsync -avW消耗更多的带宽,最终获得更好的性能。

 Number of files: 160 Number of files transferred: 49 Total file size: 2993222827 bytes = 2855 MB Total transferred file size: 1847285024 bytes = 1762 MB Literal data: 1847285024 bytes = 1762 MB Matched data: 0 bytes File list size: 3088 File list generation time: 0.032 seconds File list transfer time: 0.000 seconds Total bytes sent: 1306 Total bytes received: 1847516035 sent 1306 bytes received 1847516035 bytes 8085415.06 bytes/sec 7.71 MB/s total size is 2993222827 speedup is 1.62 time elapsed: 228 sec 

有了这个结果。 我甚至想把3GB的文件压缩成1GB的压缩文件,而rsync压缩的文件压缩到目标服务器。 然后在目标服务器上解压。

社区可以提供一些关于如何从cwRsync中获得最佳性能的build议吗? 它似乎没有任何利益的增量转移或增量复制。

如果这些服务器都在同一个局域网上,那么可能不值得rsync招致的开销(因此使用-W时加速)。 当networkingI / O接近或者大于磁盘I / O速度时,使用-W通常更好,所以这并不令人惊讶。

正常的cp运行速度是多less?

您也可能希望查看批处理模式,因为它只会处理一次文件增量,因为它知道目标上的所有文件都是相同的。