Re: varnish inside openvz: memory usage issue
Isaac Grant skrev: (..) I (think I) understand the varnish's design, but should varnish eat ALL the memory like that ? Varnish uses the VM to differentiate between what's cached in memory and what is put on disk. If the VM doesn't have any other use for the memory it will give it to varnish. The problem is that you are running VM inside a box (the openvz container) which artificially limits the memory usage. If this was a sane VM it would probably page out a lot of Varnish cache and not run out. I guess this is a bug or a weakness of openvz, first and foremost. You could work around the problem by limiting the cache size. I don't think you will encounter the same problem with Xen or any other virtualization solution where you have a separate VM for your VPS. Per. signature.asc Description: OpenPGP digital signature ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
varnish inside openvz: memory usage issue
Hi, I'm running varnish inside an openvz's container. Recently, I started to see problems with varnish using all available memory. It began to happen when we started delivering bigger files: videos (10 to 50MB). Inside a virtual machine having a total 4GB of virtual memory, varnish will eat all memory in less than one hour, at 20-30 req/s. When all memory is used by varnishd, it stops to deliver content. No more process can fork, the only solution is to kill varnishd from outside the VM.. I use version 1.1.2 and tried 2.0-tp2 with similar result. I tested with a malloc and file storage, same result again. I (think I) understand the varnish's design, but should varnish eat ALL the memory like that ? ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc