[Bug 7120] Variable bandwidth limit .. bwlimit
L A Walsh
rsync at tlinx.org
Sat Mar 18 20:41:06 UTC 2017
samba-bugs at samba.org wrote:
> It seems that pv is waiting for data from rsync, and rsync is waiting for data
> too (stuck in select()) and not closing the input to pv. So it's a deadlock.
> Same happens when you substitute pv with something else (like dd). It seems
> that those commands just don't behave like rsync expects them to.
Would a use of "stdbuf" (coreutils) help? It allows one to
change the input and/or output buffering of the tools to
from full buffered to line-buffered to unbuffered for tools
normally connected via a pipe.
> Haven't found a workaround short of killing everything:
> export RSYNC_RSH="sh -c 'pv -qL10k | ssh \"\$@\" | (pv -qL11k; kill \$\$)' ssh"
> kill is not a solution I'd be happy with. But I haven't found another.
Maybe a suspend/continue would be more gentle than killing things?
More information about the rsync