From owner-freebsd-questions Wed Jan 5 19:22:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp6.mindspring.com (smtp6.mindspring.com [207.69.200.110]) by hub.freebsd.org (Postfix) with ESMTP id C1B2A15120 for ; Wed, 5 Jan 2000 19:22:24 -0800 (PST) (envelope-from stuyman@confusion.net) Received: from confusion.net (user-2iveb57.dialup.mindspring.com [165.247.44.167]) by smtp6.mindspring.com (8.9.3/8.8.5) with ESMTP id VAA14467; Wed, 5 Jan 2000 21:34:47 -0500 (EST) Message-ID: <3873FF32.7F57B290@confusion.net> Date: Wed, 05 Jan 2000 21:34:26 -0500 From: Laurence Berland Organization: B.R.A.T.T. X-Mailer: Mozilla 4.5 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 Cc: Oliver Fromme , freebsd-questions@FreeBSD.ORG Subject: Re: max user processes References: <84uuml$vuk$1@atlantis.rz.tu-clausthal.de> <200001051630.RAA36713@dorifer.heim3.tu-clausthal.de> <20000105214440.B14126@strontium.scientia.demon.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What's the best way to set up per user limits on this sort of thing other than the default (maxproc-1)? Ben Smithurst wrote: > > Oliver Fromme wrote: > > > Alexey N. Dokuchaev 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 -- Laurence Berland, Stuyvesant HS Debate <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Windows 98: n. useless extension to a minor patch release for 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1 bit of competition. http://stuy.debate.net icq #7434346 aol imer E1101 The above email Copyright (C) 1999 Laurence Berland All rights reserved To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message