kernel - reduce kernel stack use
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 3 Jul 2012 17:22:09 +0000 (10:22 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 3 Jul 2012 17:22:09 +0000 (10:22 -0700)
commit7c76e73a679321a9a4cc0a93178ee93fbda7aaa6
treefb388c2af6935a4372f1e58b9d5f417880d5b275
parentde05b4e13945d4b87355e345403af48000c5931b
kernel - reduce kernel stack use

* fq_dispatcher() was eating 8K+ of kernel stack on x86-64 with a
  (512 x sizeof(pointer) * 2) sized array.  This is way too much kernel
  stack.

* Add a safety to the hz calculation in the lksleep() for hz values < 15.
  vkernels already use low hz values of ~20-ish.

Reported-by: swildner
sys/kern/dsched/fq/fq_core.c