From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31767 invoked from network); 8 Apr 1998 19:44:05 -0000 Received: from helix.nih.gov (128.231.2.3) by mail2.redhat.com with SMTP; 8 Apr 1998 19:44:05 -0000 Received: (from mn1@localhost) by helix.nih.gov (8.8.5/8.8.5) id PAA17600; Wed, 8 Apr 1998 15:43:57 -0400 (EDT) Date: Wed, 8 Apr 1998 15:43:57 -0400 (EDT) From: "M. Nicklaus" Message-Id: <199804081943.PAA17600@helix.nih.gov> To: axp-list@redhat.com Subject: Re: Too many open files error Cc: brunob@helix.nih.gov, mn1@helix.nih.gov Bob Williams wrote: > How does one tune the number of allowed > open files? >From Dejanews: ------ Subject: Re: Kernel: File Table Overflow From: pedward@sun4.apsoft.com (Perry Harrington) Date: 1998/02/02 Message-ID: <199802022142.NAA21293@sun4.apsoft.com> Newsgroups: muc.lists.linux-kernel Please ignore, I found what I needed. For those who are interested: include/linux/fs.h Changed NR_OPEN to 1024 from 256 (open number of files per process) Changed NR_INODE to 16386 from 3072 (number of total inodes) Changed NR_FILE to 4096 from 1024 (number of total file descriptors) include/linux/limits.h Changed NR_OPEN to 1024 from 256 (open number of files per process) Changed NR_FILE to 1024 from 256 (number of file descriptors per process) include/linux/tasks.h Changed NR_TASKS to 2048 from 512 (max number of tasks) Changed MIN_TASKS_LEFT_FOR_ROOT to 20 from 4 (enuff tasks to let root in, in a bad situation) --Perry > > We have a *busy* mail server (PPro 200/128MB) running the 2.0.30 Kernel > and are getting "File Table Overflow" periodically. I figure that we > need to up the maximum file descriptors, so I grepped the source tree > and did not find any defines like that (except UNIX_MAX_FD in net/). > I wanted to tweak this for the 2.0.33 Kernel before putting it into > production. What is the define for the maximum number of File descriptors, > and where can I find more kernel tunables? > > Thanks, > Perry > > -- > Perry Harrington Linux rules all OSes. APSoft () > email: perry@apsoft.com Think Blue. /\ ------ Marc Nicklaus