From: Eric Bennett <ericb@pobox.com>
Subject: Re: Default priority for background jobs?
Date: Sun, 08 Jul 2001 22:28:39 -0400 [thread overview]
Message-ID: <9ib4sn$ilr$2@news01.cit.cornell.edu> (raw)
In-Reply-To: 3b4708d3_1@news2.prserv.net
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
prev parent reply other threads:[~2001-07-09 2:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-07 14:04 Default priority for background jobs? Stefan A. Deutscher
2001-07-07 19:15 ` Florian Weps
2001-07-09 2:28 ` Eric Bennett [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox