<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>What about the cache size? have you decresead it?</div><div><br></div><div>Try running varnish with:</div><div><br></div><div><div># varnishd -f /etc/varnish/default.vcl \</div><div> -a 0.0.0.0:80 \</div><div> -s file,/var/lib/varnish/varnish_storage.bin,50M \</div><div> -T 0.0.0.0:6082 \</div><div> -u varnish \</div><div> -g varnish \</div><div> -w 500,500,120 \</div><div> -p lru_interval=900 \</div><div> -p thread_pools=1 \</div><div> -P /var/run/varnish/varnish.pid \</div><div> -F"</div><div><br></div><div>[]s,</div><div><br></div><div><br></div></div><br><div><div>On Apr 13, 2009, at 4:32 PM, Ray Barnes wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">On Mon, Apr 13, 2009 at 3:16 PM, Rafael Umann <span dir="ltr"><<a href="mailto:rafael.umann@terra.com.br">rafael.umann@terra.com.br</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">32 bits restrict you to use more than ~2.5gb of ram. </div></blockquote> <div> </div> <div> </div> <div>I'm sure you know about PAE kernels, so I'm assuming there is some other artificial limit at 2.5GB, like SHM space maybe?</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"><span></span> <div><br></div> <div>Try decreasing your cache size to see if you can open more threads (allocate memory for threads instead of using it all for cache) and also set the stack size smaller:</div> <div><br></div> <div># vi /etc/security/limits.conf</div> <div><br></div> <div> <div>* soft stack 512</div> <div>* hard stack 512</div> <div><br></div> <div>(use 512kb of mem per thread)</div> <div>or</div> <div><br></div> <div> <div>* soft stack 1024</div> <div>* hard stack 1024</div> <div><br></div> <div>(use 1mb of mem per thread)</div></div></div></div></blockquote> <div> </div> <div>I tried 512kb, then logging off and back on, then starting varnish with 800 threads being tried. Same result:</div> <div> </div> <div> 356 N worker threads<br> 356 N worker threads created<br> 181 N worker threads not created<br></div> <div>Note that 356 + 181 is not 800. It actually did not do this initially, it said 201 worker threads and 840 created (it always does strange things like this when I try creating more threads than the box can handle). And the program that spawns threads, still tells me 383 is the max it can make.</div> <div> </div> <div>-Ray</div> <div> </div></div><br><div> <br class="webkit-block-placeholder"></div><hr> E-mail verificado pelo Terra Anti-Spam.<br> Para classificar esta mensagem como spam ou não spam, <a href="http://mail.terra.com.br/cgi-bin/reportspam.cgi?+_d=SCY1ODAyNDQ3I3Blcm0hdGVycmEmMSwxMjM5NjUxNjE1LjUxNzI4NS4yMzU0Mi5wcmVzdG9uLnRlcnJhLmNvbSw2MzY0TerraMail">clique aqui</a>.<br> Verifique periodicamente a pasta Spam para garantir que apenas mensagens<br> indesejadas sejam classificadas como Spam. <div style="clear: both; "> <br class="webkit-block-placeholder"></div><hr align="left" width="400" size="2"> <font face="trebuchet MS, arial" size="2"> Esta mensagem foi verificada pelo E-mail Protegido Terra.<br> Atualizado em 12/04/2009<br> </font><div><br class="webkit-block-placeholder"></div> </blockquote></div><br></body></html>