DISPADMIN(8) | Maintenance Commands and Procedures | DISPADMIN(8) |
dispadmin - process scheduler administration
dispadmin -l
dispadmin -c class {-g [-r res] | -s file}
dispadmin -d [class]
The dispadmin command displays or changes process scheduler parameters while the system is running.
dispadmin does limited checking on the values supplied in file to verify that they are within their required bounds. The checking, however, does not attempt to analyze the effect that the new values have on the performance of the system. Inappropriate values can have a negative effect on system performance. (See System Administration Guide: Advanced Administration.)
The following options are supported:
-c class
-d [class]
-g
The -g and -s options are mutually exclusive: you may not retrieve the table at the same time you are overwriting it.
-l
-r res
-s file
Time quantum values for scheduling classes are specified in system clock ticks rather than constant-time units. These values are based on the value of the kernel's hz variable. By default, the system operates at 1000 Hz and thus with a quantum of 1 millisecond. If the kernel tunable hires_tick is set to 0, this drops to 100 Hz for a larger quantum of 10 milliseconds.
The -g and -s options are mutually exclusive: you may not retrieve the table at the same time you are overwriting it.
Example 1 Retrieving the Current Scheduler Parameters for the real-time class
The following command retrieves the current scheduler parameters for the real-time class from kernel memory and writes them to the standard output. Time quantum values are in microseconds.
dispadmin -c RT -g -r 1000000
Example 2 Overwriting the Current Scheduler Parameters for the Real-time Class
The following command overwrites the current scheduler parameters for the real-time class with the values specified in rt.config.
dispadmin -c RT -s rt.config
Example 3 Retrieving the Current Scheduler Parameters for the Time-sharing Class
The following command retrieves the current scheduler parameters for the time-sharing class from kernel memory and writes them to the standard output. Time quantum values are in nanoseconds.
dispadmin -c TS -g -r 1000000000
Example 4 Overwriting the Current Scheduler Parameters for the Time-sharing Class
The following command overwrites the current scheduler parameters for the time-sharing class with the values specified in ts.config.
dispadmin -c TS -s ts.config
/etc/dispadmin.conf
priocntl(1), svcs(1), priocntl(2), FSS(4), fx_dptbl(5), rt_dptbl(5), ts_dptbl(5), attributes(7), smf(7), svcadm(8)
dispadmin prints an appropriate diagnostic message if it fails to overwrite the current scheduler parameters due to lack of required permissions or a problem with the specified input file.
The default scheduling class setting facility is managed by the service management facility, smf(7), under the service identifier:
svc:/system/scheduler:default
Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(8). Note that disabling the service while it is running will not change anything. The service's status can be queried using the svcs(1) command.
October 7, 2008 | OmniOS |