Go to main content

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

Exit Print View

Updated: August 2021

How to Change Scheduling Parameters of a Timesharing Process

  1. Assume the root role.

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

  2. Change the scheduling parameters of a running timesharing process.
    # priocntl -s -m user-limit [-p user-priority] -i ID type ID list

    Lets you set the upper limit on the user priority range and change the current priority.

    –m user-limit

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

    –p user-priority

    Allows you to designate a priority.

    –i ID type ID list

    Uses a combination of ID type and ID list to identify the process or processes. ID type specifies the type of ID, such as the process ID or the user ID. ID list identifies a list of process IDs or user IDs.

  3. Verify the process status.
    # ps -ecl | grep ID list
Example 11  Changing the Scheduling Parameters of a Timesharing Process

The following example shows how to execute a command with a 500-millisecond time slice, a priority of 20 in the RT class, and a global priority of 120.

# priocntl -e -c RT -m 500 -p 20 myprog
# ps -ecl | grep myprog