Re: max fd's in linux

From: Dancer <dancer@dont-contact.us>
Date: Sun, 04 Oct 1998 19:50:51 +1000

Brian wrote:
>
> 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?
>
> Brian
>
> --------------------------------------------------------------------------
> Brian Feeny (BF304) | ShreveNet Inc. - Premium Internet Service Provider
> Network Administrator | Shreveport, Louisiana - http://www.shreve.net/
> signal@shreve.net | Web Hosting, Virtual Domains, Storefronts,
> (318)222-2NET x 109 | Database/Web Integration, 56k, ISDN, T1

If the patch you are using is the patch I am thinking of, it only
patches the kernel, and not the library headers as well (as the previous
patch did).

Apparently the increased value of FD_SETSIZE is picked up, but there are
a couple other library constants that might get missed. Such is life. I
hand-hack around such inconveniences.

D

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT d- s++: a C++++$ UL++++B+++S+++C++H++U++V+++$ P+++$ L+++ E-
W+++(--)$ N++ w++$>--- t+ 5++ X+() R+ tv b++++ DI+++ e- h-@ 
------END GEEK CODE BLOCK------
Received on Sun Oct 04 1998 - 02:52:09 MDT

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