Why is FileZilla SFTP file transfer max capped at 1.3MiB/sec instead of saturating available bandwidth? rsync and WinSCP are even slowerSpeed up SFTP uploads on high latency network?How to use openssh sftp command with a RSA/DSA key specified from the command lineTransfer large files over the internet from a Linux VPS to Windows machineWinSCP - SCP is working and SFTP is not workingOpenSSH anything like 'internal-sftp' but for SCP?Is it possible to force SFTP rather than allow SCP fallback ?Two factor authentication for SSHCopying over SSH via Putty tools is slower than via WinSCPReplace scp with sftpHow to leave connection to SFTP open, while other bash commands runLoad Testing Scenario for upload/download file to/from sftp server using winscp client on Azure

Why wasn't the Night King naked in S08E03?

What are the advantages of luxury car brands like Acura/Lexus over their sibling non-luxury brands Honda/Toyota?

How do inspiraling black holes get closer?

Understanding trademark infringements in a world where many dictionary words are trademarks?

How should I tell my manager I'm not paying for an optional after work event I'm not going to?

Do I add my skill check modifier to the roll of 15 granted by Glibness?

Why is "breaking the mould" positively connoted?

What exactly are the `size issues' preventing formation of presheaves being a left adjoint to some forgetful functor?

Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?

When two pilots are required for a private aircraft, is it a requirement for the PIC to be ATPL?

Decoupling cap routing on a 4 layer PCB

A factorization game

Upside-Down Pyramid Addition...REVERSED!

Why aren't nationalizations in Russia described as socialist?

Does the 7th major scale note resolve more strongly to the lower tonic (note 1) than the higher tonic (note 8)?

Would glacier 'trees' be plausible?

Should I decline this job offer that requires relocating to an area with high cost of living?

Can my company stop me from working overtime?

Can my 2 children 10 and 12 Travel to the USA on expired American Passports? They are US citizens

Can you Ready a Bard spell to release it after using Battle Magic?

60s/70s science fiction novel where a man (after years of trying) finally succeeds to make a coin levitate by sheer concentration

Find the cheapest shipping option based on item weight

How did the Venus Express detect lightning?

Why does this derived table improve performance?



Why is FileZilla SFTP file transfer max capped at 1.3MiB/sec instead of saturating available bandwidth? rsync and WinSCP are even slower


Speed up SFTP uploads on high latency network?How to use openssh sftp command with a RSA/DSA key specified from the command lineTransfer large files over the internet from a Linux VPS to Windows machineWinSCP - SCP is working and SFTP is not workingOpenSSH anything like 'internal-sftp' but for SCP?Is it possible to force SFTP rather than allow SCP fallback ?Two factor authentication for SSHCopying over SSH via Putty tools is slower than via WinSCPReplace scp with sftpHow to leave connection to SFTP open, while other bash commands runLoad Testing Scenario for upload/download file to/from sftp server using winscp client on Azure






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








5















I'm downloading from a server and downloads are maxing out at 1.3MiB/second with FileZilla but I can start concurrent downloads and they will download at 1.3MiB/second also. So why can't I download just one file at faster than 1.3MB/s and get closer to saturate available bandwidth (~6+MB/s)?



I know that I can use some other SFTP client that supports segmented downloads such as lftp, know of other good ones that are open source?



But I still want to know what is it that limits downloading one file to just 1.3MB/s, is it some technical limitation with TCP and buffers etc or some configuration issue? I checked and for sure there's no traffic throttling enabled at all for FileZilla.



Also I tried rsync and it was worse than FileZilla/SFTP. I also tried WinSCP and it was the slowest regardless of method SCP/SFTP. So at 1.3MB/s constant transfer FileZilla is pretty good compared to the other methods of transfer.



If someone has a good explanation of why transfers peak at 1.3MB/s I'd really like to know, and if its possible to increase this without resorting to using segmented downloading. Server is running OpenSSH 6.7p1 (Debian) client is FileZilla on Windows.



UPDATE: In response to Martin's information (see his answer below) I am adding that ping is 180ms to 190ms pretty constant between server and client that is downloading. Also cpu usage is very low, 2% to 8% max.
I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also.



So could the 180ms delay to the server be a mathematically limiting factor as Martin and Michael touched on a bit? Or could there still be something else to blame such that I can improve the throughput? If not, I'd appreciate if anyone knows any other (like lftp but runs well on Windows) open source downloader that is secure and supports segmented downloading.










share|improve this question



















  • 6





    Look up "bandwidth-delay product".

    – Michael Hampton
    May 24 '15 at 6:18











  • Hi, thanks I'll look that up, please see my reply to Martin and my updated question.

    – htfree
    May 24 '15 at 19:58











  • I switched to FTPS, that helped. also as one user said changing priority of filezilla thread to high helped a bit seems. Perhaps I will try ssh sftp mode again once I setup HPN-SSH ...

    – htfree
    Jul 23 '16 at 3:33











  • HPN-SSH + bdp is the answer. Also see fasterdata.es.net

    – Dan Pritts
    Sep 5 '17 at 20:07

















5















I'm downloading from a server and downloads are maxing out at 1.3MiB/second with FileZilla but I can start concurrent downloads and they will download at 1.3MiB/second also. So why can't I download just one file at faster than 1.3MB/s and get closer to saturate available bandwidth (~6+MB/s)?



I know that I can use some other SFTP client that supports segmented downloads such as lftp, know of other good ones that are open source?



But I still want to know what is it that limits downloading one file to just 1.3MB/s, is it some technical limitation with TCP and buffers etc or some configuration issue? I checked and for sure there's no traffic throttling enabled at all for FileZilla.



Also I tried rsync and it was worse than FileZilla/SFTP. I also tried WinSCP and it was the slowest regardless of method SCP/SFTP. So at 1.3MB/s constant transfer FileZilla is pretty good compared to the other methods of transfer.



If someone has a good explanation of why transfers peak at 1.3MB/s I'd really like to know, and if its possible to increase this without resorting to using segmented downloading. Server is running OpenSSH 6.7p1 (Debian) client is FileZilla on Windows.



UPDATE: In response to Martin's information (see his answer below) I am adding that ping is 180ms to 190ms pretty constant between server and client that is downloading. Also cpu usage is very low, 2% to 8% max.
I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also.



So could the 180ms delay to the server be a mathematically limiting factor as Martin and Michael touched on a bit? Or could there still be something else to blame such that I can improve the throughput? If not, I'd appreciate if anyone knows any other (like lftp but runs well on Windows) open source downloader that is secure and supports segmented downloading.










share|improve this question



















  • 6





    Look up "bandwidth-delay product".

    – Michael Hampton
    May 24 '15 at 6:18











  • Hi, thanks I'll look that up, please see my reply to Martin and my updated question.

    – htfree
    May 24 '15 at 19:58











  • I switched to FTPS, that helped. also as one user said changing priority of filezilla thread to high helped a bit seems. Perhaps I will try ssh sftp mode again once I setup HPN-SSH ...

    – htfree
    Jul 23 '16 at 3:33











  • HPN-SSH + bdp is the answer. Also see fasterdata.es.net

    – Dan Pritts
    Sep 5 '17 at 20:07













5












5








5


4






I'm downloading from a server and downloads are maxing out at 1.3MiB/second with FileZilla but I can start concurrent downloads and they will download at 1.3MiB/second also. So why can't I download just one file at faster than 1.3MB/s and get closer to saturate available bandwidth (~6+MB/s)?



I know that I can use some other SFTP client that supports segmented downloads such as lftp, know of other good ones that are open source?



But I still want to know what is it that limits downloading one file to just 1.3MB/s, is it some technical limitation with TCP and buffers etc or some configuration issue? I checked and for sure there's no traffic throttling enabled at all for FileZilla.



Also I tried rsync and it was worse than FileZilla/SFTP. I also tried WinSCP and it was the slowest regardless of method SCP/SFTP. So at 1.3MB/s constant transfer FileZilla is pretty good compared to the other methods of transfer.



If someone has a good explanation of why transfers peak at 1.3MB/s I'd really like to know, and if its possible to increase this without resorting to using segmented downloading. Server is running OpenSSH 6.7p1 (Debian) client is FileZilla on Windows.



UPDATE: In response to Martin's information (see his answer below) I am adding that ping is 180ms to 190ms pretty constant between server and client that is downloading. Also cpu usage is very low, 2% to 8% max.
I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also.



So could the 180ms delay to the server be a mathematically limiting factor as Martin and Michael touched on a bit? Or could there still be something else to blame such that I can improve the throughput? If not, I'd appreciate if anyone knows any other (like lftp but runs well on Windows) open source downloader that is secure and supports segmented downloading.










share|improve this question
















I'm downloading from a server and downloads are maxing out at 1.3MiB/second with FileZilla but I can start concurrent downloads and they will download at 1.3MiB/second also. So why can't I download just one file at faster than 1.3MB/s and get closer to saturate available bandwidth (~6+MB/s)?



I know that I can use some other SFTP client that supports segmented downloads such as lftp, know of other good ones that are open source?



But I still want to know what is it that limits downloading one file to just 1.3MB/s, is it some technical limitation with TCP and buffers etc or some configuration issue? I checked and for sure there's no traffic throttling enabled at all for FileZilla.



Also I tried rsync and it was worse than FileZilla/SFTP. I also tried WinSCP and it was the slowest regardless of method SCP/SFTP. So at 1.3MB/s constant transfer FileZilla is pretty good compared to the other methods of transfer.



If someone has a good explanation of why transfers peak at 1.3MB/s I'd really like to know, and if its possible to increase this without resorting to using segmented downloading. Server is running OpenSSH 6.7p1 (Debian) client is FileZilla on Windows.



UPDATE: In response to Martin's information (see his answer below) I am adding that ping is 180ms to 190ms pretty constant between server and client that is downloading. Also cpu usage is very low, 2% to 8% max.
I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also.



So could the 180ms delay to the server be a mathematically limiting factor as Martin and Michael touched on a bit? Or could there still be something else to blame such that I can improve the throughput? If not, I'd appreciate if anyone knows any other (like lftp but runs well on Windows) open source downloader that is secure and supports segmented downloading.







ssh rsync sftp scp winscp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 24 '15 at 19:58







htfree

















asked May 24 '15 at 6:12









htfreehtfree

1363616




1363616







  • 6





    Look up "bandwidth-delay product".

    – Michael Hampton
    May 24 '15 at 6:18











  • Hi, thanks I'll look that up, please see my reply to Martin and my updated question.

    – htfree
    May 24 '15 at 19:58











  • I switched to FTPS, that helped. also as one user said changing priority of filezilla thread to high helped a bit seems. Perhaps I will try ssh sftp mode again once I setup HPN-SSH ...

    – htfree
    Jul 23 '16 at 3:33











  • HPN-SSH + bdp is the answer. Also see fasterdata.es.net

    – Dan Pritts
    Sep 5 '17 at 20:07












  • 6





    Look up "bandwidth-delay product".

    – Michael Hampton
    May 24 '15 at 6:18











  • Hi, thanks I'll look that up, please see my reply to Martin and my updated question.

    – htfree
    May 24 '15 at 19:58











  • I switched to FTPS, that helped. also as one user said changing priority of filezilla thread to high helped a bit seems. Perhaps I will try ssh sftp mode again once I setup HPN-SSH ...

    – htfree
    Jul 23 '16 at 3:33











  • HPN-SSH + bdp is the answer. Also see fasterdata.es.net

    – Dan Pritts
    Sep 5 '17 at 20:07







6




6





Look up "bandwidth-delay product".

– Michael Hampton
May 24 '15 at 6:18





Look up "bandwidth-delay product".

– Michael Hampton
May 24 '15 at 6:18













Hi, thanks I'll look that up, please see my reply to Martin and my updated question.

– htfree
May 24 '15 at 19:58





Hi, thanks I'll look that up, please see my reply to Martin and my updated question.

– htfree
May 24 '15 at 19:58













I switched to FTPS, that helped. also as one user said changing priority of filezilla thread to high helped a bit seems. Perhaps I will try ssh sftp mode again once I setup HPN-SSH ...

– htfree
Jul 23 '16 at 3:33





I switched to FTPS, that helped. also as one user said changing priority of filezilla thread to high helped a bit seems. Perhaps I will try ssh sftp mode again once I setup HPN-SSH ...

– htfree
Jul 23 '16 at 3:33













HPN-SSH + bdp is the answer. Also see fasterdata.es.net

– Dan Pritts
Sep 5 '17 at 20:07





HPN-SSH + bdp is the answer. Also see fasterdata.es.net

– Dan Pritts
Sep 5 '17 at 20:07










3 Answers
3






active

oldest

votes


















11














There are three common factors that affect a transfer speed:



  • Bandwidth - An obvious factor that's apparently not your trouble.



  • Network delay/latency - The SFTP is packet oriented-protocol. When downloading, the SFTP client sends a "read" request to the SFTP server, waits for a response, appends returned data to a local file; and repeats, until the end of the file.



    Even if your connection is fast, if the server is far away (or slow), it takes a time for the data to arrive back. If the client spends this time uselessly waiting, your transfer speed will be low.



    Most SFTP clients (including FileZilla and WinSCP) overcome the problem by both requesting a large chunk of the file in each single "read" request and by sending (queuing) multiple "read" requests without waiting for a response to previous. For example WinSCP can request up to 32 chunks for 32 KB each at once, totaling 1 MB (these are defaults). But if there's a big discrepancy between the bandwidth and the network delay, even that 1 MB can be too small to saturate the bandwidth.



    An underlying TCP protocol can suffer a similar problem. So it's not only how the actual SFTP client is efficient, but also how an underlying TCP layer is efficient.



    See also Bandwidth-delay product on Wikipedia.



    I do not think this is your trouble either, at least if you have used the latest version of WinSCP for the tests. There have been some improvements in the recent releases, which allow WinSCP to utilize high-latency connections as efficiently as FileZilla.




  • CPU - The SFTP, being encrypted, is CPU intensive. If you have a relatively slow CPU, comparing to a large bandwidth, the transfer can be capped by your CPU being unable to encrypt (or decrypt in case of the download) the data as fast as your network is capable of transferring them.



    Common SFTP clients cannot distribute the encryption/decryption among CPU cores, so it's actually a capacity of a single CPU core that limits the transfer speed.



    Use the Windows Task manager to see, if one of the cores is utilized to its maximum during the transfer.







share|improve this answer




















  • 2





    1.3 MB/s is not a whole lot, you'd have to either already be under load for other reasons or be on the extreme low end for CPU to be a limiting factor already with that little throughput. Without knowing all the details, I think BDP seems like the most likely candidate.

    – Håkan Lindqvist
    May 24 '15 at 11:08






  • 1





    Thanks for all the info. Also, my total cpu load is going from just 2% to 8% during a transfer, utilizing seems 4 cores. (I have an i7 and with hyperthreading so gives 8) I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also. Ping to the server I'm downloading from is a pretty constant between 180ms to 190ms.

    – htfree
    May 24 '15 at 19:53











  • I would mark as accepted answer after confirmation/affirmation if the bandwidth delay product is the issue due to my 180 to 190ms ping delay.

    – htfree
    May 25 '15 at 21:42











  • I cannot confirm that without seeing a log file. I just tried to show you all the options.

    – Martin Prikryl
    May 26 '15 at 5:15











  • What logfile, I was hoping the additional info such as constant 186ms ping and winscp latest version numbers might shed some more light since I've completely ruled out any CPU bottleneck. So I'm wondering if 180-190ms ping is my limiting factor for the 1.3MiB/s filezilla sftp download or not. I've clicked up your answer as useful but as it stands I can't yet close this question as answered. thanks

    – htfree
    May 27 '15 at 2:01


















2














I had this issue as well.



I Used task manager to set the priority to high.



Now I get up to 5 MiB/s






share|improve this answer























  • I think it helped me a bit also, I also switched to FTPS mode instead of ssh sftp which helps also seems.

    – htfree
    Jul 23 '16 at 3:32


















0














I recently tried on same exact network with windows 10 and perhaps newer version of filezilla and I got up to 7MB/second transfers from the same server! I then tested with RSYNC inside a virtual machine and got 7MB/second also. I am "pretty sure" now that the problem lies with the COMODO firewall I have installed on this Windows 7 system.



Apparently even if you "disable" it, all it does is not enforce rules but it slows down network stack. I have installed/replicated this windows 7 system inside a virtual machine also and I will try to completely "remove" Comodo cis premium (antivirus+firewall) and confirm here. I should also mention on this machine I also noticed erratic intermittent latency pings to some systems on my network where all other systems between that were stable <1ms. So bandwidth delay product info is very good but in my case I was able to get filezilla and rsync both at 7MB/s (which basically saturates my available bandwidth) on another install, same network local and remote.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f694062%2fwhy-is-filezilla-sftp-file-transfer-max-capped-at-1-3mib-sec-instead-of-saturati%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    11














    There are three common factors that affect a transfer speed:



    • Bandwidth - An obvious factor that's apparently not your trouble.



    • Network delay/latency - The SFTP is packet oriented-protocol. When downloading, the SFTP client sends a "read" request to the SFTP server, waits for a response, appends returned data to a local file; and repeats, until the end of the file.



      Even if your connection is fast, if the server is far away (or slow), it takes a time for the data to arrive back. If the client spends this time uselessly waiting, your transfer speed will be low.



      Most SFTP clients (including FileZilla and WinSCP) overcome the problem by both requesting a large chunk of the file in each single "read" request and by sending (queuing) multiple "read" requests without waiting for a response to previous. For example WinSCP can request up to 32 chunks for 32 KB each at once, totaling 1 MB (these are defaults). But if there's a big discrepancy between the bandwidth and the network delay, even that 1 MB can be too small to saturate the bandwidth.



      An underlying TCP protocol can suffer a similar problem. So it's not only how the actual SFTP client is efficient, but also how an underlying TCP layer is efficient.



      See also Bandwidth-delay product on Wikipedia.



      I do not think this is your trouble either, at least if you have used the latest version of WinSCP for the tests. There have been some improvements in the recent releases, which allow WinSCP to utilize high-latency connections as efficiently as FileZilla.




    • CPU - The SFTP, being encrypted, is CPU intensive. If you have a relatively slow CPU, comparing to a large bandwidth, the transfer can be capped by your CPU being unable to encrypt (or decrypt in case of the download) the data as fast as your network is capable of transferring them.



      Common SFTP clients cannot distribute the encryption/decryption among CPU cores, so it's actually a capacity of a single CPU core that limits the transfer speed.



      Use the Windows Task manager to see, if one of the cores is utilized to its maximum during the transfer.







    share|improve this answer




















    • 2





      1.3 MB/s is not a whole lot, you'd have to either already be under load for other reasons or be on the extreme low end for CPU to be a limiting factor already with that little throughput. Without knowing all the details, I think BDP seems like the most likely candidate.

      – Håkan Lindqvist
      May 24 '15 at 11:08






    • 1





      Thanks for all the info. Also, my total cpu load is going from just 2% to 8% during a transfer, utilizing seems 4 cores. (I have an i7 and with hyperthreading so gives 8) I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also. Ping to the server I'm downloading from is a pretty constant between 180ms to 190ms.

      – htfree
      May 24 '15 at 19:53











    • I would mark as accepted answer after confirmation/affirmation if the bandwidth delay product is the issue due to my 180 to 190ms ping delay.

      – htfree
      May 25 '15 at 21:42











    • I cannot confirm that without seeing a log file. I just tried to show you all the options.

      – Martin Prikryl
      May 26 '15 at 5:15











    • What logfile, I was hoping the additional info such as constant 186ms ping and winscp latest version numbers might shed some more light since I've completely ruled out any CPU bottleneck. So I'm wondering if 180-190ms ping is my limiting factor for the 1.3MiB/s filezilla sftp download or not. I've clicked up your answer as useful but as it stands I can't yet close this question as answered. thanks

      – htfree
      May 27 '15 at 2:01















    11














    There are three common factors that affect a transfer speed:



    • Bandwidth - An obvious factor that's apparently not your trouble.



    • Network delay/latency - The SFTP is packet oriented-protocol. When downloading, the SFTP client sends a "read" request to the SFTP server, waits for a response, appends returned data to a local file; and repeats, until the end of the file.



      Even if your connection is fast, if the server is far away (or slow), it takes a time for the data to arrive back. If the client spends this time uselessly waiting, your transfer speed will be low.



      Most SFTP clients (including FileZilla and WinSCP) overcome the problem by both requesting a large chunk of the file in each single "read" request and by sending (queuing) multiple "read" requests without waiting for a response to previous. For example WinSCP can request up to 32 chunks for 32 KB each at once, totaling 1 MB (these are defaults). But if there's a big discrepancy between the bandwidth and the network delay, even that 1 MB can be too small to saturate the bandwidth.



      An underlying TCP protocol can suffer a similar problem. So it's not only how the actual SFTP client is efficient, but also how an underlying TCP layer is efficient.



      See also Bandwidth-delay product on Wikipedia.



      I do not think this is your trouble either, at least if you have used the latest version of WinSCP for the tests. There have been some improvements in the recent releases, which allow WinSCP to utilize high-latency connections as efficiently as FileZilla.




    • CPU - The SFTP, being encrypted, is CPU intensive. If you have a relatively slow CPU, comparing to a large bandwidth, the transfer can be capped by your CPU being unable to encrypt (or decrypt in case of the download) the data as fast as your network is capable of transferring them.



      Common SFTP clients cannot distribute the encryption/decryption among CPU cores, so it's actually a capacity of a single CPU core that limits the transfer speed.



      Use the Windows Task manager to see, if one of the cores is utilized to its maximum during the transfer.







    share|improve this answer




















    • 2





      1.3 MB/s is not a whole lot, you'd have to either already be under load for other reasons or be on the extreme low end for CPU to be a limiting factor already with that little throughput. Without knowing all the details, I think BDP seems like the most likely candidate.

      – Håkan Lindqvist
      May 24 '15 at 11:08






    • 1





      Thanks for all the info. Also, my total cpu load is going from just 2% to 8% during a transfer, utilizing seems 4 cores. (I have an i7 and with hyperthreading so gives 8) I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also. Ping to the server I'm downloading from is a pretty constant between 180ms to 190ms.

      – htfree
      May 24 '15 at 19:53











    • I would mark as accepted answer after confirmation/affirmation if the bandwidth delay product is the issue due to my 180 to 190ms ping delay.

      – htfree
      May 25 '15 at 21:42











    • I cannot confirm that without seeing a log file. I just tried to show you all the options.

      – Martin Prikryl
      May 26 '15 at 5:15











    • What logfile, I was hoping the additional info such as constant 186ms ping and winscp latest version numbers might shed some more light since I've completely ruled out any CPU bottleneck. So I'm wondering if 180-190ms ping is my limiting factor for the 1.3MiB/s filezilla sftp download or not. I've clicked up your answer as useful but as it stands I can't yet close this question as answered. thanks

      – htfree
      May 27 '15 at 2:01













    11












    11








    11







    There are three common factors that affect a transfer speed:



    • Bandwidth - An obvious factor that's apparently not your trouble.



    • Network delay/latency - The SFTP is packet oriented-protocol. When downloading, the SFTP client sends a "read" request to the SFTP server, waits for a response, appends returned data to a local file; and repeats, until the end of the file.



      Even if your connection is fast, if the server is far away (or slow), it takes a time for the data to arrive back. If the client spends this time uselessly waiting, your transfer speed will be low.



      Most SFTP clients (including FileZilla and WinSCP) overcome the problem by both requesting a large chunk of the file in each single "read" request and by sending (queuing) multiple "read" requests without waiting for a response to previous. For example WinSCP can request up to 32 chunks for 32 KB each at once, totaling 1 MB (these are defaults). But if there's a big discrepancy between the bandwidth and the network delay, even that 1 MB can be too small to saturate the bandwidth.



      An underlying TCP protocol can suffer a similar problem. So it's not only how the actual SFTP client is efficient, but also how an underlying TCP layer is efficient.



      See also Bandwidth-delay product on Wikipedia.



      I do not think this is your trouble either, at least if you have used the latest version of WinSCP for the tests. There have been some improvements in the recent releases, which allow WinSCP to utilize high-latency connections as efficiently as FileZilla.




    • CPU - The SFTP, being encrypted, is CPU intensive. If you have a relatively slow CPU, comparing to a large bandwidth, the transfer can be capped by your CPU being unable to encrypt (or decrypt in case of the download) the data as fast as your network is capable of transferring them.



      Common SFTP clients cannot distribute the encryption/decryption among CPU cores, so it's actually a capacity of a single CPU core that limits the transfer speed.



      Use the Windows Task manager to see, if one of the cores is utilized to its maximum during the transfer.







    share|improve this answer















    There are three common factors that affect a transfer speed:



    • Bandwidth - An obvious factor that's apparently not your trouble.



    • Network delay/latency - The SFTP is packet oriented-protocol. When downloading, the SFTP client sends a "read" request to the SFTP server, waits for a response, appends returned data to a local file; and repeats, until the end of the file.



      Even if your connection is fast, if the server is far away (or slow), it takes a time for the data to arrive back. If the client spends this time uselessly waiting, your transfer speed will be low.



      Most SFTP clients (including FileZilla and WinSCP) overcome the problem by both requesting a large chunk of the file in each single "read" request and by sending (queuing) multiple "read" requests without waiting for a response to previous. For example WinSCP can request up to 32 chunks for 32 KB each at once, totaling 1 MB (these are defaults). But if there's a big discrepancy between the bandwidth and the network delay, even that 1 MB can be too small to saturate the bandwidth.



      An underlying TCP protocol can suffer a similar problem. So it's not only how the actual SFTP client is efficient, but also how an underlying TCP layer is efficient.



      See also Bandwidth-delay product on Wikipedia.



      I do not think this is your trouble either, at least if you have used the latest version of WinSCP for the tests. There have been some improvements in the recent releases, which allow WinSCP to utilize high-latency connections as efficiently as FileZilla.




    • CPU - The SFTP, being encrypted, is CPU intensive. If you have a relatively slow CPU, comparing to a large bandwidth, the transfer can be capped by your CPU being unable to encrypt (or decrypt in case of the download) the data as fast as your network is capable of transferring them.



      Common SFTP clients cannot distribute the encryption/decryption among CPU cores, so it's actually a capacity of a single CPU core that limits the transfer speed.



      Use the Windows Task manager to see, if one of the cores is utilized to its maximum during the transfer.








    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jan 18 '18 at 10:37

























    answered May 24 '15 at 7:07









    Martin PrikrylMartin Prikryl

    5,3102559




    5,3102559







    • 2





      1.3 MB/s is not a whole lot, you'd have to either already be under load for other reasons or be on the extreme low end for CPU to be a limiting factor already with that little throughput. Without knowing all the details, I think BDP seems like the most likely candidate.

      – Håkan Lindqvist
      May 24 '15 at 11:08






    • 1





      Thanks for all the info. Also, my total cpu load is going from just 2% to 8% during a transfer, utilizing seems 4 cores. (I have an i7 and with hyperthreading so gives 8) I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also. Ping to the server I'm downloading from is a pretty constant between 180ms to 190ms.

      – htfree
      May 24 '15 at 19:53











    • I would mark as accepted answer after confirmation/affirmation if the bandwidth delay product is the issue due to my 180 to 190ms ping delay.

      – htfree
      May 25 '15 at 21:42











    • I cannot confirm that without seeing a log file. I just tried to show you all the options.

      – Martin Prikryl
      May 26 '15 at 5:15











    • What logfile, I was hoping the additional info such as constant 186ms ping and winscp latest version numbers might shed some more light since I've completely ruled out any CPU bottleneck. So I'm wondering if 180-190ms ping is my limiting factor for the 1.3MiB/s filezilla sftp download or not. I've clicked up your answer as useful but as it stands I can't yet close this question as answered. thanks

      – htfree
      May 27 '15 at 2:01












    • 2





      1.3 MB/s is not a whole lot, you'd have to either already be under load for other reasons or be on the extreme low end for CPU to be a limiting factor already with that little throughput. Without knowing all the details, I think BDP seems like the most likely candidate.

      – Håkan Lindqvist
      May 24 '15 at 11:08






    • 1





      Thanks for all the info. Also, my total cpu load is going from just 2% to 8% during a transfer, utilizing seems 4 cores. (I have an i7 and with hyperthreading so gives 8) I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also. Ping to the server I'm downloading from is a pretty constant between 180ms to 190ms.

      – htfree
      May 24 '15 at 19:53











    • I would mark as accepted answer after confirmation/affirmation if the bandwidth delay product is the issue due to my 180 to 190ms ping delay.

      – htfree
      May 25 '15 at 21:42











    • I cannot confirm that without seeing a log file. I just tried to show you all the options.

      – Martin Prikryl
      May 26 '15 at 5:15











    • What logfile, I was hoping the additional info such as constant 186ms ping and winscp latest version numbers might shed some more light since I've completely ruled out any CPU bottleneck. So I'm wondering if 180-190ms ping is my limiting factor for the 1.3MiB/s filezilla sftp download or not. I've clicked up your answer as useful but as it stands I can't yet close this question as answered. thanks

      – htfree
      May 27 '15 at 2:01







    2




    2





    1.3 MB/s is not a whole lot, you'd have to either already be under load for other reasons or be on the extreme low end for CPU to be a limiting factor already with that little throughput. Without knowing all the details, I think BDP seems like the most likely candidate.

    – Håkan Lindqvist
    May 24 '15 at 11:08





    1.3 MB/s is not a whole lot, you'd have to either already be under load for other reasons or be on the extreme low end for CPU to be a limiting factor already with that little throughput. Without knowing all the details, I think BDP seems like the most likely candidate.

    – Håkan Lindqvist
    May 24 '15 at 11:08




    1




    1





    Thanks for all the info. Also, my total cpu load is going from just 2% to 8% during a transfer, utilizing seems 4 cores. (I have an i7 and with hyperthreading so gives 8) I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also. Ping to the server I'm downloading from is a pretty constant between 180ms to 190ms.

    – htfree
    May 24 '15 at 19:53





    Thanks for all the info. Also, my total cpu load is going from just 2% to 8% during a transfer, utilizing seems 4 cores. (I have an i7 and with hyperthreading so gives 8) I tried with latest version winscp 5.73 and with sftp mode I got 555kb/s and about 805kb/s max with scp mode. Whereas if I start a secondary concurrent transfer in Filezilla I get constant 1.3MiB/s for it also. Ping to the server I'm downloading from is a pretty constant between 180ms to 190ms.

    – htfree
    May 24 '15 at 19:53













    I would mark as accepted answer after confirmation/affirmation if the bandwidth delay product is the issue due to my 180 to 190ms ping delay.

    – htfree
    May 25 '15 at 21:42





    I would mark as accepted answer after confirmation/affirmation if the bandwidth delay product is the issue due to my 180 to 190ms ping delay.

    – htfree
    May 25 '15 at 21:42













    I cannot confirm that without seeing a log file. I just tried to show you all the options.

    – Martin Prikryl
    May 26 '15 at 5:15





    I cannot confirm that without seeing a log file. I just tried to show you all the options.

    – Martin Prikryl
    May 26 '15 at 5:15













    What logfile, I was hoping the additional info such as constant 186ms ping and winscp latest version numbers might shed some more light since I've completely ruled out any CPU bottleneck. So I'm wondering if 180-190ms ping is my limiting factor for the 1.3MiB/s filezilla sftp download or not. I've clicked up your answer as useful but as it stands I can't yet close this question as answered. thanks

    – htfree
    May 27 '15 at 2:01





    What logfile, I was hoping the additional info such as constant 186ms ping and winscp latest version numbers might shed some more light since I've completely ruled out any CPU bottleneck. So I'm wondering if 180-190ms ping is my limiting factor for the 1.3MiB/s filezilla sftp download or not. I've clicked up your answer as useful but as it stands I can't yet close this question as answered. thanks

    – htfree
    May 27 '15 at 2:01













    2














    I had this issue as well.



    I Used task manager to set the priority to high.



    Now I get up to 5 MiB/s






    share|improve this answer























    • I think it helped me a bit also, I also switched to FTPS mode instead of ssh sftp which helps also seems.

      – htfree
      Jul 23 '16 at 3:32















    2














    I had this issue as well.



    I Used task manager to set the priority to high.



    Now I get up to 5 MiB/s






    share|improve this answer























    • I think it helped me a bit also, I also switched to FTPS mode instead of ssh sftp which helps also seems.

      – htfree
      Jul 23 '16 at 3:32













    2












    2








    2







    I had this issue as well.



    I Used task manager to set the priority to high.



    Now I get up to 5 MiB/s






    share|improve this answer













    I had this issue as well.



    I Used task manager to set the priority to high.



    Now I get up to 5 MiB/s







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 22 '16 at 12:10









    Dan Warden DonnellyDan Warden Donnelly

    211




    211












    • I think it helped me a bit also, I also switched to FTPS mode instead of ssh sftp which helps also seems.

      – htfree
      Jul 23 '16 at 3:32

















    • I think it helped me a bit also, I also switched to FTPS mode instead of ssh sftp which helps also seems.

      – htfree
      Jul 23 '16 at 3:32
















    I think it helped me a bit also, I also switched to FTPS mode instead of ssh sftp which helps also seems.

    – htfree
    Jul 23 '16 at 3:32





    I think it helped me a bit also, I also switched to FTPS mode instead of ssh sftp which helps also seems.

    – htfree
    Jul 23 '16 at 3:32











    0














    I recently tried on same exact network with windows 10 and perhaps newer version of filezilla and I got up to 7MB/second transfers from the same server! I then tested with RSYNC inside a virtual machine and got 7MB/second also. I am "pretty sure" now that the problem lies with the COMODO firewall I have installed on this Windows 7 system.



    Apparently even if you "disable" it, all it does is not enforce rules but it slows down network stack. I have installed/replicated this windows 7 system inside a virtual machine also and I will try to completely "remove" Comodo cis premium (antivirus+firewall) and confirm here. I should also mention on this machine I also noticed erratic intermittent latency pings to some systems on my network where all other systems between that were stable <1ms. So bandwidth delay product info is very good but in my case I was able to get filezilla and rsync both at 7MB/s (which basically saturates my available bandwidth) on another install, same network local and remote.






    share|improve this answer



























      0














      I recently tried on same exact network with windows 10 and perhaps newer version of filezilla and I got up to 7MB/second transfers from the same server! I then tested with RSYNC inside a virtual machine and got 7MB/second also. I am "pretty sure" now that the problem lies with the COMODO firewall I have installed on this Windows 7 system.



      Apparently even if you "disable" it, all it does is not enforce rules but it slows down network stack. I have installed/replicated this windows 7 system inside a virtual machine also and I will try to completely "remove" Comodo cis premium (antivirus+firewall) and confirm here. I should also mention on this machine I also noticed erratic intermittent latency pings to some systems on my network where all other systems between that were stable <1ms. So bandwidth delay product info is very good but in my case I was able to get filezilla and rsync both at 7MB/s (which basically saturates my available bandwidth) on another install, same network local and remote.






      share|improve this answer

























        0












        0








        0







        I recently tried on same exact network with windows 10 and perhaps newer version of filezilla and I got up to 7MB/second transfers from the same server! I then tested with RSYNC inside a virtual machine and got 7MB/second also. I am "pretty sure" now that the problem lies with the COMODO firewall I have installed on this Windows 7 system.



        Apparently even if you "disable" it, all it does is not enforce rules but it slows down network stack. I have installed/replicated this windows 7 system inside a virtual machine also and I will try to completely "remove" Comodo cis premium (antivirus+firewall) and confirm here. I should also mention on this machine I also noticed erratic intermittent latency pings to some systems on my network where all other systems between that were stable <1ms. So bandwidth delay product info is very good but in my case I was able to get filezilla and rsync both at 7MB/s (which basically saturates my available bandwidth) on another install, same network local and remote.






        share|improve this answer













        I recently tried on same exact network with windows 10 and perhaps newer version of filezilla and I got up to 7MB/second transfers from the same server! I then tested with RSYNC inside a virtual machine and got 7MB/second also. I am "pretty sure" now that the problem lies with the COMODO firewall I have installed on this Windows 7 system.



        Apparently even if you "disable" it, all it does is not enforce rules but it slows down network stack. I have installed/replicated this windows 7 system inside a virtual machine also and I will try to completely "remove" Comodo cis premium (antivirus+firewall) and confirm here. I should also mention on this machine I also noticed erratic intermittent latency pings to some systems on my network where all other systems between that were stable <1ms. So bandwidth delay product info is very good but in my case I was able to get filezilla and rsync both at 7MB/s (which basically saturates my available bandwidth) on another install, same network local and remote.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 25 at 2:50









        htfreehtfree

        1363616




        1363616



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f694062%2fwhy-is-filezilla-sftp-file-transfer-max-capped-at-1-3mib-sec-instead-of-saturati%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company