lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
From(Alan Cox)
SubjectRe: How to increat [sic.] max open files?
DateSat, 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


\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2008