Subject: Re: Max # of available file s descriptors
To: Chin Fang <fangchin@jessica.Stanford.EDU>
From: matthew green <mrg@mame.mu.Oz.Au>
List: current-users
Date: 09/19/1995 12:08:34
   Hello,
   
   I am curious about the max # of available file descriptors in in NetBSD.
   
   I know off hand that the respective limit for SunOS, Solaris 2.x and Irix
   is 256, 1024, and 2048.  How about NetBSD's?
   
   I don't have a NetBSD machine handy (will be getting one RSN) and
   would appreciate it very much for any info.

this varies.  it depends on MAXUSERS i think.  lemme check.

from conf/param.c:

#define NPROC (20 + 16 * MAXUSERS)
int     maxfiles = 3 * (NPROC + MAXUSERS) + 80;

which comes down to

int maxfiles = 140 + (51 * MAXUSERS);

.mrg.