On 8/03/2013 3:25 a.m., dahanhsi wrote:
> hi all,
> in Squid 2.7, should --with-maxfd not be necessary if I set the
> max_filedescriptors?
>
> thanks
The build-time --with option sets the default value for the 
configuration file directive.
If the --with option is not provided the compiler will set a low number 
usually 1K-4K based on the build machine settings.
PS. Please seriously consider upgrading to a current stable (today that 
is 3.3.2). We are not even porting security vulnerability fixes back to 
2.7 any more.
Amos
> 2013/2/16 dahanhsi:
>> 2013/2/15 Amm:
>>>
>>>> ulimit -n must be run as the same user that the proxy is running.
>>>>
>>>> In debian/ubuntu that user is proxy, and if you type ulimit as root you
>>>> will get a different answer that if you type ulimit logged in as proxy user.
>>>>
>>>> Be sure  to check the ulimit for the right user
>>> Or you can check current limits using:
>>>
>>> /proc/SQUIDPID/limits
>>>
>> Hi,
>>
>> I set my /etc/security/limit.conf:
>> *   soft    nofile  655360
>> *   hard    nofile  655360
>>
>> so user squid also has limit in 655360:
>> # cat /proc/SQUIDPID/limits
>> Limit                     Soft Limit           Hard Limit           Units
>> Max cpu time              unlimited            unlimited            seconds
>> Max file size             unlimited            unlimited            bytes
>> Max data size             unlimited            unlimited            bytes
>> Max stack size            10485760             unlimited            bytes
>> Max core file size        unlimited            unlimited            bytes
>> Max resident set          unlimited            unlimited            bytes
>> Max processes             257742               257742               processes
>> Max open files            655360               655360               files
>> Max locked memory         65536                65536                bytes
>> Max address space         unlimited            unlimited            bytes
>> Max file locks            unlimited            unlimited            locks
>> Max pending signals       257742               257742               signals
>> Max msgqueue size         819200               819200               bytes
>> Max nice priority         0                    0
>> Max realtime priority     0                    0
>> Max realtime timeout      unlimited            unlimited            us
>>
>> and my fd.file-max is 655360 too:
>> # cat /proc/sys/fs/file-max
>> 655360
Received on Thu Mar 07 2013 - 21:02:02 MST
This archive was generated by hypermail 2.2.0 : Fri Mar 08 2013 - 12:00:04 MST