From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,ffdb43a4a5360b3a X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-07-08 19:28:45 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!ericb From: Eric Bennett Newsgroups: comp.unix.tru64 Subject: Re: Default priority for background jobs? Date: Sun, 08 Jul 2001 22:28:39 -0400 Organization: Cornell University Sender: emb22@cornell.edu (on emb22.resnet.cornell.edu) Message-ID: <9ib4sn$ilr$2@news01.cit.cornell.edu> References: <3b4708d3_1@news2.prserv.net> NNTP-Posting-Host: emb22.resnet.cornell.edu X-Trace: news01.cit.cornell.edu 994645719 19131 128.253.200.106 (9 Jul 2001 02:28:39 GMT) X-Complaints-To: usenet@news01.cit.cornell.edu NNTP-Posting-Date: 9 Jul 2001 02:28:39 GMT User-Agent: MT-NewsWatcher/3.0 (PPC) Xref: archiver1.google.com comp.unix.tru64:3231 In article <3b4708d3_1@news2.prserv.net>, sad@utk.edu wrote: > Hi all, > > I am running a bunch of Tru64 machines (Compaq XP-1000 and ES-40) > which are used both as compute servers and interactive workstations. > Alas, it seems too hard for some of the users to (bother to) submit > background jobs with nice, which makes interactive work unpleasant for > others. > > Is there a way to get Tru64 to take care of that? I know I can write a > shell script that parses 'top' putput and renice all jobs which take > more than n% of CPU, run for more than m minutes and are not from root, > sys, daemon, ... but before reinventing the wheel I'd rather ask. I > recall that on AIX there are some simple stanzas for that -- what can I > do on Tru64? (In case it matters, am running normal security.) > > OS version is 4.0F and up. > > Cheers, > Stefan This isn't exactly what you want, but you could consider enabling autonice, where the system lowers the priority of processes after they have consumed a certain amount of CPU time. It's set by the "autonice", "autonice-time" and "autonice-penalty" kernel attributes, which you can change with dxkerneltuner (in the "proc" category). Turn it on by changing the value of autonice from 0 to 1. autonice-time is the amount of CPU time, in seconds, after which autonicing occurs, and autonice-penalty is the nice level that's applied. -- Eric Bennett ( http://www.pobox.com/~ericb/ ) Cornell University / Chemistry & Chemical Biology The threat to cancel Mac Office 97 is certainly the strongest bargaining point we have, as doing so will do a great deal of harm to Apple immediately. -Ben Waldman, Microsoft Corporation, 1997 internal memo