git: kernel - usched_dfly revamp (4), improve tail

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Sep 24 13:35:11 PDT 2012


commit d992c3771baa6d7578bf112b8dbea1326e461f01
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Sep 24 13:32:11 2012 -0700

    kernel - usched_dfly revamp (4), improve tail
    
    * Improve tail performance (many more cpu-bound processes than available
      cpus).
    
    * Experiment with removing the LWKT priority adjustments for kernel vs user.
      Instead give LWKT a hint about the user scheduler when scheduling a thread.
      LWKT's round-robin is left unhinted to hopefully round-robin starved LWKTs
      running in kernel mode.
    
    * Implement a better calculation for the per-thread uload than the priority.
      Instead, use estcpu.
    
    * Adjust default weigntings for new uload calculation scale.

Summary of changes:
 sys/kern/kern_fork.c    |    4 ++
 sys/kern/lwkt_thread.c  |   28 +++++++++-
 sys/kern/usched_bsd4.c  |    4 ++
 sys/kern/usched_dfly.c  |  127 +++++++++++++++++++++++++++++------------------
 sys/kern/usched_dummy.c |    6 ++
 sys/sys/thread.h        |    4 +-
 sys/sys/thread2.h       |    2 +
 sys/sys/usched.h        |    2 +-
 8 files changed, 123 insertions(+), 54 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list