Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2008 03:15:19 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern sched_ule.c
Message-ID:  <200803100315.m2A3FKc6019027@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jeff        2008-03-10 03:15:19 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             sched_ule.c 
  Log:
  Reduce ULE context switch time by over 25%.
  
   - Only calculate timeshare priorities once per tick or when a thread is woken
     from sleeping.
   - Keep the ts_runq pointer valid after all priority changes.
   - Call tdq_runq_add() directly from sched_switch() without passing in via
     tdq_add().  We don't need to adjust loads or runqs anymore.
   - Sort tdq and ts_sched according to utilization to improve cache behavior.
  
  Sponsored by:   Nokia
  
  Revision  Changes    Path
  1.228     +52 -52    src/sys/kern/sched_ule.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803100315.m2A3FKc6019027>