RE: Runtime File Descriptor settings

Jordan Mendelson (jordy@wserv.com)
Fri, 17 Apr 1998 16:24:43 -0400


> > That and I've heard that setting file descriptors in your kernel to
> > 1024 or higher wastes a heck of a lot of RAM.
>
> Does there have to be a per-process maximum, or could the kernel just
> keep assigning file ID numbers as requested, and reusing closed ones
> when available?

I believe soft/hard limits are set by setrlimit() for FD's under BSD/OS. I
would seem to me that this would save a heck of a lot of RAM, instead of
preallocating 1024 FD's for every single process...

I also ran across a patch which dynamically allocates FD's with a
compile-time max of 3000 @

http://www.linux.org.za/filehandle.patch.linux
and ftp://ftp.is.co.za/linux/local/filehandle.patch.linux

Heck, this should save memory even if you only use 256 max shouldn't it?

Jordan

--
Jordan Mendelson     : http://jordy.wserv.com
Web Services, Inc.   : http://www.wserv.com

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