lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: How to increat [sic.] max open files?
Date
> > 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 13:38    [W:0.034 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site