According to "Linux Programming" by Kurt Wall...

/proc/sys/fs...

file-max = The maximum number of file handles the kernel will allocate.

file-nr = The number of allocated file handles, the number of used file 
handels, and the maximum number of file handles.

inode-max = The maximum number of of inode handlers.

inode-nr = The number of allocated inodes and the number of free inodes.

On Wednesday 02 January 2002 10:08 am, you wrote:
Martin Mačok wrote:
> On Mon, Dec 31, 2001 at 07:17:33PM +0530, Satheesh, TV (MED) wrote:
> > Considering the enormous power, there shouldn't be a problem.
> > However I have seen strange errors as "Stale NFS Handle" or "Too
> > Many Open files" or some error in loading libraries.
>
> Have you tried searching "linux too many open files" on google?
>
> First result:
> http://www.patoche.org/LTT/kernel/00000128.html
>
>  The kernel's out of file handles. Go to /proc/sys/kernel and look at
>  "file-max" as compared to "file-nr" as well as "inode-max" compared
>  to "inode-nr". I think "nr" is the number currently in use... but I
>  could swear I've seen it go higher than "max".
>
>  Anyway, the solution is just to put larger numbers in the "max"
>  files. In my /etc/init.d, I've got a file called "setmaxfiles.sh"
>  that contains:
>
>     echo "4096" > /proc/sys/kernel/file-max
>     echo "12288" > /proc/sys/kernel/inode-max
>
>  Then, I made a symlink to it from /etc/rcS.d/S37setmaxfiles.sh so
>  that it will update the kernel structures every time it boots (as it
>  goes through single-user mode).

or, have a look at

man sysctl.conf
man sysctl



/m

> --
>          Martin Mačok                 http://underground.cz/
>    [EMAIL PROTECTED]        http://Xtrmntr.org/ORBman/
>
> _______________________________________________
> Redhat-devel-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list

_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

-- 
rm -rf /bin/laden
Do it now and often!



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to