Re: Increasing file descriptors with Linux (again :-()

From: fooler <fooler@dont-contact.us>
Date: Wed, 08 Sep 1999 12:13:21 +0800

hello simon,

    for redhat 6 and kernel 2.2.12, before compiling your kernel, edit these
files:

    1. /usr/src/linux/include/linux/posix_types.h ---> #define
__FD_SETSIZE xxx
    2. /usr/src/linux/include/linux/fs.h ---> #define INR_OPEN xxxx
(optional #define NR_FILE xxx)
    3. /usr/src/linux/include/limits.h ---> #define NR_OPEN xxx

    and before compiling your squid edit this file:

    1. /usr/include/bits/types.h ---> #define __FD_SETSIZE xxx

    happy increasing!

fooler.

Simon Greaves wrote:

> RedHat Linux 6.0, Kernel 2.2.12, Squid-2.2.STABLE4
>
> Thanks for the responses to my previous post on this, I got a pointer to
> Henrik's web page documenting how to get more file descriptors for
> squid. What I did was:
>
> 1) get a fresh copy of linux-2.2.12, configure required drivers etc,
> compile & install
> 2) echo 16384 > /proc/sys/fs/file-max (ulimit wouldn't work without
> this)
> 3) ulimit -SHn 4096
> 4) make distclean ; ./configure --enable-snmp
> ...
> Default FD_SETSIZE value... 1024,
> Maximum number of filedescriptors we can open... 4096
> ...
> 5) make install
>
> Then, from the same shell (ie ulimit -n = 4096) I started squid and
> looked in cache.log, where it claims: 'With 1024 file descriptors
> available'. Not what I'd expected (on some Digital UNIX boxes here squid
> reports 4096 file descriptors, I thought that's what I had in Linux now
> too).
>
> So it looks like I've stuffed up somewhere, anyone care to enlighten me?
>
> Thanks,
>
> Simon
> --
> Simon Greaves voice: (+679) 212114
> Computer Centre fax: (+679) 304089
> The University of the South Pacific email: Simon.Greaves@usp.ac.fj
> Suva, Fiji
Received on Tue Sep 07 1999 - 22:14:12 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:22 MST