* resource limits on "interactive" processes
@ 1995-03-22 20:42 Charles C. H. Jui
0 siblings, 0 replies; 4+ messages in thread
From: Charles C. H. Jui @ 1995-03-22 20:42 UTC (permalink / raw)
To: tru64-unix-managers
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)...
thanks
Charlie Jui
Physics Department
University of Utah
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: resource limits on "interactive" processes
@ 1995-03-22 21:56 Nelson H. F. Beebe
0 siblings, 0 replies; 4+ messages in thread
From: Nelson H. F. Beebe @ 1995-03-22 21:56 UTC (permalink / raw)
To: tru64-unix-managers
Charlie Jui asks about user CPU limits in OSF/1...
Take a look at "man setrlimit". It says:
Because this information is stored in the per-process information, and
inherited by fork(), the setrlimit() function should be executed directly
by the shell in order to affect all future processes created by the shell.
Thus, limit is a built-in command to the shells.
This suggests that it is not accessible in the way I think you want: a
simple management-settable parameter. On HP-UX 9.x, one CAN do this
quite easily inside sam (the HP GUI admin tool). However, I've yet
to find an analog of HP sam or Sun admintool or IBM smit on DEC OSF/1
(or Digital UNIX, as it now officially is called).
========================================================================
Nelson H. F. Beebe Tel: +1 801 581 5254
Center for Scientific Computing FAX: +1 801 581 4148
Department of Mathematics, 105 JWB Internet: beebe@math.utah.edu
University of Utah
Salt Lake City, UT 84112, USA
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: resource limits on "interactive" processes
@ 1995-03-23 13:43 Paul David Fardy
0 siblings, 0 replies; 4+ messages in thread
From: Paul David Fardy @ 1995-03-23 13:43 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* resource limits on "interactive" processes
@ 1995-03-23 14:45 Paul David Fardy
0 siblings, 0 replies; 4+ messages in thread
From: Paul David Fardy @ 1995-03-23 14:45 UTC (permalink / raw)
To: tru64-unix-managers
Charles C. H. Jui <jui@phoebe.physics.utah.edu> wrote:
>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
------- End of Forwarded Message
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-03-23 14:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-23 14:45 resource limits on "interactive" processes Paul David Fardy
-- strict thread matches above, loose matches on Subject: below --
1995-03-23 13:43 Paul David Fardy
1995-03-22 21:56 Nelson H. F. Beebe
1995-03-22 20:42 Charles C. H. Jui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox