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

From: Darren Steven <dsteven@dont-contact.us>
Date: Wed, 08 Sep 1999 09:23:50 +1000

I just tried exactly the same thing, and found that I still had to edit the
files and rebuild kernel, as for 2.2.10-acx (the other section in the FAQ)
before squid would use more than the FD_SETSIZE limit.

I tried hacking the config so that it thought that linux could change
FD_SETSIZE, but the system includes changed it back again.

It would be really nice to change this on the fly (after a squid reconfig),
and not have to mess with the kernel sources at all.

Darren Steven.
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

--
Darren Steven
Applications Specialist
Networking Tasmania
Telstra Australia
Ph.1800 813 302
Received on Tue Sep 07 1999 - 17:38:58 MDT

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