[comp.unix.aix] setting priority level

bis@ifi.uio.no (Bjorn Ivar Stark) (10/31/90)

How do I (as a superuser) change the priority level of an user
process on the rs6000 (I couldn't find the 'procntl' (sys V.4)
command).

And, If I (as a superuser) suspend a user process (by stop), how
do I start it agian.

Forgive my ignorance.
--

						\ystein 

steve@qe2.awdpa.ibm.com (Steve DeJarnett) (11/02/90)

In article <BIS.90Oct31144735@krokrygg.uio.no> bis@ifi.uio.no (Bjorn Ivar Stark) writes:
>How do I (as a superuser) change the priority level of an user
>process on the rs6000 (I couldn't find the 'procntl' (sys V.4)
>command).

	Use /etc/renice

See the info page for more details, but the basic syntax is:

	/etc/renice PRIORITY process-id

Where PRIORITY (when renice is executed by root) can be:

	-20 to 20

Negative numbers raise the processes priority above the priority of normal
processes (e.g. /etc/renice -5 10177 elevates the priority of process 10177 
to -5 -- normal process priority is 0).

	renice can also be applied to users and process groups.  See the info
page for more details.

>And, If I (as a superuser) suspend a user process (by stop), how
>do I start it agian.

	Presuming you did something like:

	kill -STOP 15177

To continue the process type:

	kill -CONT 15177

(Where, obviously, 15177 is replaced by the process ID you're trying to 
stop/start).

>						\ystein 

	Hope that helps.

Steve DeJarnett			Internet: steve@ibminet.awdpa.ibm.com
IBM AWD Palo Alto		UUCP:	  uunet!ibminet.awdpa.ibm.com!steve
(415) 855-3510			IBM VNET: dejarnet at ausvmq
These opinions are my own.  I doubt IBM wants them.......