就是折腾
阅读 623
最后更新:2022/12/15/ 16:17:01
rsync 数据同步速度慢?
-avzP
WTF?25MB?
[root@Zabbix-4 ~]# time rsync -avzP --delete 1110/ 1111/
sending incremental file list
./
VMware-VMvisor-Installer-6.7.0.update03-15160138.x86_64-DellEMC_Customized-A04.iso
355,411,968 100% 25.63MB/s 0:00:13 (xfr#1, to-chk=0/2)
sent 350,631,396 bytes received 38 bytes 24,181,478.21 bytes/sec
total size is 355,411,968 speedup is 1.01
real 0m13.227s
user 0m14.024s
sys 0m0.463s
删除-z
选项
WHAT?330MB?
[root@Zabbix-4 ~]# time rsync -avP --delete 1110/ 1111/
sending incremental file list
./
VMware-VMvisor-Installer-6.7.0.update03-15160138.x86_64-DellEMC_Customized-A04.iso
355,411,968 100% 336.56MB/s 0:00:01 (xfr#1, to-chk=0/2)
sent 355,498,924 bytes received 38 bytes 236,999,308.00 bytes/sec
total size is 355,411,968 speedup is 1.00
real 0m1.011s
user 0m1.472s
sys 0m0.427s
总结
-z
适用于低带宽网络。如果网络速度够快,传输速度会受CPU限制。
版权申明
本文系作者 @就是折腾 原创发布在就是折腾站点。未经许可,禁止转载。