cvs commit: src/sys/kern sched_ule.c

Jeff Roberson jeff at FreeBSD.org
Tue Jan 15 01:03:09 PST 2008


jeff        2008-01-15 09:03:09 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             sched_ule.c 
  Log:
   - When executing the 'tryself' branch in sched_pickcpu() look at the
     lowest priority on the queue for the current cpu vs curthread's
     priority.  In the case that curthread is waking up many threads of a
     lower priority as would happen with a turnstile_broadcast() or wakeup()
     of many threads this prevents them from all ending up on the current cpu.
   - In sched_add() make the relationship between a scheduled ithread and
     the current cpu advisory rather than strict.  Only give the ithread
     affinity for the current cpu if it's actually being scheduled from
     a hardware interrupt.  This prevents it from migrating when it simply
     blocks on a lock.
  
  Sponsored by:   Nokia
  
  Revision  Changes    Path
  1.222     +5 -4      src/sys/kern/sched_ule.c


More information about the cvs-src mailing list