The dispadmin(1M) 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 options shown in Table 8-2 are also available.
Table 8-2 Class Options for the dispadmin(1M) Utility
Option |
Meaning |
---|---|
-l |
Lists scheduler classes currently configured |
-c |
Specifies the class whose parameters are to be displayed or 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 containing the dispatch parameters can also be loaded during runtime. Use this file to establish a new set of priorities replacing the default values 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(4), and are listed in the example at the end of this section.
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(4)
An rt_dptbl(4) module that provides the dispatch parameters and a routine to return pointers to config_rt_dptbl
The dispadmin(1M) executable
Load the class specific module with the following command, where module_name is the class specific module:
# modload /kernel/sched/module_name |
Invoke the dispadmin(1M) 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.