lkml.org 
[lkml]   [1998]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: variable fd array patch for 2.1.90
From
Date
Bill Hawes <whawes@star.net> writes:

|> The attached patch provides for variable-sized fd arrays, automatically
|> expanding from a small default (32 files) to the full 1024 when needed. This
|> results in a significant savings of non-pageable kernel memory (about 35 pages
|> just for the system tasks), and should significantly speed up process forking
|> when fewer than 32 files are used.

|> The patch adds an FDSize: entry to the /proc/pid/status output so you can
|> monitor which tasks are using more files. (As discussed previously on the list
|> here, the bash shell opens fd 255 and therefore requires a full fd array.)

How about expanding the fd array in more steps, perhaps 32 -> 256 -> 1024?
Or make the default 64 files, and Bash could be changed to use fd 63
instead (it already allocates from 63 downward for process substitutions).

--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.043 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site