<HTML>
<HEAD>
<TITLE>Re: Varnish child killed</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Michal,<BR>
<BR>
Thanks for your advise ! It is kind of drastical though !<BR>
<BR>
We have an other varnish instance in version 2.0.6 which is using memory (hum even if we specified a –sfile ;-) and actually you’re right it’s pretty stable and fast.<BR>
Thus I would be interested in having some feedback from folks running cache on disk file !<BR>
The thing is that the websites behind do get a lot of trafic and have a lot of content as we’re media broadcasters.<BR>
<BR>
The ugly thing is that the servers running varnish instances can not get more than 8G of memory which is clearly not enough. <BR>
<BR>
<BR>
Cheers,<BR>
<BR>
Jef<BR>
<BR>
Le 21/04/11 11:12, « Michal Taborsky » a écrit :<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> </SPAN></FONT><SPAN STYLE='font-size:11pt'><FONT FACE="Tahoma, Verdana, Helvetica, Arial">Hello Jean-Francois,<BR>
<BR>
we have seen similar behavior. You did not specify what platform you use so I assume Linux. After some studying and experimentation my recommendation is:<BR>
a) always make sure varnish uses only memory, never disc, if you expect good performance. So specify the cache size smaller than the available memory you have (some memory should be reserved for other processes and some varnish control structures, we use 14G cache size on 16G box)<BR>
b) use malloc storage type <BR>
<BR>
</FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"> Hope this helps,<BR>
Michal<BR>
<BR>
<BR>
Dne 21.4.2011 10:51, Jean-Francois Laurens napsal(a): <BR>
</FONT></SPAN></FONT><BLOCKQUOTE><FONT SIZE="4"><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"> Varnish child killed Hi there,<BR>
<BR>
We’re run varnish 2.1.5 for some week now and we still do not understand some behavior regarding the shared memory activity.<BR>
We specified a –sfile,/var/lib/varnish/varnish_storage.bin,50G in the configuration but it’s impossible to go higher than 25G used by varnish. Please see the following cacti graph:<BR>
<BR>
<BR>
<BR>
In addition I can see varnish doesn’t seem to be able to handle more than 1 million objects:<BR>
<BR>
<BR>
When the child process get killed, the load of the system was very high:<BR>
Apr 20 21:46:44 server-01-39 varnishd[21087]: Child (5372) not responding to CLI, killing it.<BR>
....<BR>
Apr 20 21:49:57 server-01-39 nrpe[18101]: Command completed with return code 2 and output: CRITICAL -<B> load average: 159.00, 159.32, 77.02</B>|load1=159.000;15.000;30.000;0; load5=159.320;10.000;25.000;0; load15=77.020;5.000;20.000;0;<BR>
....<BR>
Apr 20 21:48:43 server-01-39 varnishd[21087]: Child (5372) not responding to CLI, killing it.<BR>
<BR>
All this makes me believe we have an issue with some kernel parameters that do not allow varnish to handle as many objects as we configured it.<BR>
<BR>
Would anybody have an advice for this problem ?<BR>
<BR>
Jef<BR>
<BR>
</FONT></SPAN></FONT><FONT COLOR="#808080"><FONT FACE="Arial"><SPAN STYLE='font-size:9pt'>Jean-Francois Laurens<BR>
</SPAN><FONT SIZE="4"><SPAN STYLE='font-size:10pt'>Ingénieur Système Unix<BR>
Resources et Développement<BR>
Secteur Backend<BR>
</SPAN></FONT><SPAN STYLE='font-size:9pt'><B>RTS - Radio Télévision Suisse<BR>
</B>Quai Ernest-Ansermet 20 <BR>
Case postale 234 <BR>
CH - 1211 Genève 8<BR>
T +41 (0)58 236 81 63<BR>
<BR>
</SPAN></FONT></FONT><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#808080"><FONT FACE="Arial"><SPAN STYLE='font-size:9pt'>Jean-Francois Laurens<BR>
</SPAN><FONT SIZE="4"><SPAN STYLE='font-size:10pt'>Ingénieur Système Unix<BR>
Resources et Développement<BR>
Secteur Backend<BR>
</SPAN></FONT><SPAN STYLE='font-size:9pt'><B>RTS - Radio Télévision Suisse<BR>
</B>Quai Ernest-Ansermet 20 <BR>
Case postale 234 <BR>
CH - 1211 Genève 8<BR>
T +41 (0)58 236 81 63<BR>
</SPAN></FONT></FONT><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>