From owner-freebsd-questions Tue Nov 2 6: 4:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 9AAE014BF5 for ; Tue, 2 Nov 1999 06:04:16 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (patr530-a030.otenet.gr [195.167.115.30]) by athserv.otenet.gr (8.9.3/8.9.3) with SMTP id QAA00484 for ; Tue, 2 Nov 1999 16:04:11 +0200 (EET) Received: (qmail 8047 invoked by uid 1001); 2 Nov 1999 13:58:52 -0000 To: freebsd-questions@freebsd.org Subject: Re: increasing kern.maxproc without increasing maxuxsers? References: From: Giorgos Keramidas Date: 02 Nov 1999 15:58:51 +0200 In-Reply-To: The Hermit Hacker's message of "Mon, 1 Nov 1999 19:56:31 -0400 (AST)" Message-ID: <86vh7lq9k4.fsf@localhost.hell.gr> Lines: 29 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "20 Minutes to Nikko" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The Hermit Hacker writes: > Is this possible? I can't seem to find any 'MAXPROC' ddefines in the > kernel sources, so I'm figuring I gottta be looking in the wrong place... From the /usr/src/sys/i386/conf/GENERIC comments, you can read: # The `maxusers' parameter controls the static sizing of a number of # internal system tables by a complicated formula defined in param.c. # maxusers 10 which means that changing maxusers will not actually limit the maximum number of simultaneously logged in users. On the contrary, you can have as many logged in users as your system can afford without running out of resources. However, the value of maxusers is used in calculating the static sizes of some important kernel tables, and one of these is the number of processes. In file /usr/src/sys/compile/GENERIC/param.c we read: #define NPROC (20 + 16 * MAXUSERS) so now you know why setting maxusers will also set the maximum number of processes, during kernel compiles. -- Giorgos Keramidas, "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message