<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
Wat does happen when you limit the amount of memory/space used ? Say
something like <br>
<pre wrap="">-s file,/mnt/varnish/varnish_storage.bin,7G
On 03/02/2011 05:46 PM, Romain LE DISEZ wrote:
<pre wrap="">Hello all,
I'm pretty new to Varnish. I'm deploying it because one of our customer
is going to have a special event and the website is pretty slow (I'm
working for an Internet hosting company). We are expecting more than
1000 requests per seconds.
>From what I read here and there, this should not be a problem for
My problem is that when Varnish is using cache ("deliver", as opposed to
"pass"), the CPU consumption increases drasticaly, also the RAM.
The server is a Xeon QuadCore 2.5Ghz, 8GB of RAM.
With a simple test like this (robots.txt = 300 bytes) :
ab -r -n 1000000 -c 1000 <a class="moz-txt-link-freetext" href="http://www.customer1.com/robots.txt">http://www.customer1.com/robots.txt</a>
CPU consumption is fluctuating between 120% and 160%.
Second point is that Varnish consumes all the memory. Trying to limit
that, I made a tmpfs mountpoint of 3G :
mount -t tmpfs -o size=3g tmpfs /mnt/varnish/
But varnish continues to consume all the memory
My configuration is attached to this mail. Varnish is launched like
/usr/sbin/varnishd -P /var/run/varnish.pid
-u varnish -g varnish
-p thread_pools 4
I also tried to launch it with parameter "-h classic"
It is installed on a Centos 5 up to date, with lastest RPMs provided by
the varnish repository.
If I put a return (pass) in vcl_fetch, everything is fine (except the
backend server, of course). It makes me think, with my little knowledges
of Varnish, that the problem is in the delivering from cache.
Output of "varnishstat -1", when running ab, is attached.
Thanks for your help.
varnish-misc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:firstname.lastname@example.org">email@example.com</a>
<a class="moz-txt-link-freetext" href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></pre>