You are not logged in.

#1 2012-06-01 21:47:19

Vena
Member
From: Czech Republic
Registered: 2011-04-23
Posts: 14

FTP/SFTP/FISH (etc) slow file transfer rate over LAN

Hi everyone,

I have a problem with transferring files over my home network that has been bothering me for quite some time.
I have a 802.11n router which should provide me with the transfer rate up to 150 Mbps (afaik). When I download files from the Internet, 3 MB/s data transfer rate is of no problem.
However, when receiving or sending data over LAN, the transfer rate is much slower (1.8 MB/s).
My rough guess is (after reading some papers on this topic) that TCP protocol is causing this (its flow control feature to be exact), since TCP max window size is too small on Linux by default.
So, setting TCP max window size to a greater number should solve this.
I tried putting this:

# increase TCP max buffer size setable using setsockopt()
# 16 MB with a few parallel streams is recommended for most 10G paths
# 32 MB might be needed for some very long end-to-end 10G or 40G paths
net.core.rmem_max = 16777216 
net.core.wmem_max = 16777216 
# increase Linux autotuning TCP buffer limits 
# min, default, and max number of bytes to use
# (only change the 3rd value, and make it 16 MB or more)
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
# recommended to increase this for 10G NICS
net.core.netdev_max_backlog = 30000
# these should be the default, but just to be sure
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1

in /etc/sysctl.conf but to no avail.

So either there is no problem with the max window size setting, or the Linux kernel ignores it (maybe because /proc is no longer supported?).

Thanks for any neat ideas.

Last edited by Vena (2012-06-01 21:48:14)

Offline

#2 2012-06-04 21:21:56

Vena
Member
From: Czech Republic
Registered: 2011-04-23
Posts: 14

Re: FTP/SFTP/FISH (etc) slow file transfer rate over LAN

Bump? No ideas whatsoever?

Offline

Board footer

Powered by FluxBB