From: hjstein@bfr.co.il (Harvey J. Stein)
To: axp-list@redhat.com
Cc: mn1@helix.nih.gov
Cc: hjstein@bfr.co.il
Subject: Re: Open files per process
Date: 10 Apr 1998 00:54:41 +0300 [thread overview]
Message-ID: <m290pewti6.fsf@blinky.bfr.co.il> (raw)
In-Reply-To: "M. Nicklaus"'s message of Thu, 9 Apr 1998 16:31:17 -0400 (EDT)
"M. Nicklaus" <mn1@helix.nih.gov> writes:
> Following up on my previous posts concerning the max. number
> of open files per process. This limit is 256 by default in
> Linux (set in /usr/src/linux/include/linux/fs.h and limits.h
> ---does any of these two files take precedence if NR_OPEN
> differs between them, BTW?)
>
> In DU, the max. number of open files per process is 4096.
> Since we need to run the same code on both platforms, I want
> to increase NR_OPEN (and the other related limits such as
> NR_FILE, NR_INODE) 16-fold and rebuild the Linux kernel.
>
> Before I get myself into trouble: Has anyone done this
> (or a similarly significant increase) successfully?
It's been discussed on the linux-kernel mailing list. Try searching
for max open files on:
http://www.uwsg.indiana.edu/search/AT-linux_kernel_mailquery.html.
In particular, there's a patch and a mod for the patch at:
http://www.uwsg.indiana.edu/hypermail/linux/kernel/9612.1/0037.html
There's an explanation of how to modify the max # of open files on the
system (as opposed to max open files per process) while the system is
running:
http://www.uwsg.indiana.edu/hypermail/linux/kernel/9611.1/0100.html
The above leads to a patch & discussion at:
http://www.linux.org.za/filehandle.patch.linux
The above includes dynamic allocation of some memory, presumably so
that each process doesn't suck up more memory due to the larger
limits.
There's also a warning about how *not* to go about it at:
http://www.uwsg.indiana.edu/hypermail/linux/kernel/9701.0/0058.html
--
Harvey J. Stein
Berger Financial Research
hjstein@bfr.co.il
next prev parent reply other threads:[~1998-04-09 21:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-09 20:31 Open files per process M. Nicklaus
1998-04-09 21:19 ` kernel 2.1.94 Artimage
1998-04-10 3:02 ` James D. Freels
1998-04-10 4:59 ` Artimage
1998-04-10 5:12 ` Matthew Geier
1998-04-09 21:54 ` Harvey J. Stein [this message]
1998-04-14 20:32 ` kazushige Goto's affiliation Robert Williams
1998-04-14 20:39 ` 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