home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!europa.asd.contel.com!emory!nntp.msstate.edu!news
- From: fwp@CC.MsState.Edu (Frank Peters)
- Subject: Re: Bringing a Sun to it's knees
- Message-ID: <1993Jan25.221022.28758@ra.msstate.edu>
- Sender: news@ra.msstate.edu
- Nntp-Posting-Host: jester.cc.msstate.edu
- Organization: Computing Center, Mississippi State University
- References: <T6AXBYAV@cc.swarthmore.edu>
- Date: Mon, 25 Jan 1993 22:10:22 GMT
- Lines: 33
-
- In article <T6AXBYAV@cc.swarthmore.edu> eoliver@ralph.cs.haverford.edu (Erik Oliver) says:
- : 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.
-
- Interesting. Who came up with that theory? It isn't true and in many
- cases it isn't desirable.
-
- : Unfortunately, the following simple C program:
-
- [ standard infinite loop fork program deleted ]
-
- : 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?
-
- If you look in /sys/conf.common/param.c you will see that MAXUPRC (the
- number of processes per user) is set to 5 less than the total number of
- processes available. Keeping in mind that the overwhelming number of
- Suns are single user-at-a-time desktop workstations this makes sense.
- You don't want a single user workstation holding back a bunch of
- process slots for other users that aren't going to be there.
-
- You can prevent this, of course, by modifying param.c to set MAXUPRC to
- something more conservative. Thats what we do on our multiuser
- systems. Exactly what to set it to depends upon your usage patterns of
- course.
- --
- Frank Peters - UNIX Systems Programmer - Mississippi State University
- Internet: fwp@CC.MsState.Edu - Phone: (601)325-7030 - FAX: (601)325-8921
-