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 kucharsk@mac.com _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
William Kucharski