home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!gatech!psuvax1!news.cc.swarthmore.edu!ralph.cs.haverford.edu!eoliver
- From: eoliver@ralph.cs.haverford.edu (Erik Oliver)
- Subject: Bringing a Sun to it's knees
- Message-ID: <T6AXBYAV@cc.swarthmore.edu>
- Sender: news@cc.swarthmore.edu (USENET News System)
- Nntp-Posting-Host: ralph.cs.haverford.edu
- Organization: Haverford College Computer Science Department
- Date: Mon, 25 Jan 1993 21:01:38 GMT
- Lines: 26
-
- During our Operating Systems class, we were being asked to see for
- ourselves that "modern" operating systems place limits on the number of
- processes an individual user can run thus preventing over load.
-
- Unfortunately, the following simple C program:
- #include <stdio.h>
- main()
- {
- makeproc();
- }
-
- makeproc()
- {
- fork();
- printf("%d is Making a child\n",getpid());
- makeproc();
- }
-
- Brought our Sun4 running SunOS 4.1.2 to its knees by using up _all_ the
- available processes and thus preventing vfork from executing, even
- typing ls from an already open shell was impossible.
-
- We are thinking of ways to prevent this from happening again, any
- suggestions?
-
- -Erik
-