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