Re: How to increat [sic.] max open files?

Andi Kleen (andi@mlm.extern.lrz-muenchen.de)
03 Jan 1997 21:40:39 +0100


"Andrew E. Mileski" <aem@ott.hookup.net> writes:

> > 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