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

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 4 Jan 1997 01:04:24 +0000 (GMT)


> > 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().

It would be better to allocate dynamically for sizes over say 64. Most
requests will be smaller. Thats akin to how the net code optimizes iovec
handling