Re: Too many open files error

Dietmar Stein (dstein2203@t-online.de)
Thu, 11 Mar 1999 20:46:07 +0100


Hi Steve,

I am using a kernel 2.0.36 on my system (large version of SuSE-kernel) with a
built in option for the maximum number of open files each process can have (I
think that's your problem).
The option/parameter is called NR_OPEN and is used with OPEN_MAX in limits.h
in ./linux/include/linux. I think in kernel 2.2.x it has the same place, so
you can edit it manually. A standard NR_OPEN_STD would be overriden during
compilation of the kernel (that's the way I did).
I increased the number to 2048 and its working.

A question of mine: I am using SuSE6.0 still trying to upgrade to 2.2.x but
after rebooting machine (compilation of the kernel is ok) it hangs up with
the message:
"Loading.....
Uncompressing kernel... Now booting the kernel...."

Nothing happens after this message (still no activity of my SCSI-drives). Can
you/anyone give me help/advice?

Greetings, Dietmar

Steve Hsieh wrote:

> Hi,
>
> On our ftp server which is running 2.2.2-ac5, it gives the following
> error:
>
> Mar 11 12:37:40 xxx inetd[148]: accept (for ftp): Too many open files
> in system
>
> How does one increase the max allowable # of open files on a machine for
> the 2.2 kernel?
>
> Thanks.
>
> -
> 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/

-
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/