Re: [squid-users] Filedescriptors and squid

From: Andreas Jung <andreas@dont-contact.us>
Date: Fri, 19 Apr 2002 13:20:38 -0400

Did you change the the settings ins /etc/security/limits.conf?
Also try to patch main.c: Squid_MaxFD=30000; inside main().

Andreas

----- Original Message -----
From: "Santiago Romero" <sromero@servicom2000.com>
To: <squid-users@squid-cache.org>
Sent: Friday, April 19, 2002 13:11
Subject: [squid-users] Filedescriptors and squid

 Hi.

 I'm totally unable to increase the number of filedescriptors
 getting more that 1024 used by squid.

 I have Squid 2.4-STABLE6 installed on a Redhat 7.1 Linux machine.
 My system has /proc/sys/fs/file-max set to 16384, and the
 system user "squid" opens bash sessions and ulimit -n reports
 4096 filedescriptors (this means that the O.S. is configured
 correctly, as the user has 4096 fd after login in).

 When I run squid with

 ./squid -d 1 -sYC

 I always see:

2002/04/19 19:02:20| With 1024 file descriptors available

 I have the following in my squid init script:

ulimit -HSn 2048
export SQUID_MAXFD=2048

 The same export is on /etc/default/squid.

 I've tested squid with --enable-poll compilation option and I
 get the same results, always 1024. I would like to set the FDs
 used by squid to 2048 or 4096. żAny idea?

 My squid.conf has the filedescriptor limit set to 0 also.
 I have no more ideas about what to do.

 Thanks a lot for any help.

--
Santiago Romero
Departamento de Sistemas
sromero@servicom2000.com
Av. Primado Reig 189, entlo
46020 Valencia - Spain
Telf. (+34) 96 332 12 00
Fax. (+34) 96 332 12 01
http://www.servicom2000.com
Received on Fri Apr 19 2002 - 11:22:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:37 MST