kernel - Improve slab cleanup performance
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Nov 2014 19:55:46 +0000 (11:55 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Nov 2014 19:59:14 +0000 (11:59 -0800)
commit243dbb266d8d7206bccbfa4b4bb18d3a17357dfb
tree854006cdd0df75705b6bba1ace148142cb3752eb
parent3fef2cfd45720f750ca2e039eff2fc8f3f16808e
kernel - Improve slab cleanup performance

* Convert ZoneAry[], FreeZones, and FreeOVZones from singly linked lists
  to doubly linked LISTs.  SLZone structure changes size but globaldata
  should stay the same.

* Primarily affects slab_cleanup() which appears to be able to eat
  an excessive amount of cpu on monster (systems with large amounts
  of memory), and may fix a spin lock timeout panic.

* We may need some more work to moderate the amount of time slab_cleanup()
  takes.
sys/kern/kern_slaballoc.c
sys/sys/slaballoc.h