setting priority level

Steve DeJarnett steve at qe2.awdpa.ibm.com
Fri Nov 2 07:29:27 AEST 1990


In article <BIS.90Oct31144735 at krokrygg.uio.no> bis at 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 at 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.......



More information about the Comp.unix.aix mailing list