home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!UB.com!pacbell.com!decwrl!concert!gatech!emory!swrinde!cs.utexas.edu!sdd.hp.com!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!news.stolaf.edu!guenther
- From: guenther@stolaf.edu (Philip A Guenther)
- Subject: Re: Bringing a Sun to it's knees
- In-Reply-To: karrer@bernina.ethz.ch's message of Tue, 26 Jan 1993 18:14:04 GMT
- Message-ID: <GUENTHER.93Jan26183131@amcl5.stolaf.edu>
- Lines: 40
- Sender: news@news.stolaf.edu
- Organization: Academic Computing Center, St. Olaf College
- References: <T6AXBYAV@cc.swarthmore.edu>
- <1993Jan25.221022.28758@ra.msstate.edu>
- <1993Jan26.181404.27975@bernina.ethz.ch>
- Date: Wed, 27 Jan 1993 00:31:46 GMT
- Lines: 40
-
- In article <1993Jan26.181404.27975@bernina.ethz.ch> karrer@bernina.ethz.ch (Andreas Karrer) writes:
-
- [ multi-person discussion regarding infinite forking program ]
- [ and possible stopping with MAXUPRC in kernel config ]
-
- Well, a typical sun runs about 15 processes before any user logs in. thus
-
- #define MAXUPRC (NPROC - 5)
-
- will not do you any good: consider a user who -- perhaps inadvertently --
- creates MAXUPRC zombies: the sysadmin cannot log in anymore and kill
- the parent process.
-
- Aha! Wrong! The sysadmin *can* still login. As getty exec's login
- exec's the shell, you can login. The problem comes when you go to do
- a ps. What the sysadmin could do is 'exec su -f <person at fault>',
- then do 'kill -STOP -1' (This assumes kill is a shell builtin as in
- csh. In bourne shell, do 'exec kill -STOP -1'). This will stop all
- of the user's processes (except the shell), and a 'kill -TERM -1' (The
- -TERM lets the -1 be passed to the kill(2) call) will kill them.
- Unless the person had them catch SIGTERM, in which case it is quite
- clear that this wasn't an accident... (okay, maybe not, but still,
- they better have a *gooood* explanation!)
-
- Something very similar to this happened to me when a cron job I was
- running filled a machine process table with rsh's that where jammed as
- the next was paritally down. There I did a 'exec ps' and could get
- away with it because the cron only ran every 4 hours (I vaguely
- remember).
-
- Philip Guenther
-
- guenther@stolaf.edu
- Student System Programmer
- St Olaf College
- --
- guenther@stolaf.edu (Philip Guenther) | The ACC might agree with me,
- Student Sys Prog, Academic Computing Center | but with that bunch, (and me)
- St Olaf College, Northfield, MN 55057 | you never know... :-| :-( :-)
- "Life makes sense? LIFE MAKES SENSE!?!? Where do people get these ideas?"
-