Re: File Descriptors

Andi Kleen (ak@muc.de)
31 Dec 1997 11:08:49 +0100


jhohertz@golden.net writes:

> Quick Q:
>
> Does 2.1.x support changing the maximum number of file decriptors via proc?
>
> I mean as easily as say.... with sysctl under FreeBSD? :P
>
> I loooove linux on the desktop, but have often had troubles on busy servers
> with filedescriptor starvation.

Linux 2.0 supports this already (see /proc/sys/kernel/file-max and inode-max).
If you mean the limit of FDs per process the default is 1024 in 2.1 now,
and it supports compiling with upto about 4k on i386. Note that you need
change include files (especially glibc) and recompile libc and many
other libraries if you go above 1024.

-A.