Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Too many open files error
@ 1998-04-08 19:43 M. Nicklaus
  0 siblings, 0 replies; 3+ messages in thread
From: M. Nicklaus @ 1998-04-08 19:43 UTC (permalink / raw)
  To: axp-list; +Cc: brunob, mn1

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


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Too many open files error
@ 1998-04-08 20:22 M. Nicklaus
  0 siblings, 0 replies; 3+ messages in thread
From: M. Nicklaus @ 1998-04-08 20:22 UTC (permalink / raw)
  To: axp-list; +Cc: mn1

Regarding my previous post on this subject:

A little loop over a file creation shows, that in Digital
Unix (actually, OSF/1 3.2c), the max number of open files
per process is 4096.  So I guess one should increase the
limits in include/linux/fs.h and include/linux/limits.h
by a factor of 16 if one wants to be sure that the same
code that runs under DU doesn't crash in axp-linux (now
of course if people would close their files properly...)

Marc Nicklaus


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Too many open files error
@ 1998-04-08 18:11 Robert Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Williams @ 1998-04-08 18:11 UTC (permalink / raw)
  To: axp-list

How does one tune the number of allowed
open files?

--
Bob Williams, http://bob.usuf2.usuhs.mil/




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-04-08 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-08 19:43 Too many open files error M. Nicklaus
  -- strict thread matches above, loose matches on Subject: below --
1998-04-08 20:22 M. Nicklaus
1998-04-08 18:11 Robert Williams

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