1. Maximum number of user processes (William Kucharski)
Hello, I'm trying to build custom kernels and have succeeded in making some changes. The recent email about the Maximum number of users processes intrigues me. I can recompile the kernel and change the max number of user processes. But, is there any way to determine if my changes actually took effect? How about determining if there are new bugs introduced? --Matthew K. Wong Message: 1 Date: Sat, 22 Feb 2003 00:09:54 -0700 From: "William Kucharski" <kucharsk@mac.com> To: "Cameron Knowlton" <cameronk@igods.com> Cc: darwin-kernel@lists.apple.com, macos-x-server@lists.apple.com Subject: Maximum number of user processes 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. End of darwin-kernel Digest _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ 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)
-
Mr. Wong