Dear Yang,
I know the site that you sent to me, but I don't quite understand. First
because my squid comes with my FC2 distribution, I did not compile or
build it. Meaning the following steps doesn't apply to my case?
* Before configuring Squid run "/ulimit -HSn ####/" (where #### is
the number of filedescriptors you need to support). Be sure to run
"make clean" before configure if you have already run configure as
the script might otherwise have cached the prior result.
* Configure, build and install Squid as usual
* Make sure your script for starting Squid contains the above
/ulimit/ command to raise the filedescriptor limit. You may also
need to allow a larger port span for outgoing connections (set in
/proc/sys/net/ipv4/, like in "/echo 1024 32768 >
/proc/sys/net/ipv4/ip_local_port_range/")
Thanks for your advice anyway!
杨明 wrote:
>Yong Bong Fong,您好!
>
> the kernel of OS limite the max fd of application .
>
> 'ulimit' is update this argument .
>
> Perhaps you need rebuild squid if you want support more client (more 1000 client ) .
> you need not update 'max_open_disk_fds' .
>
> more detail : http://www.squid-cache.org/Doc/FAQ/FAQ-11.html#ss11.4
>
>======= 2005-03-17 您在来信中写道:=======
>
>
>
>>Dear all,
>>
>> I have a squid that always start with 1024 file descriptors. But I
>>intend to increase the value because my new proxy will serve around
>>70-80 users. My squid version is squid-2.5.STABLE5-2, kernel is
>>2.6.5-1.358. My squid comes with the distribution therefore I did not do
>>any compiling.
>>
>>According to the mailing list, I read that:
>>
>>
>>
>>>you may try to allocate more file descriptors before
>>>start Squid server. This can be done using "max_open_disk_fds" TAG. In
>>>addition to that you can allocate more file descriptors at the shell
>>>level by using following command.
>>>
>>>"ulimit -HSn 2048"
>>>
>>>
>>>
>>I have set in my squid.conf, max_open_disk_fds 2048 but when I restart
>>squid and check the cache.log it still says "With 1024 file descriptors
>>available". I thought after alteration, it should have 2048 file
>>descriptors available instead of 1024?
>>
>>please help me with this, I am worried because of the large number of
>>users, 1024 file descriptors might not be enough. Thanks for any help!
>>
>>
>>.
>>
>>
>
>= = = = = = = = = = = = = = = = = = = =
>
>
> 致
>礼!
>
> 杨明
> yangm@bhlnet.com.cn
> 2005-03-17
>
>
Received on Wed Mar 16 2005 - 22:58:28 MST
This archive was generated by hypermail pre-2.1.9 : Fri Apr 01 2005 - 12:00:02 MST