kernel - usched_dfly revamp (3), fix estcpu
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 23 Sep 2012 01:57:06 +0000 (18:57 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 23 Sep 2012 01:57:06 +0000 (18:57 -0700)
commitbc55d64fabb369afb8b8b6a30341793ecea21278
tree6d285569eb22945e0bb8d9ee93c83d559809b3b4
parent09f49d522029d6a76976f2a91fca9e9260ec0c03
kernel - usched_dfly revamp (3), fix estcpu

* Fix the estcpu calculation, which previously assumed only a single
  runq (in usched_dfly there is a runq per cpu).

* Add a global atomic int accounting for all running and runnable lwp's.

* Fix cpu-hogging issues for bursty processes by creating a fast-decay-mode
  for estcpu when a thread first starts up, or after it has been asleep
  for more than 1 seconds.
sys/kern/kern_synch.c
sys/kern/usched_dfly.c
sys/sys/usched.h