Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site rtp47.UUCP
Path: utzoo!linus!philabs!prls!amdimage!amdcad!decwrl!decvax!mcnc!rti-sel!rtp47!meissner
From: meissner@rtp47.UUCP (Michael Meissner)
Newsgroups: net.unix-wizards
Subject: Re: auto-niceing processes?
Message-ID: <128@rtp47.UUCP>
Date: Thu, 8-Aug-85 18:24:38 EDT
Article-I.D.: rtp47.128
Posted: Thu Aug  8 18:24:38 1985
Date-Received: Mon, 12-Aug-85 07:07:34 EDT
References: <3086@nsc.UUCP>
Reply-To: meissner@rtp47.UUCP (Michael Meissner)
Distribution: net
Organization: Data General, RTP, NC
Lines: 22

In article <3086@nsc.UUCP> chuqui@nsc.UUCP (Chuq Von Rospach) writes:
>Has anyone out there done any work on setting up certain processes so that
>they automatically nice themselves? I know it can be done by adding
>hardcoded nice() calls to a program and recompiling, but that doesn't seem
>elegant to me -- it also doesn't allow you to deal with programs you don't
>have control of the source. ....

Some thoughts:

    1)	You could have some aging scheme that does the nice automatically,
	after delta amount of time if the program doesn't generate console
	activity.

    2)	Modify the shells, so that anything put into the backround (with &)
	would be automatically niced before exec'ing in the child context.

    3)	Move the offending commands elsewhere, and replace them with a shell
	script (or C program) of the form:
		exec nice -10 /bin/real_cmd $*

	Michael Meissner
	Data General
	...{ ihnp4, decvax }!mcnc!rti-sel!rtp47!meissner