cvs commit: src/sys/kern sched_ule.c
Jeff Roberson
jeff at FreeBSD.org
Mon Mar 10 03:15:20 UTC 2008
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
More information about the cvs-src
mailing list