<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>Hi Taylan, exactly the same is happening to us, we already open a ticket with Varnish software. <br><br>Please let me know if you find a solution.<br><br>Thanks<br>Rodrigo<br><br><span><br><span name="x"></span><br><br>------------------<br><br>Rodrigo Benzaquen<br>@rbenzaquen<br><br><span name="x"></span><br></span><br><hr id="zwchr"><b>From: </b>"Taylan Develioglu" <tdevelioglu@ebuddy.com><br><b>To: </b>varnish-misc@varnish-cache.org<br><b>Sent: </b>Viernes, 29 de Octubre 2010 8:37:21<br><b>Subject: </b>varnish 2.1.4 swap and increase in objects:heads.<br><br>Debian Lenny, Linux varnish0 2.6.33.7 #1 SMP Thu Sep 2 15:27:53 CEST<br>2010 x86_64 GNU/Linux<br><br>I have a strange situation on one of our varnish servers.<br><br>We recently raised the expiry on previously uncached content a<br>(Cache-Control: max-age=0, to Cache-Control: max-age=5).<br><br>The number of objects vs. heads increased and the system started<br>swapping (vm.swappiness=0).<br><br>http://lcontent.ebuddy.com/varnish/memory-week.png<br>http://lcontent.ebuddy.com/varnish/varnish_objects-week.png<br>http://lcontent.ebuddy.com/varnish/varnish_expunge-week.png<br><br><br>I don't understand why this is happening, bug maybe ?<br><br>DAEMON_OPTS="-a :27535 \<br> -T localhost:6082 \<br> -f /etc/varnish/default.vcl \<br> -s file,/var/cache/varnish/sda/varnish_storage.bin,135G \<br> -s file,/var/cache/varnish/sdb/varnish_storage.bin,135G \<br> -s file,/var/cache/varnish/sdc/varnish_storage.bin,135G \<br> -s file,/var/cache/varnish/sdd/varnish_storage.bin,135G \<br> -s file,/var/cache/varnish/sde/varnish_storage.bin,135G \<br> -s file,/var/cache/varnish/sdf/varnish_storage.bin,135G \<br> -p thread_pools=4 \<br> -p thread_pool_min=200 \<br> -p thread_pool_max=2400 \<br> -p thread_pool_add_delay=2 \<br> -p lru_interval=20"<br><br><br><br>---vcl---<br>sub vcl_recv {<br> unset req.http.cookie;<br> unset req.http.Authorization;<br><br> if (req.http.host ~ "^.*host.domain.com.*") {<br> set req.http.host = "host.domain.com";<br> }<br><br> if (req.request == "HEAD") {<br> return(pass);<br> }<br><br> if (req.request == "PURGE") {<br> if (!client.ip ~ purge) {<br> error 405 "Not allowed.";<br> }<br> return(lookup);<br> }<br><br> if (req.request == "GET" && req.url == "/monitor") {<br> error 200 "OK.";<br> }<br><br> if (req.backend.healthy) {<br> set req.grace = 30s;<br> } else {<br> set req.grace = 48h;<br> }<br><br>}<br><br> sub vcl_fetch {<br> if (beresp.status == 404 || beresp.status >= 300) {<br> return (pass);<br> }<br> set beresp.grace = 48h;<br><br> }<br><br>sub vcl_hit {<br> if (req.request == "PURGE") {<br> set obj.ttl = 0s;<br> error 200 "Purged.";<br> }<br>}<br><br>sub vcl_miss {<br> if (req.request == "PURGE") {<br> error 404 "Not in cache.";<br> }<br>}<br>---EOF---<br><br><br>_______________________________________________<br>varnish-misc mailing list<br>varnish-misc@varnish-cache.org<br>http://lists.varnish-cache.org/mailman/listinfo/varnish-misc<br></div></body></html>