Skip to contentSkip to conversation

Why do rsync and scp stall when transferring files from host to guest?

Qemu-devel Atoosah 1 participant 1 message Aug 17, 2009

lore
Share & tools
lore

Atoosah

author
#0 lore raw

When I scp or rsync a file several MBs from host Linux machine to guest Linux machine (both CentOS), the transfer starts at several hundred KB/s but slows down pretty quickly until it eventually "stalls". I've found a strange solution which is that if the guest machine pings the host at intervals then it keeps the connection from stalling (with a rate of about 10 to 20 KB/s). pinging works fine, but why does secure transfer have problems with maintaining a stable connection when transfering a single decent sized file?

I've tried rebooting the machine to no avail :-(

scp command used: $scp somefile.gz [email protected]:/directory_path/

rsync command used: $rsync -av somefile.gz --rsh=ssh [email protected]:
/directory_path/

thank you,
Atoosah