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

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!gatech!psuvax1!news.cc.swarthmore.edu!ralph.cs.haverford.edu!eoliver
  3. From: eoliver@ralph.cs.haverford.edu (Erik Oliver)
  4. Subject: Bringing a Sun to it's knees
  5. Message-ID: <T6AXBYAV@cc.swarthmore.edu>
  6. Sender: news@cc.swarthmore.edu (USENET News System)
  7. Nntp-Posting-Host: ralph.cs.haverford.edu
  8. Organization: Haverford College Computer Science Department
  9. Date: Mon, 25 Jan 1993 21:01:38 GMT
  10. Lines: 26
  11.  
  12. During our Operating Systems class, we were being asked to see for
  13. ourselves that "modern" operating systems place limits on the number of
  14. processes an individual user can run thus preventing over load.
  15.  
  16. Unfortunately, the following simple C program:
  17. #include <stdio.h>
  18. main()
  19. {
  20. makeproc();
  21. }
  22.  
  23. makeproc()
  24. {
  25. fork();
  26. printf("%d is Making a child\n",getpid());
  27. makeproc();
  28. }
  29.  
  30. Brought our Sun4 running SunOS 4.1.2 to its knees by using up _all_ the
  31. available processes and thus preventing vfork from executing, even
  32. typing ls from an already open shell was impossible.
  33.  
  34. We are thinking of ways to prevent this from happening again, any
  35. suggestions?
  36.  
  37. -Erik
  38.