[CentOS] Bandwidth optimisation

Mon Nov 5 03:03:59 UTC 2007
Barry Brimer <lists at brimer.org>


On Mon, 5 Nov 2007, Ioannis Vranos wrote:

> OS: CentOS 5.0 x86.
>
> Hi, I am using CentOS 5.0 at home, ADSL ~16 Mbps/~1 Mbps Internet connection 
> and my ping time to my ISP is 160-170 msec.
>
> When downloading something with Firefox, I am getting download speeds of 
> about 100-180 KB/sec (for example when downloading SP2 of XP from MS server).
>
> Are the CentOS networking settings OK for this kind of latency, or do I have 
> to change some settings?

I am using this on my CentOS 4 machine.  I would expect it to work on a 
CentOS 5 machine as well.

Add the following to /etc/sysctl.conf

net.core.rmem_default = 67108864
net.core.wmem_default = 67108864
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.ipv4.tcp_mem = 4096 67108864 67108864
net.ipv4.tcp_rmem = 4096 67108864 67108864
net.ipv4.tcp_wmem = 4096 67108864 67108864

Run sysctl -p

Barry