> > Okay! Now, how many FDs should a process be allowed to have? This has to
>
> I'd go with 4096 file descriptors as a standard amount.
>
> WARNING! This means a FD_SET is 512 bytes, and having 6 copies on the
> kernel stack for select() will consume 3k of the 4k. The kernel stack
> allocation must be increased.
Better allocate the fd_sets dynamically in sys_select().
-andi