kernel - Fix estcpu calculation
commit51678651ff7394869fdbda610b6d7f1770b80564
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 20 Feb 2017 00:46:09 +0000 (19 16:46 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 20 Feb 2017 01:55:24 +0000 (19 17:55 -0800)
treef55e1b4819b6b31f6a4f0f1110f15ebad0c68a92
parentfefad7a79f2a97ff0878b0dc59f938a04a1cece3
kernel - Fix estcpu calculation

* No longer use uload to try to correct estcpu.  It winds up inflating the
  cpu use of other processes that use cpu but are not cpu-bound, creating
  the same estcpu compression problem.  The problem is less pronounced
  without it.

* Remove the uload global.  No longer useful and saves an unnecessary
  cache line ping-pong.

* Refactor how p_nice affects p_priority.  This causes nice levels to have
  a greater effect.

* Make the forkbias programmable with a sysctl and set the default to 1,
  which is a good, safe, all-around default.
sys/kern/usched_dfly.c