git: kernel - usched_dfly revamp (7), bring back td_release, sysv_sem, weights

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Sep 25 12:56:52 PDT 2012


commit e3e6be1f3ada3078bf270c3a65637a84a95c4585
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Sep 25 11:53:58 2012 -0700

    kernel - usched_dfly revamp (7), bring back td_release, sysv_sem, weights
    
    * Bring back the td_release kernel priority adjustment.
    
    * sysv_sem now attempts to delay wakeups until after releasing its token.
    
    * Tune default weights.
    
    * Do not depress priority until we've become the uschedcp.
    
    * Fix priority sort for LWKT and usched_dfly to avoid context-switching
      across all runable threads twice.

Summary of changes:
 sys/conf/options                 |    1 +
 sys/kern/kern_fork.c             |    6 ++--
 sys/kern/lwkt_thread.c           |   25 ++++++++++----
 sys/kern/sysv_sem.c              |    7 +++-
 sys/kern/usched_bsd4.c           |    7 +++-
 sys/kern/usched_dfly.c           |   67 ++++++++++++++++++++++++++++++--------
 sys/kern/usched_dummy.c          |    6 +++
 sys/platform/pc32/i386/trap.c    |   14 ++++----
 sys/platform/pc64/x86_64/trap.c  |    5 ++-
 sys/platform/vkernel/i386/trap.c |   14 ++++----
 sys/sys/thread2.h                |    2 +-
 sys/sys/usched.h                 |    6 +++-
 12 files changed, 114 insertions(+), 46 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list