Unexpected Speed Limit, Linux Only

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
metal450
504 Command not implemented
Posts: 6
Joined: 2013-02-24 18:46

Unexpected Speed Limit, Linux Only

#1 Post by metal450 » 2020-07-21 05:45

I use Filezilla on both Windows & Linux. They both run on the same PC (dual boot), same network, and both copies are configured identically (I actually copied the config files - i.e. sitemanager.xml, filezilla.xml, etc).

On, Windows I get the expected transfer speeds (i.e. 10-12MiB/s) - but on Linux, transfers always seem to behave as though they're capped at exactly 2MiB/s. If I copy 2 files in parallel, they each go 2MiB/s. I'm 100% certain that Settings->Transfers->Speed Limits is disabled ("Enable speed limits" is not checked). Yet for some reason, it behaves as though each connection has exactly a 2MiB/s speed limit. This speed limit is not being applied by the system - i.e. I can download files in Firefox significantly faster than 2MiB/s, so this behavior is unique to Filezilla.

Why would it be limiting transfer speeds like this, when the transfer speed limit is not enabled?

User avatar
botg
Site Admin
Posts: 35539
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Unexpected Speed Limit, Linux Only

#2 Post by botg » 2020-07-21 08:09

Check your sysctl knobs, your memory limits are too small. The defaults for net.ipv4.tcp_mem and net.ipv4.tcp_rmem are not suitable for modern day networks. There's also an odd behavior in the kernel where a request for a large buffer actually decreases the window scale factor from the default.

metal450
504 Command not implemented
Posts: 6
Joined: 2013-02-24 18:46

Re: Unexpected Speed Limit, Linux Only

#3 Post by metal450 » 2020-07-21 08:17

Thanks for the quick reply.

I'm very new to Linux so I'm not familiar with these settings, but a quick Google turned up: https://wwwx.cs.unc.edu/~sparkst/howto/ ... tuning.php. As it sounds like you're already very familiar with this, can you confirm that these are good/suggested values (and the appropriate commands that you had in mind)?:

Code: Select all

sysctl -w net.ipv4.tcp_mem='8388608 8388608 8388608' 
sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608' 

metal450
504 Command not implemented
Posts: 6
Joined: 2013-02-24 18:46

Re: Unexpected Speed Limit, Linux Only

#4 Post by metal450 » 2020-07-21 08:19

...Actually, correction: that article said to "check" (the knobs I presume):

Code: Select all

sudo sysctl -p
However, that actually outputs nothing. So I remain a bit unsure.

User avatar
botg
Site Admin
Posts: 35539
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Unexpected Speed Limit, Linux Only

#5 Post by botg » 2020-07-21 08:34

Use sysctl -a to show current values.

I'd go by increasing the second and third values in the triplet, e.g. by doubling them and then measure performance. If it has improved, repeat the process until there is no further improvement.

metal450
504 Command not implemented
Posts: 6
Joined: 2013-02-24 18:46

Re: Unexpected Speed Limit, Linux Only

#6 Post by metal450 » 2020-07-21 08:36

Perfect, thanks again!

Post Reply