summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2007-11-27 03:17:30 +0000
committerjasone <jasone@FreeBSD.org>2007-11-27 03:17:30 +0000
commit4db288d2b346e18e540c270c6b3e1b6ed3bd7b14 (patch)
treed430972af51669ddebf984cee4d6655e511d190b /sys/powerpc
parent21bb948195adb6636c33738cab39bb89cac41bc7 (diff)
downloadFreeBSD-src-4db288d2b346e18e540c270c6b3e1b6ed3bd7b14.zip
FreeBSD-src-4db288d2b346e18e540c270c6b3e1b6ed3bd7b14.tar.gz
Implement dynamic load balancing of thread-->arena mapping, based on lock
contention. The intent is to dynamically adjust to load imbalances, which can cause severe contention. Use pthread mutexes where possible instead of libc "spinlocks" (they aren't actually spin locks). Conceptually, this change is meant only to support the dynamic load balancing code by enabling the use of spin locks, but it has the added apparent benefit of substantially improving performance due to reduced context switches when there is moderate arena lock contention. Proper tuning parameter configuration for this change is a finicky business, and it is very much machine-dependent. One seemingly promising solution would be to run a tuning program during operating system installation that computes appropriate settings for load balancing. (The pthreads adaptive spin locks should probably be similarly tuned.)
Diffstat (limited to 'sys/powerpc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud