Maximum number of user processes
Maximum number of user processes
- Subject: Maximum number of user processes
- From: "William Kucharski" <email@hidden>
- Date: Sat, 22 Feb 2003 00:09:54 -0700
For root, you can indeed set the maximum number of processes up to NPROC.
Unfortunately, the number of non-root user processes is hard coded to be
MAXUPRC, which is #defined in xnu/bsd/sys/param.h to be CHILD_MAX, which is
currently 100 (see xnu/bsd/sys/syslimits.h.)
The initialization of limit0.pl_rlimit[RLIMIT_NPROC].rlim_cur to MAXUPRC can be
found in xnu/bsd/kern/bsd_init.c, and the limit to CHILD_MAX can be found in
the dosetrlimit() code in xnu/bsd/kerne_resource.c.
So in short, yes, if you want to increase the maximum number of normal user
processes, you'll need a custom kernel.
William Kucharski
email@hidden
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.