I'm running on Ubuntu 18.04 and the rsync command takes a long time to start. Given a file to transfer of 0 byte, it still takes more than 5 seconds to transfer.
Version of rsync: 3.1.2
time rsync rsync://192.168.0.105/small_file test
real 0m5.145s
user 0m0.000s
sys 0m0.003s
I've checked:
- testing different options of rsync
- using another Ubuntu 18.04 with same version of rsync: the transfer takes less than 100ms
- using ssh, ping or scp to test if the network is slow: nothing wrong
- the DNS resolution delay is ok
- ram & cpu are ok
I'm running out of ideas to check and the verbose mode (-v) is not helpfull
Any idea of what the problem could be ? Or how I could debug it ?
Thanks !
-vvv
to see if more debug information shows you where the slowdown happens? Can you try usingssh
as the medium for the sync rather than thersync
protocol itself? – Shadur-don't-feed-the-AI Sep 27 '23 at 09:26rsync
host is attempting a DNS lookup either for logging purposes or to verify a whitelist. – Shadur-don't-feed-the-AI Sep 27 '23 at 09:59-vvv
may provide the same output, but you can probably see between which lines the lag appears, and that might give you some hint. Start by prepending timestamp to yourrsync
commands, see between each lines there's the largest gap, it might direct you to some lead. – aviro Sep 27 '23 at 11:45