*BSD News Article 67918


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!usenet.ins.cwru.edu!gatech!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!cs.tu-berlin.de!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD <- - Maximum number of processes?
Date: 7 May 1996 21:04:07 GMT
Organization: Private BSD site, Dresden
Lines: 26
Message-ID: <4mods7$aut@uriah.heep.sax.de>
References: <4mkik8$1ta@orb.direct.ca> <4mkn7t$ivp@charm.il.ft.hse.nl>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

robert@il.ft.hse.nl (robert) wrote:

> With sysctl(8), I found the following value (which can be changed):
> charm:~/News$ sysctl kern.maxproc
> kern.maxproc = 1044

It can be changed, but not by means of sysctl.  (It's value must be
known at system init time, since several table and hash sizes are
derived from it.  RTFM grep(1) :)

/sys/conf/param.c defines this:

#define NPROC (20 + 16 * MAXUSERS)
int     maxproc = NPROC;           /* maximum # of processes */
int     maxprocperuid = NPROC-1;   /* maximum # of processes per user */

...so the correct way to bump it is tweaking `maxusers' in your config
file.  (And now the $ 0.02 question: what's the value of `maxusers' in
your config file? :-)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)