Note about increase FD limit under linux 2.2.10

From: Luigi Giacobbe <lgiacobbe@dont-contact.us>
Date: Fri, 27 Aug 1999 13:00:12 +0200

Hi,

I just share my experience with linux 2.2.10 and the fd problem. I am not a
Linux specialist !

Like Dancer told in his mini Howto there is actualy no clear procedure to
increase the fd under 2.2.x
Please if you have one send it !

Here is what I did and seems to work :

Last Slackware distribution (4.0) is used; the kernel 2.2.6 is intalled by
default.

1°) Upgrade to kernel 2.2.10 and apply the alan cox patch (2.2.10-ac12)
2°) Modify the line #define __FD_SETSIZE xxx to your value (4096, 8192)
in the following file :
         /usr/src/linux/include/linux/posix_types.h
         /usr/include/gnu/types.h
3°) Build the kernel
4°) use ulimit -HSn 4096
5°) Build squid
6°) start squid and modify the startup script with the good ulimit options

NB : See the Henrik Nordström's Squid work page
http://hem.passagen.se/hno/squid/ , there is an explanation about the fd
subject under linux 2.2.x
Its different but it probably depends on the linux distribution.

Any comments welcome

L. Giacobbe
Received on Fri Aug 27 1999 - 04:52:54 MDT

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