git: kernel - Fix estcpu calculation

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Feb 19 17:58:09 PST 2017


commit 51678651ff7394869fdbda610b6d7f1770b80564
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Feb 19 16:46:09 2017 -0800

    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.

Summary of changes:
 sys/kern/usched_dfly.c | 138 ++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 108 insertions(+), 30 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/51678651ff7394869fdbda610b6d7f1770b80564


-- 
DragonFly BSD source repository



More information about the Commits mailing list