home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / admin / 5054 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!dunnart!janet
  3. From: janet@cs.uwa.oz.au (Janet Jackson)
  4. Subject: Re: Can I limit the number of concurrent processes *per user*?
  5. Message-ID: <janet.712391290@dunnart>
  6. Sender: usenet@bilby.cs.uwa.edu.au
  7. Nntp-Posting-Host: dunnart
  8. Organization: Dept. Computer Science, University of Western Australia.
  9. References: <1992Jul28.171454.11255@kodak.kodak.com>
  10. Date: Wed, 29 Jul 1992 06:28:10 GMT
  11. Lines: 27
  12.  
  13. In <1992Jul28.171454.11255@kodak.kodak.com> dennett@sunshine.Kodak.COM (Charlie Dennett) writes:
  14.  
  15. >What I'd like to do (besides the obvious) is to limit the number of
  16. >processes this particular user (or any user for that matter) can have
  17. >at any one time.  Can it be done? I know maxusers can limit the size of
  18. >the systems process table, but is is possible to limit individual
  19. >users?
  20.  
  21. You can limit everyone, but as far as I know you can't pick on individual
  22. users.  Under SunOS4.1.1 on a Sparc (and it's probably the same for other
  23. kernel arch's and SunOSes), you change MAXUPRC in
  24. /usr/kvm/sys/sun4c/YOURKERNEL/param.c:
  25.  
  26.    /* we will limit by the number of processes a student can have so they
  27.       cannot fill the process table when learning about fork()
  28.    #define MAXUPRC (NPROC - 5)
  29.    */
  30.    #define MAXUPRC 20
  31.  
  32. This limit then applies to everyone except root.
  33.  
  34.  
  35. Janet Jackson
  36. <janet@cs.uwa.edu.au>
  37. Systems Administrator
  38. Department of Computer Science
  39. The University of Western Australia
  40.