Program to renice jobs
Jussi Eloranta
eloranta at tukki.jyu.fi
Sat Oct 20 23:47:44 AEST 1990
In article <1990Oct19.173229.16217 at ucselx.sdsu.edu> nash at ucselx.sdsu.edu (Ron Nash) writes:
>In article <1990Oct19.094659 at granada.mit.edu> andrew at granada.mit.edu (Andrew Gunstensen) writes:
>>Is there a good method of renicing jobs automatically once they
>>have exceeded some CPU time limit? My problem is that we
>>have a large number of (relatively UNIX-clueless) users who
>>tend to run largish background jobs on our Sun network
>>at niceness 0.
>>This noticeably degrades interactive performance. So we
>>would like to be able to run some program/shell script which
>>would check running jobs and if they have more than (say)
>>15 minutes CPU time and (say) they are not the X server (or
>>other jobs which we will allow to use as much time as they
>>like) then renice them down to some lower priority level.
>>
Look into anon. ftp area @ jyu.fi (/pub/local) there should reallynice.c.Z
That should do the job. This should work with sunos 4.0 without any problems.
Jussi
--
============================================================================
Jussi Eloranta Internet(/Bitnet):
University of Jyvaskyla, eloranta at tukki.jyu.fi
Finland [128.214.7.5]
More information about the Comp.unix.admin
mailing list