Slow upload speed over SFTP

English support forum

Moderators: white, Hacker, petermad, Stefan2

peter35
Junior Member
Junior Member
Posts: 23
Joined: 2017-09-04, 13:40 UTC

Slow upload speed over SFTP

Post by *peter35 »

I installed the sftp plugin but the upload speed is very slow. Why is that? If i upload the same files with WinSCP the speed is faster.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

I installed the sftp plugin
Which one?
SFTP plugin 1.4.67.4 of Stefan "Bebbo" Franke
SFTP plugin 1.4.2 stable of Christian Ghisler
SFTP plugin 1.4.3 beta of Christian Ghisler

If it is one of Christians then you may enable option "Use scp for transfers".
#5767 Personal license
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Also: What do you mean by "slow" exactly? Where is the SFTP server located (in your LAN or somewhere on the internet)? Did you compare transfer/connection settings in both TC and WinSCP?

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
peter35
Junior Member
Junior Member
Posts: 23
Joined: 2017-09-04, 13:40 UTC

Post by *peter35 »

sqa_wizard wrote:
I installed the sftp plugin
Which one?
SFTP plugin 1.4.67.4 of Stefan "Bebbo" Franke
SFTP plugin 1.4.2 stable of Christian Ghisler
SFTP plugin 1.4.3 beta of Christian Ghisler

If it is one of Christians then you may enable option "Use scp for transfers".
I am using this plugin http://www.ghisler.ch/board/viewtopic.php?t=19994&postdays=0&postorder=asc&start=0

I tried with the option 'use scp for transfer' enabled' but no difference in the speed.
peter35
Junior Member
Junior Member
Posts: 23
Joined: 2017-09-04, 13:40 UTC

Post by *peter35 »

Dalai wrote:Also: What do you mean by "slow" exactly? Where is the SFTP server located (in your LAN or somewhere on the internet)? Did you compare transfer/connection settings in both TC and WinSCP?

Regards
Dalai
It's a remoter server, and the speed is about 100 kilobytes/s, when with WinSCP is about 400 kilobytes/s.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

What about the connection settings? In which direction are you transferring (down- or upload, from or to the server)? Which DLLs are you using for the plugin, if any? What OS are you using (version, architecture)?

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
peter35
Junior Member
Junior Member
Posts: 23
Joined: 2017-09-04, 13:40 UTC

Post by *peter35 »

I have Windows 7 x64 and this is the upload speed. I have these .dll files in the sftp plugin folder: libeay32.dll, libssh2.dll.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Regarding the DLLs I meant which version of them do you have? Since you didn't say that you have zlib1.dll I assume that your DLLs are rather old. And you still didn't say anything about the connection settings. Please give more details.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
peter35
Junior Member
Junior Member
Posts: 23
Joined: 2017-09-04, 13:40 UTC

Post by *peter35 »

I don't know which version the .dll's are, i don't know how to check the version. But i have zlib1.dll in the plugin folder. I just downloaded the plugin, then click on the zip file and installed it.
This is the connection settings:
Image: https://i.imgur.com/MWMAhso.jpg
As i said this is the upload speed to remote server, a namecheap server, but i also tried with LAN connection to my android tablet and the speed was the same.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, please try the option "Use scp for transfers". It is much faster because the data is uploaded in one stream. The standard SFTP method copies the data in small blocks, and waits for the confirmation for each. This is a general design flaw of SFTP.
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

peter35 wrote:I don't know which version the .dll's are, i don't know how to check the version. But i have zlib1.dll in the plugin folder. I just downloaded the plugin, then click on the zip file and installed it.
And where exactly did you download the DLLs?
This is the connection settings:
Image: https://i.imgur.com/MWMAhso.jpg
OK, and how are your settings in WinSCP?

I'm getting these speeds within a LAN:
  • about 16 MiB/s when transferring from XP x64 to Ubuntu 14.04 with SCP for transfers enabled, and about 8 MiB/s with SCP disabled.
  • about 30 MiB/s when transferring from Win7 x64 to Ubuntu 14.04 with SCP enabled, and about 13 MiB/s with SCP disabled
Not enough to saturate a GBit connection, but it should suffice for transfers to an external server.

You should als try with a disabled virus scanner or something.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
peter35
Junior Member
Junior Member
Posts: 23
Joined: 2017-09-04, 13:40 UTC

Post by *peter35 »

With SCP enabled there is not much of improvement, about 150 kbytes/s. The settings for the WinSCP are the default settings, and the speed is about 400 kbytes/s. If these are the speeds on your system there is probably something wrong on my system.

I downloaded the .dll files from the plugin download section. I get the files from this archive - curl-7.40.0-devel-mingw64.7z.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

OK, the DLLs are fine, they're the current ones although version 7.40 is 2.5 years old now...

Do you have another system you could test on? Can you try the transfer in Windows safe mode (with network obviously)? This would rule out any background processes, anti-virus/malware software and so on.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
peter35
Junior Member
Junior Member
Posts: 23
Joined: 2017-09-04, 13:40 UTC

Post by *peter35 »

I tested the upload speed in Windows safe mode with networking but no change.
But i have Linux Mint on virtualbox and i downloaded Filezilla and setup sftp connection to the same remote server and the upload speed went above 1 Mb/s when i tested it, so i guess the problem is somewhere on my Windows system.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

peter35 wrote:[...] so i guess the problem is somewhere on my Windows system.
Seems so, yes. Did you use some kind of network/internet tweaking software sometime in the past?

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply