From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2780 invoked from network); 9 Apr 1998 21:55:00 -0000 Received: from morannon.bfr.co.il (HELO blinky.bfr.co.il) (hjstein@192.116.142.129) by mail2.redhat.com with SMTP; 9 Apr 1998 21:55:00 -0000 Received: (from hjstein@localhost) by blinky.bfr.co.il (8.8.5/8.6.9) id AAA18163; Fri, 10 Apr 1998 00:54:41 +0300 Sender: hjstein@bfr.co.il To: axp-list@redhat.com Cc: mn1@helix.nih.gov Subject: Re: Open files per process References: <199804092031.QAA13863@helix.nih.gov> CC: hjstein@bfr.co.il From: hjstein@bfr.co.il (Harvey J. Stein) Date: 10 Apr 1998 00:54:41 +0300 In-Reply-To: "M. Nicklaus"'s message of Thu, 9 Apr 1998 16:31:17 -0400 (EDT) Message-ID: X-Mailer: Gnus v5.3/Emacs 19.34 "M. Nicklaus" 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