Hi Everyone,<br><br>I am seeing a situation similar to : <br><br><a href="http://www.varnish-cache.org/lists/pipermail/varnish-misc/2011-January/005351.html">http://www.varnish-cache.org/lists/pipermail/varnish-misc/2011-January/005351.html</a> (Connections Dropped Under Load)<br>
<a href="http://www.varnish-cache.org/lists/pipermail/varnish-misc/2010-December/005258.html">http://www.varnish-cache.org/lists/pipermail/varnish-misc/2010-December/005258.html</a> (Hanging Connections)<br><br>I have httperf loading a varnish cache with never-expire content. While the load is on, other browser/wget requests to the varnish server get delayed to 10+ seconds. Any ideas what could be happening? ssh doesn't seem to be impacted. So, is it some kind of thread problem?<br>
<br>In production, I see a similar situation with around 1000 req/second load. <br><br>I am running varnishd with the following command line options (as per <a href="http://kristianlyng.wordpress.com/2009/10/19/high-end-varnish-tuning/">http://kristianlyng.wordpress.com/2009/10/19/high-end-varnish-tuning/</a>):<br>
<br>sudo varnishd -f /etc/varnish/default.vcl -s malloc,5G -T <a href="http://127.0.0.1:2000">127.0.0.1:2000</a> -a <a href="http://0.0.0.0:80">0.0.0.0:80</a> -p thread_pools=8 -p thread_pool_min=100 -p thread_pool_max=5000 -p thread_pool_add_delay=2 -p cli_timeout=25 -p session_linger=100 -p lru_interval=20 -t 31536000<br>
<br>I am on Ubuntu Lucid 64 bit Amazon EC2 C1.XLarge with 8 processing units.<br><br>My network sysctl parameters are tuned according to: <a href="http://varnish-cache.org/trac/wiki/Performance">http://varnish-cache.org/trac/wiki/Performance</a><br>
fs.file-max = 360000<br>net.ipv4.ip_local_port_range = 1024 65536<br>net.core.rmem_max = 16777216<br>net.core.wmem_max = 16777216<br>net.ipv4.tcp_rmem = 4096 87380 16777216<br>net.ipv4.tcp_wmem = 4096 65536 16777216<br>net.ipv4.tcp_fin_timeout = 3<br>
net.core.netdev_max_backlog = 30000<br>net.ipv4.tcp_no_metrics_save = 1<br>net.core.somaxconn = 262144<br>net.ipv4.tcp_syncookies = 0<br>net.ipv4.tcp_max_orphans = 262144<br>net.ipv4.tcp_max_syn_backlog = 262144<br>net.ipv4.tcp_synack_retries = 2<br>
net.ipv4.tcp_syn_retries = 2<br><br><br>Any help would be greatly appreciated<br>