On Fri, Nov 16, 2018 at 10:55:23AM +0100, Martijn van Duren wrote:

> On 11/16/18 10:24 AM, Mik J wrote:
> > Hello,
> > 
> > Does anyone know how to change these values ?
> > 
> > # sysctl kern.nprocs=52
> > sysctl: kern.nprocs: Operation not permitted
> > # sysctl kern.nfiles=575
> > sysctl: kern.nfiles: Operation not permitted
> > 
> > Regards
> > 
> See sysctl(2):
>            Second level name            Type                    Changeable
> ..
>            KERN_NFILES                  integer                 no
> ..
>            KERN_NPROCS                  integer                 no
> ..
>      KERN_NFILES (kern.nfiles)
>              Number of open files.
> ..
>      KERN_NPROCS (kern.nprocs)
>              The number of entries in the kernel process table.
> 
> If you want to change the maximum number of open files/processes take a
> look at ksh(1) ulimit or csh(1) limit and login.conf(5).
> 
> Hope this helps.
> 
> martijn@

There are also kern.maxfiles and kern.maxproc for system wide limits.
But in most cases,these values do not need to be changed.

        -Otto

Reply via email to