Marlon Anthony Abao wrote:
>
> guys,
> i just installed squid on a new box running linux kernel 2.2.1 and squid
> complains that my kernel does not have enough file descriptors (only 256).
>
> i thought that the new kernel has already lifted this limit without need
> for anymore filehandle patches.
>
> is there any way to inform squid that this kernel could now handle more
> than 256 fds at a time? or is there a special setting on the kernel to
> enable this?
Linux 2.2.1 defaults to 1024 FDs per process, but Squid's configure
script is a bit broken in versions before Squid 2.2.DEVEL3. Devel3 tried
to fix it, but it's missing a test for getrlimit() (really shouldn't
test getrlimit() since I don't know of any OSs with setrlimit() and not
getrlimit() but hey...).
Use the attached patch against 2.2.DEVEL3.
Jordan
-- Jordan Mendelson : http://jordy.wserv.com Web Services, Inc. : http://www.wserv.com
diff -rcN squid-2.2.DEVEL3.ORIG/configure squid-2.2.DEVEL3/configure
*** squid-2.2.DEVEL3.ORIG/configure Sun Feb 14 03:25:37 1999
--- squid-2.2.DEVEL3/configure Wed Feb 24 16:53:49 1999
***************
*** 3955,3960 ****
--- 3955,3961 ----
seteuid \
setpgrp \
setrlimit \
+ getrlimit \
setsid \
sigaction \
snprintf \
diff -rcN squid-2.2.DEVEL3.ORIG/configure.in squid-2.2.DEVEL3/configure.in
*** squid-2.2.DEVEL3.ORIG/configure.in Sun Feb 14 03:25:35 1999
--- squid-2.2.DEVEL3/configure.in Wed Feb 24 16:53:57 1999
***************
*** 912,917 ****
--- 912,918 ----
seteuid \
setpgrp \
setrlimit \
+ getrlimit \
setsid \
sigaction \
snprintf \
Received on Wed Feb 24 1999 - 14:49:21 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:43 MST