System Administration Guide: Advanced Administration

How to Designate a Process Priority

  1. Become superuser.

  2. Start a process with a designated priority.


    # priocntl -e -c class -m userlimit -p pri command-name
    

    -e

    Executes the command. 

    -c class

    Specifies the class within which to run the process. The valid classes are TS (timesharing), RT (real time), IA (interactive), FSS (fair share), or FX (fixed priority).

    -m userlimit

    Specifies the maximum amount you can raise or lower your priority, when using the -p option.

    -p pri command-name

    Lets you specify the relative priority in the RT class, for a real-time thread. For a timesharing process, the -p option lets you specify the user-supplied priority, which ranges from -60 to +60.

  3. Verify the process status.


    # ps -ecl | grep command-name
    

Example—Designating a Process Priority

The following example shows how to start the find command with the highest possible user-supplied priority.


# priocntl -e -c TS -m 60 -p 60 find . -name core -print
# ps -ecl | grep find