git: kernel - usched_dfly revamp (3), fix estcpu

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Sep 22 19:01:27 PDT 2012


commit bc55d64fabb369afb8b8b6a30341793ecea21278
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Sep 22 18:57:06 2012 -0700

    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.

Summary of changes:
 sys/kern/kern_synch.c  |   33 +++++---------
 sys/kern/usched_dfly.c |  117 ++++++++++++++++++++---------------------------
 sys/sys/usched.h       |    3 +-
 3 files changed, 64 insertions(+), 89 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bc55d64fabb369afb8b8b6a30341793ecea21278


-- 
DragonFly BSD source repository



More information about the Commits mailing list