Re: max fd's in linux

From: Simon Rainey <srainey@dont-contact.us>
Date: Sun, 04 Oct 1998 12:10:18 +0100

>I have installed the 2.0.35-3kfd patch:
>
>constellation:/# cat /proc/sys/kernel/file-nr
>660
>constellation:/# cat /proc/sys/kernel/file-max
>8192
>
>
>yet when i goto compile Squid-2 RELEASE, I get:
>
>checking Default FD_SETSIZE value... 4096
>checking Maximum number of filedescriptors we can open... 256
>WARNING: 256 may not be enough filedescriptors if your
> cache will be very busy. Please see the FAQ page
> http://squid.nlanr.net/Squid/FAQ/FAQ-11.html#filedescriptors
> on how to increase your filedescriptor limit
>
>Do you have to manually go in their and edit the limit? Anyone know what
>could be going on?

You can get around this by setting the open file limit before running
configure. Do this with ulimit:

ulimit -n 3000

You also need to add this line to the RunCache script before the line that
kicks off Squid.

SR

-------------------------------------------------------------------------
Simon Rainey e-mail : srainey@rmplc.net
Principal Internet Development Engineer tel : +44 1235 823238
RM Internet for Learning fax : +44 1235 823424
New Mill House, 183 Milton Park, Abingdon, Oxfordshire, OX14 4SE, England
Received on Sun Oct 04 1998 - 04:08:34 MDT

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