<div dir="ltr"><div>Thanks Amos, my swap is 32GB, so that's causing the error as you said.<br></div>Which is the better choice: increase the swap size or reduce the cache_mem???<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-04 13:55 GMT-03:00 Amos Jeffries <span dir="ltr"><<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 4/09/2015 11:32 p.m., Jorgeley Junior wrote:<br>
> Hi guys, I suspect my squid stop to serve request after rotate, in the<br>
> morning, after I restarted it, everything goes to normal.<br>
> here is the log:<br>
> 2015/09/04 00:00:01 kid1| storeDirWriteCleanLogs: Starting...<br>
> 2015/09/04 00:00:01 kid1|   Finished.  Wrote 39639 entries.<br>
> 2015/09/04 00:00:01 kid1|   Took 0.01 seconds (5804510.18 entries/sec).<br>
> 2015/09/04 00:00:01 kid1| logfileRotate: stdio:/var/logs/store.log<br>
> 2015/09/04 00:00:01 kid1| Rotate log file stdio:/var/logs/store.log<br>
> 2015/09/04 00:00:01 kid1| logfileRotate: stdio:/var/logs/access.log<br>
> 2015/09/04 00:00:01 kid1| Rotate log file stdio:/var/logs/access.log<br>
> 2015/09/04 00:00:01 kid1| helperOpenServers: Starting 1/10<br>
> 'basic_ncsa_auth' processes<br>
> 2015/09/04 00:00:01 kid1| ipcCreate: fork: (12) Cannot allocate memory<br>
<br>
</span>As you can see Squid uses fork() to spawn its helpers. That means Linux<br>
is going to allocate an N amount of virtual memory equal to the memory<br>
currently being used by Squid.<br>
<span class=""><br>
> 2015/09/04 00:00:01 kid1| WARNING: Cannot run<br>
> '/etc/squid-3.5.6/libexec/basic_ncsa_auth' process.<br>
> 2015/09/04 00:00:55 kid1| WARNING: Memory usage at 67121 MB<br>
> ...<br>
<br>
</span>Which is over 64 GiB.<br>
<br>
Does your machine have 67,121 MB of virtual memory free ?<br>
 it would seem not to.<br>
<br>
<br>
The only workaround for this is to keep Squid cache_mem small enough<br>
that these oprations do not fail when it is fully in-use.<br>
<br>
Amos<br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div style="text-align:left"><font size="4"><b><u><br></u></b></font></div><div style="text-align:left"><font size="4"><b><u><img src="https://lh6.googleusercontent.com/-xODPvbH2piQ/T6RqD0dqXjI/AAAAAAAAAPk/0I8Y3aq0mYM/h120/linuxano+assinatura+e-mail.png"><br></u></b></font></div></div>
</div>