Bug? Barage of hits leads to failure creating worker threads / stats tracking

Ray Barnes tical.net at gmail.com
Tue Apr 14 20:31:31 CEST 2009


Thanks for the reply.  With those settings, same result:

         192  N worker threads
         284  N worker threads created
          21  N worker threads not created
Again, the issue is apparently that the _operating system_ does not let me
create more than 300ish threads.

-Ray



On Tue, Apr 14, 2009 at 2:19 PM, Rafael Umann <rafael.umann at terra.com.br>wrote:

>
> What about the cache size? have you decresead it?
>
> Try running varnish with:
>
>  # varnishd -f /etc/varnish/default.vcl \
>              -a 0.0.0.0:80 <http://0.0.0.0/> \
>              -s file,/var/lib/varnish/varnish_storage.bin,50M \
>              -T 0.0.0.0:6082 \
>              -u varnish \
>              -g varnish \
>              -w 500,500,120 \
>              -p lru_interval=900 \
>              -p thread_pools=1 \
>              -P /var/run/varnish/varnish.pid \
>              -F"
>
> []s,
>
>
>
>   On Apr 13, 2009, at 4:32 PM, Ray Barnes wrote:
>
>   On Mon, Apr 13, 2009 at 3:16 PM, Rafael Umann <rafael.umann at terra.com.br
> > wrote:
>
>> 32 bits restrict you to use more than ~2.5gb of ram.
>>
>
>
> 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?
>
>
>>
>> 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:
>>
>> # vi /etc/security/limits.conf
>>
>>  * soft stack 512
>> * hard stack 512
>>
>> (use 512kb of mem per thread)
>> or
>>
>>  * soft stack 1024
>> * hard stack 1024
>>
>> (use 1mb of mem per thread)
>>
>
> I tried 512kb, then logging off and back on, then starting varnish with 800
> threads being tried.  Same result:
>
>          356  N worker threads
>          356  N worker threads created
>          181  N worker threads not created
> 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.
>
> -Ray
>
>
>
>  ------------------------------
> E-mail verificado pelo Terra Anti-Spam.
> Para classificar esta mensagem como spam ou não spam, clique aqui<http://mail.terra.com.br/cgi-bin/reportspam.cgi?+_d=SCY1ODAyNDQ3I3Blcm0hdGVycmEmMSwxMjM5NjUxNjE1LjUxNzI4NS4yMzU0Mi5wcmVzdG9uLnRlcnJhLmNvbSw2MzY0TerraMail>
> .
> Verifique periodicamente a pasta Spam para garantir que apenas mensagens
> indesejadas sejam classificadas como Spam.
> ------------------------------
> Esta mensagem foi verificada pelo E-mail Protegido Terra.
> Atualizado em 12/04/2009
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20090414/ac03c9fc/attachment-0001.html>


More information about the varnish-dev mailing list