Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "M. Nicklaus" <mn1@helix.nih.gov>
To: axp-list@redhat.com
Cc: brunob@helix.nih.gov, mn1@helix.nih.gov
Subject: Re: Too many open files error
Date: Wed, 8 Apr 1998 15:43:57 -0400 (EDT)	[thread overview]
Message-ID: <199804081943.PAA17600@helix.nih.gov> (raw)

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


             reply	other threads:[~1998-04-08 19:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-08 19:43 M. Nicklaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-04-08 20:22 Too many open files error M. Nicklaus
1998-04-08 18:11 Robert Williams
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox