Go to main content

Managing System Information, Processes, and Performance in Oracle® Solaris 11.4

Exit Print View

Updated: October 2019
 
 

How to Designate a Process Priority

  1. Assume the root role.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  2. Start a process with a designated priority.
    # priocntl -e -c class -m user-limit -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), and FX (fixed priority).

    –m user-limit

    Specifies the maximum amount you can raise or lower your priority, when you use the –poption with this option.

    –p PRI

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

    command-name

    Specifies the name of the command that will be executed.

  3. Verify the process status.
    # ps -ecl | grep command-name
Example 10  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