Date: Thu, 11 Dec 2003 23:33:51 -0800 (PST) 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: <200312120733.hBC7XpdX089921@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jeff 2003/12/11 23:33:51 PST
FreeBSD src repository
Modified files:
sys/kern sched_ule.c
Log:
- Now that we have kseq groups, balance them seperately.
- The new sched_balance_groups() function does intra-group balancing while
sched_balance() balances the available groups.
- Pick a random time between 0 ticks and hz * 2 ticks to restart each
balancing process. Each balancer has its own timeout.
- Pick a random place in the list of groups to start the search for lowest
and highest group loads. This prevents us from prefering a group based on
numeric position.
- Use a nasty hack to stop us from preferring cpu 0. The problem is that
softclock always runs on cpu 0, so it always has a little extra load. We
ignore this load in the balancer for now. In the future softclock should
run on a random cpu and these hacks can go away.
Revision Changes Path
1.89 +130 -47 src/sys/kern/sched_ule.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312120733.hBC7XpdX089921>
