dispadmin Command

The dispadmin utility displays all current process scheduling classes by including the -l command line option during runtime. Process scheduling can also be changed for the class specified after the -c option, using RT as the argument for the real-time class.

The class options for dispadmin are in the following list:

-l

Lists scheduler classes currently configured

-c

Specifies the class with parameters to be displayed or to be changed

-g

Gets the dispatch parameters for the specified class

-r

Used with -g, specifies time quantum resolution

-s

Specifies a file where values can be located

A class-specific file that contains the dispatch parameters can also be loaded during runtime. Use this file to establish a new set of priorities that replace the default values that were established during boot time. This class-specific file must assert the arguments in the format used by the -g option. Parameters for the RT class are found in the rt_dptbl, and are listed in Listing RT Class Dispatch Parameters. For more information, see the rt_dptbl(5) man page.

To add an RT class file to the system, the following modules must be present:

  • An rt_init() routine in the class module that loads the rt_dptbl.

  • An rt_dptbl module that provides the dispatch parameters and a routine to return pointers to config_rt_dptbl.

  • The dispadmin executable.

The following steps install a RT class dispatch table:

  1. Load the class-specific module with the following command, where module_name is the class-specific module.

    # modload /kernel/sched/module_name
    
    
  2. Invoke the dispadmin command.

    # dispadmin -c RT -s file_name
    
    

    The file must describe a table with the same number of entries as the table that is being overwritten.