<div dir="ltr">This is usually what I use. You will also want to disable nf_conntrack for iptables<br><br>echo '* - nofile 65000' >> /etc/security/limits.conf<br>echo '* - nproc unlimited' > /etc/security/limits.d/90-nproc.conf<br>
echo "net.ipv4.ip_local_port_range=1024 65000" >> /etc/sysctl.conf<br>echo "net.ipv4.tcp_tw_reuse=1" >> /etc/sysctl.conf<br>echo "net.ipv4.tcp_fin_timeout=15" >> /etc/sysctl.conf<br>
echo "net.core.netdev_max_backlog=4096" >> /etc/sysctl.conf<br>echo "net.core.rmem_max=16777216" >> /etc/sysctl.conf<br>echo "net.core.somaxconn=4096" >> /etc/sysctl.conf<br>
echo "net.core.wmem_max=16777216" >> /etc/sysctl.conf<br>echo "net.ipv4.tcp_max_syn_backlog=20480" >> /etc/sysctl.conf<br>echo "net.ipv4.tcp_max_tw_buckets=400000" >> /etc/sysctl.conf<br>
echo "net.ipv4.tcp_no_metrics_save=1" >> /etc/sysctl.conf<br>echo "net.ipv4.tcp_rmem=4096 87380 16777216" >> /etc/sysctl.conf<br>echo "net.ipv4.tcp_syn_retries=2" >> /etc/sysctl.conf<br>
echo "net.ipv4.tcp_synack_retries=2" >> /etc/sysctl.conf<br>echo "net.ipv4.tcp_wmem=4096 65536 16777216" >> /etc/sysctl.conf<br>echo "vm.min_free_kbytes=65536" >> /etc/sysctl.conf<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 5, 2013 at 3:33 PM, leam hall <span dir="ltr"><<a href="mailto:leamhall@gmail.com" target="_blank">leamhall@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Any good things to look at for tuning TCP on a machine with a lot of incoming connections? So far I'm looking at<br>
<br>net.ipv4.tcp_keepalive_time<br><br clear="all"><div>Any other recommendations?<br><br>
Thanks!<span class="HOEnZb"><font color="#888888"><br><br>Leam<br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- <br><div><a href="http://leamhall.blogspot.com/" target="_blank">Mind on a Mission</a></div>
</div></font></span></div>
<br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div><br></div>