<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I've never seen it do worker threads not created.<div><br></div><div>Are there any limits on number of threads? Can you get rid of -w1440,3000,60 and rely on the -p settings instead?</div><div><br></div><div>Artur</div><div><br><div><div>On Apr 11, 2009, at 12:46 PM, Ray Barnes wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">Thanks for the reply, answers inline:</div> <div class="gmail_quote"> </div> <div class="gmail_quote">On Fri, Apr 10, 2009 at 7:30 PM, John Adams <span dir="ltr"><<a href="mailto:jna@twitter.com">jna@twitter.com</a>></span> wrote:<br> <blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"> <div style="WORD-WRAP: break-word">Something's very wrong here - we've never experienced this before. <div><br></div> <div>Are you stating the server as root or as another user? </div></div></blockquote> <div> </div> <div>As root.</div> <div> </div> <blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"> <div style="WORD-WRAP: break-word"> <div><span></span>Any ulimit or restrictions on # of file descriptors?</div></div></blockquote> <div> </div> <div>I'm manually setting ulimit in the script that starts varnishd, like so:</div> <div> </div> <div>ulimit -n 131072<br>ulimit -l 82000<br></div> <div>Other than that, and having manually set /proc/sys/fs/file-max to 65535, all other settings are default according to RHEL 5 and Linux 2.6.18 with Xen patches and backports maintained by <a href="http://xen.org">xen.org</a> (the aforementioned results were all obtained by running varnish under domain 0). I tried this on another box which is RHEL 4.6 with 2.6.9-55.0.2.ELsmp (so no Xen in this case), and /proc/sys/fs/file-max set to 49984 (using the same script to launch varnish as aforementioned), the result was relatively the same:</div> <div> </div> <div> 290 N worker threads<br> 290 N worker threads created<br> 8705 N worker threads not created<br> 409188 N worker threads limited<br></div> <div>HTH.</div> <div> </div> <div>-Ray</div> <div> </div></div> _______________________________________________<br>varnish-dev mailing list<br><a href="mailto:varnish-dev@projects.linpro.no">varnish-dev@projects.linpro.no</a><br>http://projects.linpro.no/mailman/listinfo/varnish-dev<br></blockquote></div><br></div></body></html>