Home » Questions » Computers [ Ask a new question ]

scp a little slow? windows vm ubuntu and mac leopard

scp a little slow? windows vm ubuntu and mac leopard

I am running ubuntu under VMware. I connected my USB drive directly to ubuntu instead of through windows XP and i started transferring files from my mac leopard to ubuntu/usb HD

Asked by: Guest | Views: 181
Total answers/comments: 2
Guest [Entry]

"Your speed is quite similar to speeds I've seen on other 100Mbps networks with SSH. The transfer speed seems to depend alot on OS you are using, and not that much on the available CPU speed. On one network all transfers between PCs running Debian or Ubuntu Linux had 3MB/s speeds, but when I was using SCP on a Mac OS X server, I always got over 6MB/s. Also file transfers from a Xen server (which is running CentOS variant I think) also gave me higher speeds. Only time I've gotten faster transfer speeds with Debian Linux and scp are when I've copied data from one Xen virtual machine to another on the same Xen server, then I would get 20+MB/s speeds.

With Samba shares, you usually can get to 50Mbps or so, and If you want speed easily, I would recommend setting up a FTP server, with that I usually can get 90Mbps easily, even from a Windows machine."
Guest [Entry]

"As Tobu mentioned, SCP is inefficient when copying lots of small files. A common trick is to channel a tar stream through SSH. See: http://www.thingy-ma-jig.co.uk/blog/03-09-2008/using-tar-and-ssh-improve-scp-speeds

You can also bump up the speed a little by using faster ciphers like blowfish. example:

tar czf - /path/files-to-copy | ssh -c blowfish user@remotehos tar xzf - -C /path/to/destination"