Re: too many open files?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 4 Jul 1999 22:14:36 +0100 (BST)


> how can I increase the number of file descriptors in kernels 2.0.36 and 2.2.x?
>
> in the FAQ I only found "various patches exist" and "this may break select(2)"...
> (I just got a realy ugly breakdown due to 'too many open files' on my server when expiring news and doing various other things...

If its one process running out of its fd allocation:

2.0.x you get the 3000fd patch from www.kernelnotes.org or similar places.
For 2.2.x if you get the ac patches you get the ability to run large arrays
per process. The select and other stuff applies.

If (as I suspect) its over the system, you stick bigger numbers into
/proc/sys/file-max and /proc/sys/inode-max and you don't have to worry about
anything else

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/