Some time back, I was with the impression Linux has top performing network
stack, whereas winblows did not.
It turns out the default networking does not seem to be so good after all.
I was researching the reasons why SCP transfers get stalled and found few
lines to be added to /etc/sysctl.conf file. After adding the lines and
"restarting" the sysctl, my SCP transfer speeds increased from 300KB/s to
1.6MB/s. Quite a big difference for networking system which was supposed to
be top notch from the get-go.
Sharing the wealth....
I added these to the bottom of /etc/sysctl.conf file.
net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1
then restarted it by
~$ sudo /sbin/sysctl -p
Voila.....
P
___________________
Nolug mailing list
nolug@nolug.org
Received on 01/25/11
This archive was generated by hypermail 2.2.0 : 01/26/11 EST