Thanks to --------- ed@the7thbeer.com scotrn <scotrn@cox.net> amit mahajan <amahajan@santelnet.com> Mike's List <mikelist@sky.net> Wolf Schaefer <schaefer4@llnl.gov> Original Question ----------------- I have a problem where one user of a group I belong to spawned a lot of processes without killing them. When I tried to log in and vfork reported a failure (No process available). I logged in as root and rebooted the machine. Is there any way to increase the number of processes (PID) available to a group of users? System is: Sun Os 5.5 Generic_103093-27 sun4m sparc, SPARC, CPU-5V Answers ------- You probably want to look at three tunables. In short order. max_nprocs: derived as 10+(16 x maxusers) maxusers: see above. Affects many other tunables, however. reserved_procs: numbers of reserved processes that can run in the process table, only as UID 0. Defaults to 5, I ususally run the box, ps -ef and grep for UID 0/root processes, add 10 and change in /etc/system in the event of just such an issue you experience. :) ..... The maxusers kernel parameter is the one most often tuned. By default, it is set to the number of Mb of physical memory or 1024, whichever is lower. It cannot be set higher than 2048. Several kernel parameters are set when maxusers is set unless otherwise overridden by the /etc/system file. Some of these formulas differ between different versions of Solaris: max_nprocs: Number of processes = 10 + (16 x maxusers) ufs_ninode: Inode cache size = (17xmaxusers)+90 (Solaris 2.5.1) or 4x(maxusers + max_nprocs)+320 (Solaris 2.6-8). ncsize: Name lookup cache size = (17xmaxusers)+90 (Solaris 2.5.1) or 4x(maxusers + max_nprocs)+320 (Solaris 2.6-8). ndquot: Quota table size = (maxusers x 10) + max_nprocs maxuproc: User process limit = max_nprocs - 5 ..... I think you can edit /etc/system and have the following line: set pt_cnt=256 set maxusers=64 Not sure if you need both or not, but you can try it and see... /etc/system = the kernel, so you'll have to reboot, might want to search the www.sunmanagers.org archive first (not google.com) and docs.sun.com and sunsolve.sun.com .... Add the following line to your /etc/system file and reboot with option -r. From the ok prompt boot -r, from the UNIX command line reboot -- -r. set pt_cnt=127 Wolf Thanks - Alex _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Wed May 8 22:28:24 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:42 EST