home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / admin / 10820 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.5 KB  |  56 lines

  1. Newsgroups: comp.sys.sun.admin
  2. 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
  3. From: guenther@stolaf.edu (Philip A Guenther)
  4. Subject: Re: Bringing a Sun to it's knees
  5. In-Reply-To: karrer@bernina.ethz.ch's message of Tue, 26 Jan 1993 18:14:04 GMT
  6. Message-ID: <GUENTHER.93Jan26183131@amcl5.stolaf.edu>
  7. Lines: 40
  8. Sender: news@news.stolaf.edu
  9. Organization: Academic Computing Center, St. Olaf College
  10. References: <T6AXBYAV@cc.swarthmore.edu>
  11.     <1993Jan25.221022.28758@ra.msstate.edu>
  12.     <1993Jan26.181404.27975@bernina.ethz.ch>
  13. Date: Wed, 27 Jan 1993 00:31:46 GMT
  14. Lines: 40
  15.  
  16. In article <1993Jan26.181404.27975@bernina.ethz.ch> karrer@bernina.ethz.ch (Andreas Karrer) writes:
  17.  
  18.       [ multi-person discussion regarding infinite forking program ]
  19.       [ and possible stopping with MAXUPRC in kernel config ]
  20.  
  21.    Well, a typical sun runs about 15 processes before any user logs in. thus
  22.  
  23.        #define MAXUPRC (NPROC - 5)
  24.  
  25.    will not do you any good: consider a user who -- perhaps inadvertently --
  26.    creates MAXUPRC zombies: the sysadmin cannot log in anymore and kill
  27.    the parent process.
  28.  
  29. Aha!  Wrong!  The sysadmin *can* still login.  As getty exec's login
  30. exec's the shell, you can login.  The problem comes when you go to do
  31. a ps.  What the sysadmin could do is 'exec su -f <person at fault>',
  32. then do 'kill -STOP -1'  (This assumes kill is a shell builtin as in
  33. csh.  In bourne shell, do 'exec kill -STOP -1').  This will stop all
  34. of the user's processes (except the shell), and a 'kill -TERM -1' (The
  35. -TERM lets the -1 be passed to the kill(2) call) will kill them.
  36. Unless the person had them catch SIGTERM, in which case it is quite
  37. clear that this wasn't an accident... (okay, maybe not, but still,
  38. they better have a *gooood* explanation!)
  39.  
  40. Something very similar to this happened to me when a cron job I was
  41. running filled a machine process table with rsh's that where jammed as
  42. the next was paritally down.  There I did a 'exec ps' and could get
  43. away with it because the cron only ran every 4 hours (I vaguely
  44. remember).
  45.  
  46. Philip Guenther
  47.  
  48. guenther@stolaf.edu
  49. Student System Programmer
  50. St Olaf College
  51. --
  52. guenther@stolaf.edu (Philip Guenther)       | The ACC might agree with me,
  53. Student Sys Prog, Academic Computing Center | but with that bunch, (and me)
  54. St Olaf College, Northfield, MN 55057       | you never know... :-| :-( :-)
  55. "Life makes sense?  LIFE MAKES SENSE!?!?  Where do people get these ideas?"
  56.