home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp / 13102 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.4 KB  |  33 lines

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