System Administration Guide: Advanced Administration

How to Change the Class of a Process

  1. (Optional) Become superuser.


    Note –

    You must be superuser or working in a real-time shell to change a process from, or to, a real-time process.


  2. Change the class of a process.


    # priocntl -s -c class -i idtype idlist
    

    -s

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

    -c class

    Specifies the class, TS or RT, to which you are changing the process.

    -i idtype idlist

    Uses a combination of idtype and idlist to identify the process or processes. The idtype specifies the type of ID, such as pid or UID. Use idlist to identify a list of pids or UIDs.

  3. Verify the process status.


    # ps -ecl | grep idlist
    

Example—Changing the Class of a Process

The following example shows how to change all the processes belonging to user 15249 to real-time processes.


# priocntl -s -c RT -i uid 15249
# ps -ecl | grep 15249

Note –

If, as superuser, you change a user process to the real-time class, the user cannot subsequently change the real-time scheduling parameters by using the priocntl -s command.