net-ssh / net-scp

Pure Ruby implementation of the SCP protocol
http://github.com/delano/net-scp
MIT License
152 stars 62 forks source link

Slow thoughput problem #46

Closed arthurzenika closed 1 year ago

arthurzenika commented 5 years ago

When using net-scp in the use case of https://github.com/test-kitchen/kitchen-ec2, I'm trying to upload 100MB to an AWS machine over a link that can upload this amount in a few minutes, it takes ages and trickles the data at very low rates.

I've read https://stackoverflow.com/questions/4208603/performance-issues-with-ruby-and-netscp-transfers-sockets but I don't know if this is still a problem or if there is a fix.

arthurzenika commented 4 years ago

Bump ? I'm going to have to find a way to ship my files using rsync or another channel... Am I the only one with this problem!?

zrice57 commented 4 years ago

I've been experiencing the same issue. Between 2 EC2 instances a 1Gb file transfer hits about 1.5Mbps through net-scp. If I use the shell's scp command it hits > 400Mbps.

My use of this gem is wrapped by https://github.com/capistrano/sshkit . So I can easily resort to running shell scp commands for now.

mfazekas commented 4 years ago

To investigate need concrete versions (net-scp, net-ssh), and algs used.

There were significant improvements if ctr was used for example: https://github.com/net-ssh/net-ssh/pull/570

mfazekas commented 1 year ago

Closing issue as stale