Date: Wed, 5 Jan 2000 21:44:40 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: max user processes Message-ID: <20000105214440.B14126@strontium.scientia.demon.co.uk> In-Reply-To: <200001051630.RAA36713@dorifer.heim3.tu-clausthal.de> References: <84uuml$vuk$1@atlantis.rz.tu-clausthal.de> <200001051630.RAA36713@dorifer.heim3.tu-clausthal.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Oliver Fromme wrote: > Alexey N. Dokuchaev <danfe@inet.ssc.nsu.ru> wrote in list.freebsd-questions: > > Now, I issue 'sysctl kern.maxproc', which yields 'kern.maxproc: 276' > > Cool so far. > > But when I do 'ulimit -a|grep proc' gives me 'max user processes 275' > > > > Any comments? > > ``ulimit'' is a builtin command of your shell. You didn't say > which shell you're using, so I can only guess that it reserves > one process for some reason (maybe for itself?). Maybe having > a look at the source code might be enlightening. I think it's more likely getting the kern.maxprocperuid sysctl involved somehow. ben@magnesium:~$ sysctl -a | grep maxproc kern.maxproc: 532 kern.maxprocperuid: 531 ben@magnesium:~$ grep maxproc /sys/conf/param.c int maxproc = NPROC; /* maximum # of processes */ int maxprocperuid = NPROC-1; /* maximum # of processes per user */ -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000105214440.B14126>