Subject: Re: where to up maxproc at boot?
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Rob Windsor <windsor@warthog.com>
List: netbsd-users
Date: 05/10/2001 10:41:58
Verily did Jukka Marin write:

> I'm constantly running into maxproc limit (in X and elsewhere, now I had
> to restart inetd with a higher maxproc value).
> 
> What is the proper way of setting the default maxproc limit to 200 or
> even higher?  inetd couldn't do an rcp because I had "too many" processes
> running already.. so the maxproc value should be set before starting inetd.
> 
> (Or maybe it's easier to set it at kernel build time?)

You have to set it at kernel build time, I think.  Although it would be
a novel sysctl.

: pioneer:/usr/src/sys/sys; diff -u syslimits.h.FCS syslimits.h
--- syslimits.h.FCS     Sun Jan 14 11:12:44 2001
+++ syslimits.h Sun Jan 14 11:12:53 2001
@@ -42,7 +42,7 @@
 
 #if !defined(_ANSI_SOURCE)
 #define        ARG_MAX          (256 * 1024)   /* max bytes for an exec function */
-#define        CHILD_MAX                  80   /* max simultaneous processes */
+#define        CHILD_MAX                 240   /* max simultaneous processes */
 #define        GID_MAX            2147483647U  /* max value for a gid_t (2^31-2) */
 #define        LINK_MAX                32767   /* max file link count */
 #define        MAX_CANON                 255   /* max bytes in term canon input line */

fwiw, it was bumped to 160 in -current.

Rob++
----------------------------------------
Internet: windsor@warthog.com                             __o
Life: Rob@Carrollton.Texas.USA.Earth                    _`\<,_
                                                       (_)/ (_)
The weather is here, wish you were beautiful.