Umm your reply confused me further! :)
Please see below inline.
----- Original Message -----
> From: Amos Jeffries <squid3_at_treenet.co.nz>
> To: squid-users_at_squid-cache.org
>
> On 14/02/2013 10:12 p.m., Amm wrote:
>>
>> I compiled squid using --with-filedescriptors=16384.
>>
>> So do I still need to set ulimit before starting squid?
> Yes. Squid obeys both limits. The smaller of the two will determine how
> many are available for active use.
So in my case the max limit is, 4096 or 1024? (for squid)
>> squidclient gives this:
>>
>> [root_at_localhost ]# squidclient -h 127.0.0.1 mgr:info |grep -i desc
>> File descriptor usage for squid:
>> � � � � � Maximum number of file descriptors:� 16384
>> � � � � � Largest file desc currently in use:� � 888
>> � � � � � Number of file desc currently in use:� 774
>> � � � � � Available number of file descriptors: 15610
>> � � � � � Reserved number of file descriptors:� 100
>>
>> ulimit -H -n gives 4096
>> ulimit -n gives 1024
>>
>> These are standard Fedora settings, I have not made any changes.
If squid obeys the smaller limit shoudn't it report "Available number of file descriptors" to max 4096?
Why is it reporting 15610?
> ... when this proxy reaches the limit for Squid, you will get a message
> about socket errors and FD reserved will jump from 100 to something just
> below that limit to prevent running out of FD in future.
I have SELinux disabled.
I just got this:
2013/02/14 15:07:08 kid1| Attempt to open socket for EUI retrieval failed: (24) Too many open files
2013/02/14 15:07:08 kid1| comm_open: socket failure: (24) Too many open files
2013/02/14 15:07:08 kid1| Reserved FD adjusted from 100 to 15391 due to failures
2013/02/14 15:07:08 kid1| '/usr/share/squid/errors/en-us/ERR_CONNECT_FAIL': (24) Too many open files
2013/02/14 15:07:08 kid1| WARNING: Error Pages Missing Language: en-us
2013/02/14 15:07:08 kid1| WARNING! Your cache is running out of filedescriptors
How to know number of FD open when this error occurred? I want to know if it was 1024 or 4096?
Did squid automatically handle it? Why does it say 15391 instead of something below 4096?
Or 15391 is right and expected and I do not have to set ulimit before squid starts?
�
>> So back to my question:
>> If I am compiling squid with --with-filedescriptors=16384
>> do I need to set ulimit before starting squid?
>>
>> Or does squid automatically set ulimit?
>
> Yes.
Yes was for that "I have to set ulimit before starting squid"
OR
Yes was for that "squid automatically sets ulimit and i do not have to do anything"
> Amos
Thanks for your quick response.
Regards
Amm
Received on Thu Feb 14 2013 - 10:24:10 MST
This archive was generated by hypermail 2.2.0 : Thu Feb 14 2013 - 12:00:04 MST