RsyncProject / rsync

An open source utility that provides fast incremental file transfer. It also has useful features for backup and restore operations among many other use cases.
https://rsync.samba.org
Other
2.83k stars 331 forks source link

Rsync --bwlimit not working when use -z #136

Open Zhongyl1994 opened 3 years ago

Zhongyl1994 commented 3 years ago

I use rsync to transfer large data from host to another. The source path and destination path are mounted with nfs.

I want to use --bwlimit to limit the bandwidth, but I found that when the parameter -z is used, --bwlimit seems to not work.

like this:

$ rsync --progress -lptgoD -z -HXSR --bwlimit=1024 --numeric-ids -r /source_dir/ /dest_dir/

sending incremental file list
./
xxx/
xxx/file1
    2,943,688,704 100% 7.87MB/s 0:05:56(xfr#1, to-chk=1/4)
xxx/file2
    2.939,400,192 100% 7.85MB/s 0:05:56(xfr#2, to-chk=0/4)
sent 720,566,933bytes received 65bytes 1,011,322,10 bytes/sec
total size is 5,883,088,896 speedup is 8.16

during tansfer data, use iotop and nfsiostat-systat tools to monitor network bandwidth, all arrounds 5MB/s~10MB/s. So what wrong

niladam commented 3 years ago

Strangely, i'm also affected by this. However, i didn't see anywhere in the docs/manual about this. I wonder if this is the intended usage or is this a bug ?

@WayneD how could i help with this ?