<div>Hi Zheng,</div><div><br></div>When you're writing stuff to disk you are increasing pressure on the VM. The VM might try to do something smart and decide it needs a lot more memory for caching the log files you're writing to. That might starve Varnish.<div>
<br></div><div>I would run it again and have Munin or something similar recording what is happening so you'll know.</div><div><br></div><div>Per.<br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 5:31 PM, Zheng Liu <span dir="ltr"><<a href="mailto:huozhe@gmail.com" target="_blank">huozhe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Per,<div><br></div><div>Thanks for the info. I remember I was seeing the ram usage by varnishncsa did not change a lot. I didn't take any screen shot, so I may remember wrong. Let me try it one more time and see what happened. Could it be the log dumping to disk can't keep up with the insertion rate, so varnish has to allocate more for the in-memory logging? Just a guess.</div>
<div><br></div><div>thanks,</div><div>Zheng</div><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 6:46 AM, Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com" target="_blank">perbu@varnish-software.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br><div class="gmail_quote"><div>On Thu, Sep 27, 2012 at 5:47 PM, Zheng Liu <span dir="ltr"><<a href="mailto:huozhe@gmail.com" target="_blank">huozhe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>I tried to use varnishncsa to generate log on disk, so I can have another daemon tail and analyze it. However, when I enable it, I see varnishd starts to use more and more memory. I am using varnish-3.0.3 on Ubuntu 11.10. The box has 190G and I configured varnish to use 160G. Its footprint has been stable at 180G for months. Then after I started varnishncsa, within 5 hours, all the memory was gone and it starts to use swap. I wonder if this is expected behavior, and we are suppose to allow more head room during logging with varnishncsa?</div>
</blockquote><div><br></div></div><div>There have been some reports of a varnishleak in varnishncsa - but in the cases I've seen it's varnishncsa itself which balloons up. Would that be the case here aswell?</div>
</div><span><font color="#888888">
<div><br></div>-- <br><img><div>Per Buer<br>Phone: <a href="tel:%2B47%2021%2098%2092%2061" value="+4721989261" target="_blank">+47 21 98 92 61</a> / Mobile: <a href="tel:%2B47%20958%2039%20117" value="+4795839117" target="_blank">+47 958 39 117</a> / Skype: per.buer<br>
<i>Varnish makes websites fly!</i><div>
<a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>
<br></div></div><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br>
<i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>
<br></div></div><br>
</div>