Re: [squid-users] raise the ulimit bugs in squid-2.5.STABLE1-20021130.tar.gz (File Descriptors)

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 1 Dec 2002 12:57:50 +0100 (CET)

On Sun, 1 Dec 2002, MASOOD AHMAD wrote:

> According to your notes I have changed the file
> descriptors in /usr/include/bits/type.h
> 10 t0 4096.

This step you only need to do while compiling Squid-2.4 and earlier. Does
not hurt when compiling Squid-2.5 but does not help either.. (see release
notes).

The other steps still applies. From the notes:

2. 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.

3. Configure, build and install Squid

4. 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")

ulimit -HSn sets both the hard and the soft limit. While compiling Squid
it is important both are set.

Regards
Henrik
Received on Sun Dec 01 2002 - 04:57:55 MST

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