Re: [squid-users] File Descriptor Issue

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 26 Jun 2014 18:57:03 +1200

On 26/06/2014 11:53 a.m., Matthew Ceroni wrote:
> Amos:
>
> Thanks for the info. I am using workers so that explains why the
> output of mgr:info shows such a high number of file descriptors.
>
> If you don't mind I need some further clarification on the output of
> mgr:info. Just to summarize I have a global nofile limit of 8192 and
> the squid user is set to a soft limit of 4096 and a hard limit of
> 8192.
>
> The output of mgr:info contains a statistic "Largest file desc
> currently in use" (in my case it shows 3956). What exactly is that
> indicating? Would it be safe to assume that at some point in time a
> max of 3956 FD were in use (assuming each open FD is given a
> incrementing number)?

That is exactly what it means. Not just "at some point in time", but
relatively recently since the FD 3956 has not yet finished and closed.

>
> Also, when squid first starts up it lists the Maximum number of file
> descriptors as 65536, but when I get the warning message that my Cache
> is low on FD that value changes to 16384. Why is that?

Given that you said workers I read that as:

  64K = 16K FD-limit for each of 4 workers
(176K being your squid.conf value? or root/system user account imit?)

  16K = 4096 FD-limit for each of 4 workers

Amos
Received on Thu Jun 26 2014 - 06:57:09 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 26 2014 - 12:00:05 MDT