SFTP plugin speed to slow, something I can do?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
nirmelamoud
Junior Member
Junior Member
Posts: 76
Joined: 2005-04-20, 11:50 UTC

SFTP plugin speed to slow, something I can do?

Post by *nirmelamoud »

HI,

I compare SFTP plugin and winscp application against my local NAS device that support SFTP,
with total commander I get average of 19MB and with winscp I get 67MB

is it something I can do ? tuning ? upgrade ? etc
so other see the same ?

the ethernet link is 1GB

thanks
(hope I got the right group this time)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: SFTP plugin speed to slow, something I can do?

Post by *ghisler(Author) »

WinSCP seems to use the SCP file transfer protocol when possible. Try enabling SCP in my plugin, it is much faster than the default SFTP file transfer method.
Author of Total Commander
https://www.ghisler.com
remittor
Junior Member
Junior Member
Posts: 49
Joined: 2019-10-02, 07:18 UTC

Re: SFTP plugin speed to slow, something I can do?

Post by *remittor »

I've done performance tests before:
https://www.ghisler.ch/board/viewtopic.php?p=360224#p360224

Now I decided to conduct other tests. For this I builded SFTP plugin from fresh sources:
1) SFTP plugin: https://www.totalcommander.ch/beta/sftpplug_src280b4.zip
2) libssh2 v1.9.0: https://github.com/libssh2/libssh2
3) libressl v3.2.2: https://github.com/EtchDroid/LibreSSL

The tested speed transferred a huge file between two computers (Xeon 5660) that are connected by a 1 Gbit network (Win7 x64 / Ubuntu 14).

Results:

Code: Select all

1) Orig SFTPplug 2.80 b4 x64 (SCP)      10 MB/s
2) New  SFTPplug 2.80 b4 x64 (SCP)      51 MB/s
3) curl.exe -v -k sftp://... (SFTP)     56 MB/s
Download New SFTPplug 2.80 b4: https://www.filesend.jp/En5e0J
Last edited by remittor on 2020-11-03, 12:40 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: SFTP plugin speed to slow, something I can do?

Post by *ghisler(Author) »

1. Did you just build the SFTP plugin, or also the libssh2 yourself?
2. Which compiler and version did you use?
Author of Total Commander
https://www.ghisler.com
remittor
Junior Member
Junior Member
Posts: 49
Joined: 2019-10-02, 07:18 UTC

Re: SFTP plugin speed to slow, something I can do?

Post by *remittor »

ghisler(Author) wrote: 2020-10-26, 15:09 UTC 1. Did you just build the SFTP plugin, or also the libssh2 yourself?
All libraries (libressl + libssh2) and SFTPplug are statically linked into one DLL (wfx64).
Without WinCNG !!!
ghisler(Author) wrote: 2020-10-26, 15:09 UTC 2. Which compiler and version did you use?
MSVC 2015, toolset v140 (Vista)
remittor
Junior Member
Junior Member
Posts: 49
Joined: 2019-10-02, 07:18 UTC

Re: SFTP plugin speed to slow, something I can do?

Post by *remittor »

I find out the cause a very slow speed when using SFTP mode.

After the fix, I got the following speed results:

Code: Select all

1) Orig SFTPplug 2.80 b4  x64 (SFTP)   6 MiB/s
2) Orig SFTPplug 2.80 b4  x64 (SCP)   10 MiB/s
3) New  SFTPplug AllInOne x64 (SFTP)  50 MiB/s
4) New  SFTPplug AllInOne x64 (SCP)   51 MiB/s
5) curl.exe -v -k sftp://...  (SFTP)  56 MiB/s
The source code is here: github.com

Download SFTPplug ALLinONE x64: https://x0.at/mwY.zip
Post Reply