Re: AW: [squid-users] Recompile Squid : Procedure needed

From: Hendrik Voigtländer <hendrik@dont-contact.us>
Date: Thu, 02 Sep 2004 21:26:14 +0200

Lilian.Gix@boschrexroth.de wrote:
> I installed it with automatic Debian package installation program.
>
> So I don't know if I have such file.
>
Not really the file INSTALL but a lot of information in /usr/share/doc
like this file.

debian:~# gunzip -c /usr/share/doc/squid/README.morefds.gz

                 More filedescriptors for squid

The old Linux 2.0.x kernel had support for a maximum of 256
filedescriptors per process. The squid FAQ talks about this,
and recommends use of a special patch for 2.0.x kernels.
Don't use that patch - use a 2.2.19 kernel or later, since the
recent 2.2.x kernels (and 2.4, ofcourse) have support for lots
of filedescriptors built in.

The Debian Squid package has a special patch included that makes
it possible for squid to use more than 1024 filedescriptors. You
can enable this by increasing SQUID_MAXFD in /etc/default/squid.

The /etc/init.d/squid script then sets the maximum number of
filedescriptors at startup using 'ulimit'. It also examines
the global file maximum in /proc/sys/fs/file-max and increases
that to (SQUID_MAXFD + 4096) if it is lower than that.

         README.morefds 1.20 01-Oct-2001 miquels@cistron.nl

Are you using testing/unstable? AFAIK the stable package is
squid 2.4.6-2woody2

debian:~# cat /etc/default/squid
#
# /etc/default/squid
#

# Max. number of filedescriptors to use. You can increase this on a busy
# cache to a maximum of (currently) 4096 filedescriptors. Default 1024.
SQUID_MAXFD=1024

That should do the trick.

Regards, Hendrik Voigtländer
Received on Thu Sep 02 2004 - 13:26:45 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:01 MDT