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

Controlling cache affinity -- cache_affinity

By default, the scheduler does not gives preference to a process that last executed on a CPU. The advantage of giving preference to these processes is to improve the hit rate on the level-one (L1) cache and L2 caches. As a consequence, the hardware is less likely to have to reload the caches from memory, an action that could slow down the processor. It also means that the process selected to run does not necessarily have the highest priority.

Cache affinity behavior is controlled by the value of the variable cache_affinity. If the value of cache_affinity is changed to 1, the kernel gives preference to processes which previously ran on a CPU Valid data and text is more likely to be found in the caches for small processes. If your system tends to run large processes leave cache_affinity set to 0.


Next topic: Controlling process preemption -- preemptive
Previous topic: Controlling the effective priority of processes -- primove

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