Subject: Re: file handles
To: David Brownlee <abs@anim.dreamworks.com>
From: Chris Jones <cjones@honors.montana.edu>
List: port-pmax
Date: 05/06/1998 20:00:46
On Wed, 6 May 1998, David Brownlee wrote:

>         MAXUSERS can be used to affect the default in NetBSD, from
>         /sys/conf/conf/param.c:
>         
>             #ifndef NPROC
>             #define NPROC (20 + 16 * MAXUSERS)
>             #endif
>             int     maxfiles = 3 * (NPROC + MAXUSERS) + 80;
>      
>         Also sysctl can be used to tune the current value dynamically
>         (sysctl -w kern.maxfiles=N)
>      
>         Hmm... it should probably be tunable specifically at compile
>         time...

Oh, you mean like this:

options 	NPROC=4000

That ought to work, right?  You're right, though; it'd be nice if there
were an "options MAXFILES" possibility.

Incidentally, what *is* the upper limit on maxfiles?  I can set it to
MAXINT, but I'm not exactly convinced that that'll really work.  :)

Chris

-------------------------------------------------------------------------------
Chris Jones                                      cjones@rupert.oscs.montana.edu
           Mad scientist in training...
"Is this going to be a stand-up programming session, sir, or another bug hunt?"