Subject: Re: Max open files per process
To: Nigel Reed <nigel@nelgin.nu>
From: Ron Roskens <roskens@Elfin.NET>
List: current-users
Date: 10/23/1998 00:56:01
Try these:

csh:
limit openfiles $NUM

ksh:
ulimit nofiles $NUM
## see nofiles(descriptors)

in kernel settings:
sysctl -w kern.maxfiles $NUM

The kernel settings define the highest allowable setting.

Ron

On Thu, 22 Oct 1998, Nigel Reed wrote:

> Date: Thu, 22 Oct 1998 20:24:05 -0500
> From: Nigel Reed <nigel@nelgin.nu>
> To: current-users@netbsd.org,
    C Kane <ckane@best.com>
> Subject: Re: Max open files per process
> 
> While looking around at some other stuff, I came across this in my build
> directory...
> the file param.c contains
> 
> #ifndef NPROC
> #define NPROC (20 + 16 * MAXUSERS)
> #endif
> int     maxproc = NPROC;
> 
> So I guess it is changed with MAXUSERS in your config file.
> 
> I'm by no means even a tiny bit of an expert on this, so I'd wait for a
> while to
> see if anyone tells you I'm wildly wrong *grin*.
> 
> Regards
> Nigel
> -----Original Message-----
> From: C Kane <ckane@best.com>
> To: current-users@netbsd.org <current-users@netbsd.org>
> Date: Thursday, October 22, 1998 08:00 PM
> Subject: Max open files per process
> 
> 
> >If there is a limit on the number of open files
> >per process, what is it by default and how is it
> >changed?
> >
> >-- Chuck
> >
> 
> 

Ron Roskens
--
Collective Technologies Consultant 
http://www.colltech.com/	 email: roskens@colltech.com