DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Tuning CPU resources

Controlling process preemption -- preemptive

On multiprocessor systems, the scheduler looks for a CPU on which to run a process when that process becomes runnable, or when its time slice has expired. The scheduler first looks for an idle CPU. If it cannot find an idle CPU, it next considers preempting the process on the current CPU if it has a lower priority; it is quicker to preempt the current process as this does not require an interprocessor interrupt. With some application mixes, however, this can increase the number of context switches. For example, when a database server wakes a client, it may be more efficient, in terms of system resources, for the server to continue to run for a period of time after that wakeup.

To prevent the scheduler from preempting the current processor, change the value of preemptive to 0.


Next topic: Load balancing -- loadbalance
Previous topic: Controlling cache affinity -- cache_affinity

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003