Re: max filedescriptor on linux

From: Pedro Ribeiro <pribeiro@dont-contact.us>
Date: Wed, 16 Feb 2000 15:50:13 -0000

Unfortunally that's wrong, my practice says select() IS limited to 1024FD
(or whatever is in some #defines at the time the kernel is compiled) i
learned it by the hardest way (a IRC server i'd maintain)

I'v recently started a "thread" in "comp.os.linux.*" & "linux.dev.kernel.*"
the people that answer-me have confirmed that limitation of select().

Take a look at the linux kernel. 8((

Best Regards.

PS: For a turnaround to this limitation, someone sugested-me the procedure
described in http://www.volano.com/linux.html "Linux 2.2 kernel file
descriptors and tasks" (implies kernel recompilation)

[]-------------------------------------------------------------[]
  Pedro Ribeiro
  Online: http://www.isel.pt/~pribeiro/
  IRC(PTnet) Nick: PAntMaR
  e-Mail: Personal: pribeiro+sig@isel.pt
          IPLNet/ISELNet Admin: helpdesk@net.ipl.pt
  PGP Key Available in keyservers.
  PGPFP: E848 DCA3 5397 97EF 4CF9 2347 24BD BEF8 D104 1743
[]-------------------------------------------------------------[]

----- Original Message -----
From: "Henrik Nordstrom" <hno@hem.passagen.se>
To: "Pedro Ribeiro" <pribeiro@isel.pt>
Cc: "Ahsan Khan" <ahsank@one.net.pk>; "Rolf Schulz" <rs@gnsec.de>;
<squid-users@ircache.net>
Sent: Terça-feira, 15 de Fevereiro de 2000 20:15
Subject: Re: max filedescriptor on linux

> Pedro Ribeiro wrote:
> >
> > Be carefull even with that change select() is still limited to 1024FD's
> > (unless you tweak some #defines in the kernel and recompile them), so be
> > shure you'r using poll() that doesn't have this limitation.
>
>
> select() is not limited in Linux-2.2.12 and later (at least not by the
> kernel), and Squid by default selects to use poll() when you build Squid
> on Linux-2.2 or higher. There are still problems with some glibc
> functions, and system headers, but none of these should affect Squid.
>
> See http://squid.sourceforge.net/hno/ for a note describing in detail
> the procedure I recommend for enabling more than 1024 filedescriptors.
>
> --
> Henrik Nordstrom
> Squid Hacker
Received on Wed Feb 16 2000 - 09:04:15 MST

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