From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075318306644.tru64-unix-managers.marc@archive.invalid> From: Paul David Fardy Date: Thu, 23 Mar 1995 13:43:57 +0000 To: tru64-unix-managers Subject: Re: resource limits on "interactive" processes X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075318306644 Your message dated: Wed, 22 Mar 95 13:42:54 MST > >Dear managers: > >I just installed the CERN-enhanced version of NQS 2.7 on our alpha-station. >Per-process resource limits (including CPU time limits) are implemented and >actually works... > >To encourage use of NQS batch queues it would be useful to be able to >impose CPU limits on interactive processes and subprocesses...in a manner >similar to interactive CPU limits on VMS. Can this be done under OSF/1? >(clearly CPU limits are supported under OSF/1 since NQS can enforce it)... > Does NQS support per job CPU limits? For example set cpu_limit to 100 minutes submit job: forever { system("my_big_model"); } If my_big_model runs for 99 minutes and the forever{system} loop has less than a 1 second CPU overhead, this job could run for a year and a half without exceeding per process CPU limits. NQS can enforce per job limits by scanning the process tree and making the parent job process responsible for its descendants. But then you have the problem of monitoring orphans. In the end, the only way to manage cheaters is with accounting. Check the weekly logs to see that total CPU time used is consistant with jobs submission. Give any minor offender a warning; give any seriouse offender a boot to the head :-). Or maybe none of _your_ users try to steal cycles. Paul Fardy -- Paul David Fardy Memorial University of Newfoundland Systems Programmer Elizabeth Avenue Technical Support Group St. John's, NF A1C 5S7 Computing and Communications CANADA