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-07 12:08:10 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!news.uni-stuttgart.de!news.belwue.de!news.tesion.net!newsfeed-zh.ip-plus.net!news.ip-plus.net!not-for-mail From: Florian Weps Newsgroups: comp.unix.tru64 Subject: Re: Default priority for background jobs? Date: 07 Jul 2001 21:15:21 +0200 Organization: Private Sender: fmw@bubulina.localdomain.localnet Message-ID: <87d77cft4m.fsf@bubulina.localdomain.localnet> References: <3b4708d3_1@news2.prserv.net> NNTP-Posting-Host: 195.15.166.133 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: rex.ip-plus.net 994532884 14240 195.15.166.133 (7 Jul 2001 19:08:04 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Sat, 7 Jul 2001 19:08:04 +0000 (UTC) User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Xref: archiver1.google.com comp.unix.tru64:3209 stefand@attglobal.net (Stefan A. Deutscher) writes: > 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. You might want to try the Class Scheduler. It lets you define classes of processes and set up limits on the CPU usage for each class. Check out o The System Configuration and Tuning manual (on-line or on your documentation CD) o the System Administration manual o class_scheduling(4) o class_admin(8) o runclass(1) o classcntl(2) This facility is available at least from 4.0F onward. It works very well, and you don't have to fool around with niceness. Florian -- This thing, that hath a code and not a core, Hath set acquaintance where might be affections, And nothing now Disturbeth his reflections. -- Ezra Pound, "An Object"