-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very slow performance #46
Comments
Same here. But what is worse, I think I experienced errors in file lists. Opening one file but getting the content of another file. When I saw that I immediately changed back to 1.5.12.8 that works perfectly... Is 1.5.12.-rc1 designed to work with Dokan 0.7.4 or? It seems to mee that there were recently some changes that would break backwards compatibility in Dokan library... :-S HC |
Yes, 1.5.12.9 rc1 is specifically designed to work with 0.7.4. This is a known issue with basically all pure SFTP implementations, SSH.NET included. Since SSH.NET also implements SCP, and SCP uses a different method for file upload/download, that may significantly improve performance. It should just require changing ReadFile and WriteFile in https://github.com/dimov-cz/win-sshfs/blob/devel/Sshfs/Sshfs/SftpFilesystem.cs to use a ScpClient client call instead of the SFTPFileStream. https://github.com/dimov-cz/win-sshfs/blob/devel/Renci.SshNet/ScpClient.cs |
550 is realy slow, i can get more them 3MB/s download from winsshfs over internet. |
One improvement that only needs changes in the sftp client is to use pipelining, which is described in more detail here https://daniel.haxx.se/blog/2010/12/08/making-sftp-transfers-fast/. Basically instead of waiting for each small packet to be acknowledged before sending the next (which is the real bottleneck in high latency environment) a lot of packets are sent off at once with the sftp client keeping track of their state. This has already been implemented in libraries like libssh/libssh2 but not in SshNet as far as i can see. |
Using Dokan 0.7.4 and have tried win-sshfs release 1.5.12.8 as well as 1.5.12.9-rc1. I am experiencing very poor file copy performance from a mounted sshfs to local disk (max of ~550 kB/s). I have a very high-speed internet connection and no problem with speeds using SFTP standalone (usually get ~10 MB/s). Is this a limitation of the SSH.Net library used here?
The text was updated successfully, but these errors were encountered: