kernel - Reduce the size of the callout wheel
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Dec 2012 23:11:46 +0000 (15:11 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Dec 2012 23:11:46 +0000 (15:11 -0800)
commite0bb2265100c4b882ad69417f9055f66e4066370
treec412d4f8810484968d5a507f2e2e33d376ec29d5
parentca55765aeb1b1a6aa5f39b49ea1e514c7ab60178
kernel - Reduce the size of the callout wheel

* The callout wheel is per-cpu but ncallout is calculated based on memory.
  A system with many cpus tended to allocate an excessive amount of memory
  in aggregate for the callout wheels.

* Reduce the size of the per-cpu callout wheel by approximately a factor
  of (ncpus).  On a 16G machine with 8 cores, aggregate callout wheel
  allocations is reduced from 128MB to 16MB.
sys/kern/kern_timeout.c