home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!madmax.uwaterloo.ca!gordon
- From: gordon@madmax.uwaterloo.ca (Gordon R. Strachan)
- Subject: Re: set/getrlimit and cpu limits
- Message-ID: <BxyuDG.28I@watserv2.uwaterloo.ca>
- Keywords: setrlimit getrlimit cpu limits resources
- Sender: news@watserv2.uwaterloo.ca
- Organization: University of Waterloo
- References: <6778@m1.cs.man.ac.uk>
- Date: Thu, 19 Nov 1992 13:48:51 GMT
- Lines: 20
-
- In article <6778@m1.cs.man.ac.uk> mbdtsmc@uts.mcc.ac.uk (M.D.Cooper) writes:
- >In order for a sensible batch queueing environment to operate it must be
- >possible to limit jobs in specific queues by the amount of cpu time
- >which they consume (so that short jobs can run at higher priority etc.)
- >and so to the question:
- >
- >Is there any way in which these limits can be enforced? If so how?
-
- As far as I have been able to determine, you can't do it under HPUX 8.0. I
- personnally hope it will be possible to do it under 9.0 but who knows.
-
- >Could anyone who knows please send a response either by email (to:
- >mbdtsmc@uts.mcc.ac.uk) or by posting to this group.
-
- What I did to implement a batch daemon was have the batch daemon wake up
- every two minutes and, using the pstat system call (undocumented), get the
- runtime information of the jobs its was running (plus the total of any job's
- children) and, if it was greater than the maximum allowed time, kill it.
-
- Gordon
-