<div dir="ltr">This is usually what I use. You will also want to disable nf_conntrack for iptables<br><br>echo &#39;* - nofile 65000&#39; &gt;&gt; /etc/security/limits.conf<br>echo &#39;* - nproc unlimited&#39; &gt; /etc/security/limits.d/90-nproc.conf<br>
echo &quot;net.ipv4.ip_local_port_range=1024 65000&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;net.ipv4.tcp_tw_reuse=1&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;net.ipv4.tcp_fin_timeout=15&quot; &gt;&gt; /etc/sysctl.conf<br>
echo &quot;net.core.netdev_max_backlog=4096&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;net.core.rmem_max=16777216&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;net.core.somaxconn=4096&quot; &gt;&gt; /etc/sysctl.conf<br>
echo &quot;net.core.wmem_max=16777216&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;net.ipv4.tcp_max_syn_backlog=20480&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;net.ipv4.tcp_max_tw_buckets=400000&quot; &gt;&gt; /etc/sysctl.conf<br>
echo &quot;net.ipv4.tcp_no_metrics_save=1&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;net.ipv4.tcp_rmem=4096 87380 16777216&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;net.ipv4.tcp_syn_retries=2&quot; &gt;&gt; /etc/sysctl.conf<br>
echo &quot;net.ipv4.tcp_synack_retries=2&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;net.ipv4.tcp_wmem=4096 65536 16777216&quot; &gt;&gt; /etc/sysctl.conf<br>echo &quot;vm.min_free_kbytes=65536&quot; &gt;&gt; /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">&lt;<a href="mailto:leamhall@gmail.com" target="_blank">leamhall@gmail.com</a>&gt;</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&#39;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>