Re: [Nolug] Linux network optimizations

From: Brad Bendily <bendily_at_gmail.com>
Date: Tue, 25 Jan 2011 20:34:27 -0600
Message-Id: <F051F9A6-E42A-4F1E-B63E-D7D3DF69BE5B@gmail.com>

Which OS was this?

On Jan 25, 2011, at 8:21 PM, Petri Laihonen <pietu@weblizards.net> wrote:

> 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/27/11 EST