Subject: Re: increasing FD_SETSIZE to 1024 or 2048?
To: None <current-users@netbsd.org, jonathan@DSG.Stanford.EDU>
From: Wolfgang Solfrank <ws@tools.de>
List: current-users
Date: 07/03/2000 18:25:08
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.

IMHO that's flexible enough to get the best of both worlds (i.e. space
savings in small applications vs. support for many connections in large
ones).

Ciao,
Wolfgang
-- 
ws@TooLs.DE     Wolfgang Solfrank, TooLs GmbH 	+49-228-985800