Subject: Re: increasing FD_SETSIZE to 1024 or 2048?
To: <>
From: Ignatios Souvatzis <is@beverly.kleinbus.org>
List: current-users
Date: 07/03/2000 21:09:10
On Mon, Jul 03, 2000 at 06:25:08PM +0200, Wolfgang Solfrank wrote:
> Hi,
>
> > FD_SETSIZE is currently 256. Is there a good reason not to bump it to
> > something more appropriate for today's machines, like 1024 or 2048?
>
> [...]
>
> > So it has a big potential payback for those who want it, at
> > relatively little cost.
>
> Are you aware that there is nothing to stop an application to use
> a larger FD_SETSIZE if it so desires? Just #define FD_SETSIZE xxx
> before the #include <sys/types.h>, and everything will work as expected.
> No need to generate a new kernel or something.
Wolfgang: what happens of both a library and yourself are doing an (possibly
implicit) select()?
I think this example was given last time this was discussed on one
of our mailing lists, but I don't remember the details.
Regards,
-is