Varnish Memory Consumption

Tollef Fog Heen tfheen at linpro.no
Mon Sep 15 16:14:55 CEST 2008


]] Chaim Keren Tzion 

| > Yes, fairly normal, given that you've given Varnish ~91G to use.  Apart
| > from the crashing, that is.  It shouldn't crash the virtual machine (but
| > then, that's a bug in your kernel rather than Varnish).
| 
| The VM doesn't actually have a kernel panic. It just starts throws
| complaints about swap space to the console and won't allow logins or
| ssh.

Weird; we have not seen memory leaks with mmap.  We have a known leak
with malloc, though.

| > I'd recommend trying a swap partition the same size as the backing file
| > you use today and going with malloc and see if the problem then goes
| > away.
| 
| Actually on the VM the swap file is 2G and the backing file is
| 2.5G. Close, but I will try with a smaller backing file.

Did it help?

-- 
Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73



More information about the varnish-misc mailing list