32 bits restrict you to use more than ~2.5gb of ram.

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)

[]s,
Rafael Umann



On Apr 13, 2009, at 3:52 PM, Ray Barnes wrote:

On Mon, Apr 13, 2009 at 1:53 PM, Rafael Umann <rafael.um...@terra.com.br > wrote:
Take a look at you FDs:
(linux)
# cat /proc/sys/fs/file-nr
11730 0 5049800

Varnish works with a limit of 65k file descriptors. Anything above that will be a problem.

http://varnish.projects.linpro.no/changeset/3631

If you are getting 65k FD`S we hit the same problem.

Thanks for the reply.  I'm barely reaching 1300:

[r...@vpsbox-mia ~]# cat /proc/sys/fs/file-nr
1344    0       106235
[r...@vpsbox-mia ~]#



Another tip: if you are running on a 32bits system, thats your problem!

How does 32 bit architecture restrict me from creating > 380 threads per process?

-Ray


E-mail verificado pelo Terra Anti-Spam.
Para classificar esta mensagem como spam ou não spam, clique aqui.
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


_______________________________________________
varnish-dev mailing list
varnish-dev@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-dev

Reply via email to