I am bit confused about increasing the filedescriptors. My two proxy server's cache.log is flooded with the error
"WARNING! Your cache is running out of filedescriptors". I could see from the Cache Manager that squid is using only
1024 FD.
I read the Henrik document at the web site http://devel.squid-cache.org/hno/linux-lfd.html.

I have got few question about increasing the Filedescriptors: Below the questions are my current (default) values:

1) Do I need to increase the value in /proc/sys/fs/file-max? Another 50%?
2) How much can I increase the vale for " ulimit -HSn ####" without causing any performance degradation?
3) Regarding the step "Edit /usr/include/bits/types.h to define __FD_SETSIZE ....". Which value should I put it here -
the value in "cat /proc/sys/fs/file-max" or the value in " ulimit -HSn ####" ?
4) Is the default value below for "/proc/sys/net/ipv4/ip_local_port_range" , the " /proc/sys/kernel/threads-max"
and " cat /proc/sys/kernel/threads-max" alright or should I increase it?

My system : Red Hat ES 3.0, Kernel - 2.4.21-9.0.1, glibc version 2.3.2-95.6 ( System: HP ML 530 with 2x3.0GHz Xeon
CPU, 8GB Mem 6x35GB for cache)
#cat /proc/sys/fs/file-max
#cat /proc/sys/net/ipv4/ip_local_port_range
32768 61000
#cat /proc/sys/net/ipv4/tcp_max_syn_backlog
# cat /proc/sys/kernel/threads-max

Info from Cache Manager
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 780
Number of file desc currently in use: 729
Files queued for open: 0
Available number of file descriptors: 295
Reserved number of file descriptors: 100
Store Disk files open: 43

Thanks in advance for the help.

RMIT University