git: kernel - add usched_dfly algorith, set as default for now

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Sep 17 23:22:15 PDT 2012


commit e28d8b158f5ddefb84fa6bead323f0640cff607e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Sep 17 23:17:51 2012 -0700

    kernel - add usched_dfly algorith, set as default for now
    
    * Fork usched_bsd4 for continued development.
    
    * Rewrite the bsd4 scheduler to use per-cpu spinlocks and queues.
    
    * Reformulate the cpu selection algorithm using the topology info.
      We now do a top-down iteration instead of a bottom-up iteration
      to calculate the best cpu node to schedule something to.
    
      Implements both thread push to remote queue and pull from remote queue.
    
    * Track a load factor on a per-cpu basis.

Summary of changes:
 sys/conf/files                            |    1 +
 sys/kern/kern_exit.c                      |    9 +-
 sys/kern/kern_synch.c                     |    2 +
 sys/kern/kern_usched.c                    |    6 +-
 sys/kern/subr_cpu_topology.c              |    4 +-
 sys/kern/usched_bsd4.c                    |  114 +-
 sys/kern/{usched_bsd4.c => usched_dfly.c} | 1804 +++++++++++++----------------
 sys/kern/usched_dummy.c                   |   18 +-
 sys/sys/cpu_topology.h                    |    8 +-
 sys/sys/proc.h                            |    3 +-
 sys/sys/usched.h                          |   11 +
 11 files changed, 931 insertions(+), 1049 deletions(-)
 copy sys/kern/{usched_bsd4.c => usched_dfly.c} (50%)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list