[illumos-Discuss] value of FD_SETSIZE

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Mon May 30 07:05:54 PDT 2011


Apostolos Syropoulos <asyropoulos at yahoo.com> wrote:

> > 
> > Mmmm, is there a problem with having a fdset array size of 8 kB?
> > 
> > Note that select() will not work for more FD's than FD_SETSIZE.
> > 
>
>
> Actually it might be a problem, because if it is 8kB, then one may ask
> to increase to say 16, 32, or even 64kb, which is the current value
> and causes so much trouble...

???? FD_SETSIZE is the predefined value compiled into select().

As we have 8 bits per byte, the size of an array (==> the type fd_set)
will be 8 kB for FD_SETSIZE == 65336 

Jörg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



More information about the Discuss mailing list