<div>Bret,</div>
<div> </div>
<div>Thanks for the reply - that appears to put us (perhaps) a little closer.  I'm assuming for the moment when you said "init script" that you meant the script I use to call up varnish and not the script that boots the box as per /etc/inittab.  When I specify "ulimit -s 1024" it did not change the net result of varnish's inability to create threads:</div>

<div> </div>
<div>         192  N worker threads<br>         424  N worker threads created<br>          62  N worker threads not created<br></div>
<div>However the C program I posted previously in this discussion was able to create 3055 threads.  Hope that helps.</div>
<div> </div>
<div>-Ray</div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Tue, Apr 14, 2009 at 2:57 PM, Bret A. Barker <span dir="ltr"><<a href="mailto:bret@iwin.com">bret@iwin.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Try a "ulimit -s 1024" in your init script. Definitely sounds like a problem with thread stack size defaulting to 8192.<br>
<br>-bret<br>
<div class="im"><br>On Tue, Apr 14, 2009 at 02:31:31PM -0400, Ray Barnes wrote:<br>> Thanks for the reply.  With those settings, same result:<br>><br>>          192  N worker threads<br>>          284  N worker threads created<br>
>           21  N worker threads not created<br>> Again, the issue is apparently that the _operating system_ does not let me<br>> create more than 300ish threads.<br>><br>> -Ray<br>><br>><br>><br>> On Tue, Apr 14, 2009 at 2:19 PM, Rafael Umann <<a href="mailto:rafael.umann@terra.com.br">rafael.umann@terra.com.br</a>>wrote:<br>
><br>> ><br>> > What about the cache size? have you decresead it?<br>> ><br>> > Try running varnish with:<br>> ><br>> >  # varnishd -f /etc/varnish/default.vcl \<br></div>> >              -a <a href="http://0.0.0.0/" target="_blank">0.0.0.0:80</a> <<a href="http://0.0.0.0/" target="_blank">http://0.0.0.0/</a>> \<br>

<div>
<div></div>
<div class="h5">> >              -s file,/var/lib/varnish/varnish_storage.bin,50M \<br>> >              -T <a href="http://0.0.0.0:6082/" target="_blank">0.0.0.0:6082</a> \<br>> >              -u varnish \<br>
> >              -g varnish \<br>> >              -w 500,500,120 \<br>> >              -p lru_interval=900 \<br>> >              -p thread_pools=1 \<br>> >              -P /var/run/varnish/varnish.pid \<br>
> >              -F"<br>> ><br>> > []s,<br>> ><br>> ><br><br></div></div></blockquote></div><br>