[CentOS] Bandwidth optimisation

James A. Peltier jpeltier at cs.sfu.ca
Mon Nov 5 04:13:23 UTC 2007


Barry Brimer wrote:
> 
> 
> 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
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

You may want to consider adding QoS to ACKs.  Giving ACKs higher 
priority will allow you to better utilize the link by ensuring they 
don't get overrun with other traffic.  I do this on my OpenBSD firewall 
with great success.

-- 
James A. Peltier
Technical Director, RHCE
SCIRF | GrUVi @ Simon Fraser University - Burnaby Campus
Phone   : 778-782-3610
Fax     : 778-782-3045
Mobile  : 778-840-6434
E-Mail  : jpeltier at cs.sfu.ca
Website : http://gruvi.cs.sfu.ca | http://scirf.cs.sfu.ca
MSN     : subatomic_spam at hotmail.com



More information about the CentOS mailing list