<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 7, 2018 at 11:26 AM, Amos Jeffries <span dir="ltr"><<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 07/08/18 19:45, Alex K wrote:<br>
> Hi all,<br>
> <br>
> I observed the following warning at squid cache logs:<br>
> <br>
> WARNING! Your cache is running out of filedescriptors<br>
> <br>
> Googling around I tried to increase the default file descriptors of the<br>
> system (I am runnign Debian9 x64 bit), by setting at /etc/sysctl.conf:<br>
> <br>
</span>...<br>
<span class="gmail-">> <br>
> I am running a compiled version 3.5.23.<br>
> <br>
> I am not sure I have done the correct steps or if I need to tweak the<br>
> ulimits also.<br>
> Any experience from your side?<br>
<br>
</span>The init script installed with Squid 3.x on Debian sets the limit to 64K<br>
file descriptors. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
What is Squid startup logging for file descriptors available?<br>
 Probably in the system /var/log/messages log, if not cache.log.<br></blockquote><div> </div><div>After having set the parameter at squid.conf I get: <br></div><div><br></div><div><span style="font-family:monospace,monospace">With 65535 file descriptors available</span></div><div><br></div><div>Without settings it I get: <br></div><div><br></div><div><span style="font-family:monospace,monospace">With 4096 file descriptors available</span></div><div><br></div><div>Which seems to be the value I have set at /etc/systemd/system.conf and /etc/systemd/user.conf: <br></div><div><br></div><div><span style="font-family:monospace,monospace">DefaultLimitNOFILE=4096</span><br></div><div><br></div><div>Setting such values at /etc/security/limits.conf as below, doesn't seem to affect anything:<br></div><div><br></div><div><span style="font-family:monospace,monospace">proxy            soft    nofile          4096<br>proxy            hard    nofile          1048576</span><br></div><div><br></div><div>Without settings any limits I get: <br></div><div><br></div><div><div><span style="font-family:monospace,monospace">With 1024 file descriptors available</span></div></div><div><br></div><div>which seems to be reflecting the default value reported from ulimit -a. <br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Amos<br>
______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
</blockquote></div><br></div></div>