United States-English |
|
|
HP-UX Reference > Ssched_thread_affinity(5)Tunable Kernel ParametersHP-UX 11i Version 3: February 2007 |
|
NAMEsched_thread_affinity — adjust scheduler thread affinity VALUESAllowed valuesAny value in the range of 1 to 10 is allowed. A value of 1 indicates weak thread affinity, and the threads may run on different processors. A value of 10 indicates strong thread affinity, and the threads will likely remain on the same processor. Recommended valuesUse the default value in normal cases. In special cases where it is imperative that threads run as quickly as possible, a value closer to 1 may be used. However, this may lead to an increase in cache misses. Customers must evaluate the performance impact in their workload environment before changing the value of this tunable on production systems. DESCRIPTIONThe sched_thread_affinity tunable defines on which processor a thread may likely run. A thread with lower affinity may move from one processor to another during its lifetime, whereas a thread with higher affinity will likely experience minimal movement across processors. A change in the sched_thread_affinity value may have direct impact on system throughput and response times. A very small value may result in threads being run much quicker at the possible expense of higher cache misses, and a very large value may result in threads being run less frequently if they have run (or are running) on a loaded processor, with a possible benefit of improved cache affinity. I/O intensive applications are likely to benefit from a lower value for this tunable. When Should the Value of This Tunable Be Raised?Any increase in the value of this tunable will cause most threads to remain on the processor where they have run during their lifetimes. What Are the Side Effects of Raising the Value?Raising the value of the sched_thread_affinity tunable may cause some threads to wait to run, even though there may be less loaded or idle processors in the system. When Should the Value of This Tunable Be Lowered?The sched_thread_affinity tunable value should be lowered if the workload expects to run as quickly as possible, regardless of whether it is moved from processor to processor at the cost of possible increases in cache misses. WARNINGSAll HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tunable values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see HP-UX Release Notes at http://docs.hp.com. |
Printable version | ||
|