NAME | SYNOPSIS | ADDENDUM | EXAMPLES | ATTRIBUTES | SEE ALSO | NOTES
When Solaris Resource Manager is installed, it includes the Solaris Resource Manager CPU scheduler, which has a class name of "SHR." The dispadmin command can be used to identify the presence of the SHR class and to get or set the time slice quantum used by the SHR scheduler.
The SHR scheduler uses the same range of global scheduling priorities as the TS scheduling class (see ts_dptbl(4)). However, the priority assignments of processes are dynamically managed by the SHR scheduler to achieve CPU run-rate sharing for users, without the use of a dispatcher table. Consequently, there is no separate loadable module to provide this table.
The remaining parameter, the time slice quantum, may be examined and modified on a running system. The time slice quantum is the length of the time quantum allocated to processes in ticks (Hz). A CPU-bound process will usually run for the duration of the quantum before being preempted in favor of any higher priority process. The default time slice quantum of 11 ticks is a reasonable compromise between interactive responsiveness and system overheads due to process context switching. Larger values could be used on systems where the workload is CPU-bound and non-interactive. Smaller values may improve interactive responsiveness at the cost of increased context switching.
The -l option displays configured scheduler classes, typically:
CONFIGURED CLASSES |
|
SYS | (System Class) |
SHR | ((SHR) SRM Scheduler) |
. . . |
|
The following command retrieves the current quantum for the SHR class from kernel memory and writes it to the standard output. The time quantum value is expressed in hundredths of a second.
dispadmin -c SHR -g -r 100
The output might be:
# # (SHR) SRM Scheduler Configuration # Resolution=100 # Resolution Quantum=11 # Global time quantum for all processes
If this were saved in a file, shr.config, for example, the values could be edited and the quantum used by the kernel overwritten with the command:
dispadmin -c SHR -s shr.config
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Architecture | SPARC |
Availability | SUNWsrmb |
priocntl(1), ts_dptbl(4), priocntl(1MSRM), srm(5SRM)
Solaris Resource Manager 1.3 System Administration Guide
This man page is applicable to SunOS 5.6, SunOS 5.7, and SunOS 5.8.
NAME | SYNOPSIS | ADDENDUM | EXAMPLES | ATTRIBUTES | SEE ALSO | NOTES