Varnish virtual memory usage

Poul-Henning Kamp phk at
Thu Nov 5 01:16:07 CET 2009

In message <003201ca5da9$57ae7e30$070b7a90$@paulissen at>, "Henry Pauliss
en" writes:

>Our load balancer transforms all connections from keep-alive to close.

That is a bad idea really, it increases the amount of work varnish
has to do significantly.

>but 1,610 threads with your  
>1MB stack limit will use 1.7GB of RAM.

It is very important to keep "Virtual Address Space" and "RAM" out
from each other.

The stacks will use 1.7G of VM-space, but certainly not as much
RAM as most of the stacks are not accessed.

The number you care about is the resident size, the _actual_ amount
of RAM used.

Only on 32bit systems is there any reason to be concerned about
VM-space used.

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-misc mailing list