On Wed, 6 May 1998 [EMAIL PROTECTED] wrote:

> >Sometimes i get this error :
> >"too many open files in system"
> >causing my system to fail.
> >How do I increase the number of files ?
> >
> ok, in /usr/src/linux/include/linux/fs.h
> 
> #define NR_INODE 3072 /* this should be bigger than NR_FILE 8/
> #define NR_FILE 1024 /* this can well be larger on a larger system */
> 
> and then recompile

Oh foo.

cd /proc/sys/kernel
echo 2048 >file-max
echo 4096 >inode-max

will up your file-max and inode-max, no compile required. 

I always put those commands in my /etc/rc.d/rc.local file on systems that
I know are going to be used heavily (e.g. at large schools where 40
teachers are going to jump online at once to post grades, calculate it
yourself, the Post Grades program accesses a half-dozen database tables
each of which is a file, each database table averages a half-dozen indexes
each of which is a file, we're talking 1680 files there plus the normal
overhead and normal usage...).

Eric Lee Green   [EMAIL PROTECTED]          Executive Consultants
Systems Specialist               Educational Administration Solutions
Louisiana Residents: Important: See http://members.tripod.com/~latrails


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to