* Default priority for background jobs?
@ 2001-07-07 14:04 Stefan A. Deutscher
2001-07-07 19:15 ` Florian Weps
2001-07-09 2:28 ` Eric Bennett
0 siblings, 2 replies; 3+ messages in thread
From: Stefan A. Deutscher @ 2001-07-07 14:04 UTC (permalink / raw)
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
--
============================================================================
Stefan A. Deutscher |
Donostia International Physics Center | office: ++34-943-018174
Universidad del Pais Vasco, Facultad de Quimica | fax : ++34-943-015600
Departamento de Fisica de Materiales | home : ++34-943-270647
Apartado 1072, San Sebastian 20080, Spain | email : sad@utk.edu
============================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Default priority for background jobs?
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
1 sibling, 0 replies; 3+ messages in thread
From: Florian Weps @ 2001-07-07 19:15 UTC (permalink / raw)
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"
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Default priority for background jobs?
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
1 sibling, 0 replies; 3+ messages in thread
From: Eric Bennett @ 2001-07-09 2:28 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-07-09 2:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox