Subject: Re: too many files open
gaijin@gci.net
Date: Sat Dec 15 2001 - 21:12:16 AKST
Larry -
If I'm not mistaken the modification is kernel specific. On my box (Slack
8.0, Kernel 2.4.7) with the /proc fs enabled you can find the maximum
number of open files by doing a 'cat /proc/sys/fs/file-max'. The
principle is the same, however, specifics will vary for older kernels (ie
- for 5.2 RedHat, I'm guessing you're running a 2.0.x kernel,
/proc/sys/kernel/file-max should be the place to look if my quick search
on Google is correct.)
Note - at least one search result indicates that you must modify the
maximum number of inodes that can be concurrently opened as well.
(http://www.uwsg.iu.edu/hypermail/linux/kernel/9611.1/0100.html)
Documentation on the /proc fs included with the kernel source verifies the
above and looks to provide more specific information than the link (check
linux/Documentation/filesystems/proc.txt for information in the 2.4 kernel
tree, likely to be a similar path name for your running kernel.)
Hope this helps!
RJD
===========================================================================
//Smart-ass ;Smart Ass (*Smart Ass*) {Smart Ass} /*Smart Ass*/
"Open source attracts open minds. That's good." - Woz
"Unix, on the other hand, has no kernel, which is one reason the OS has
forked into incompatible code streams."
- Neal Leavitt, IEEE Computing Society
http://computer.org/computer/homepage/june/ind_trends/01.htm
On Sat, 15 Dec 2001, larry collier wrote:
>
> I've found how to up the file max setting for redhat 7.x and 6.x from authoritative and/or multiple agreeing sources.
> Unfortunately the system in question is running RH5.2 and none of the info we've found checks out. The system has
> 40 to 50 users on it and we need an athoritatiive (ie. trustable) source to say do the follwing.... If we do something and
> their data corrupts we're toast. We want them to upgrade hardware and software to the latest but getting them to see
> the need for that is like pushing spaghetti uphill.
>
> BTW 7.2 defaults to file max of 8,192, 6.2 to 4096, and 5.2 to 1024. The search for this has lead us to a number of
> interesting limits in Linux that we didn't know about. The defaults chosen by RedHat for some of the settings are
> somewhat bizarre, all things considered.
>
> Thanks for you response, though,
>
> Larry
>
>
> 12/15/2001 1:08:16 PM, Mike Tibor <tibor@lib.uaa.alaska.edu> wrote:
>
> >
> >On Wed, 12 Dec 2001, Larry Collier wrote:
> >
> >>
> >> I administer a system with 50 users and they occasionally get the message
> >> that too many files are open. How do I fix this or where should I be
> >> looking to read how to fix this?
> >
> >It's been awhile since I've fiddled with this stuff, but I think what you
> >want is in /proc/sys/fs/. I think you want to change file-max (this is
> >set at 4096 on my system) and possibly some others.
> >
> >Definitely do a google search on this, as it's been discussed in many
> >places. It shouldn't be tough to come up with better info than I've
> >provided.
> >
> >Mike
> >--
> >Mike Tibor Univ. of Alaska Anchorage (907) 786-1001 voice
> >Network Technician Consortium Library (907) 786-6050 fax
> >tibor@lib.uaa.alaska.edu http://www.lib.uaa.alaska.edu/~tibor/
> >http://www.lib.uaa.alaska.edu/~tibor/pgpkey for PGP public key
> >
> >
> >
> >
>
>
>
>
>
This archive was generated by hypermail 2a23 : Sat Dec 15 2001 - 21:12:23 AKST