kernel - Dynamically size lwkt_cache_threads free cache
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 12 Dec 2011 17:22:43 +0000 (09:22 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 12 Dec 2011 17:22:43 +0000 (09:22 -0800)
commit7b234d8c60cd20129c9a81e141e50e6b2d79a4a4
tree74684d4164831d2cbe203daf40f107b5caab1e5b
parent522120720f895f17f7ab9b1d58b89d96e3968dd4
kernel - Dynamically size lwkt_cache_threads free cache

* Change the default # of free LWKT threads from 32 to 4*ncpus, with
  a minimum of 32.

* Improves performance on systems with more than 8 cores.

* NULL-out some fields on thread free as a safety.
sys/kern/lwkt_thread.c