Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Poor performance SFTPing files #29

Open
valenciaj opened this issue Mar 9, 2020 · 1 comment
Open

Poor performance SFTPing files #29

valenciaj opened this issue Mar 9, 2020 · 1 comment

Comments

@valenciaj
Copy link

I try to copy from my server to local thru ssh2.cr and I observe a poor performance like this:

javier@XXXXXX:~/projects/crystal/backuper$ time ./backuper ~/.ssh/id_rsa awscli-bundle.zip 
11648371 bytes writed.

real	0m27,632s
user	0m0,568s
sys	0m0,204s

There are a better way to copy file than IO.copy from channel to File?

@valenciaj
Copy link
Author

valenciaj commented Mar 9, 2020

Doing a cat on file instead SFTP:

javier@jvdesk:~/projects/crystal/backuper$ time ./backuper ~/.ssh/id_rsa awscli-bundle.zip 
11648371 bytes writed.

real	0m6,496s
user	0m0,403s
sys	0m0,270s

@valenciaj valenciaj changed the title Poor performance SCPing files Poor performance SFTPing files Mar 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant