cvs commit: src/sys/kern sched_4bsd.c

Bruce Evans bde at zeta.org.au
Sun Feb 1 03:59:25 PST 2004


On Sun, 1 Feb 2004, Jeff Roberson wrote:

> On Sat, 31 Jan 2004, Jeff Roberson wrote:
>
> > jeff        2004/01/31 22:20:18 PST
> >
> >   FreeBSD src repository
> >
> >   Modified files:
> >     sys/kern             sched_4bsd.c
> >   Log:
> >    - Disable ithread binding in all cases for now.  This doesn't make as much
> >      sense with sched_4bsd as it does with sched_ule.
> >    - Use P_NOLOAD instead of the absence of td->td_ithd to determine whether or
> >      not a thread should be accounted for in sched_tdcnt.
>
> Well, this never reports a load of less than 1, but it's more "correct"
> than it was.  Bruce, do you know why it's not going lower than 1?

This is because P_NOLOAD is used before it is set for the pagezero
thread.  Unlike other threads, pagezero sets P_NOLOAD after it starts
running.  So sched_tdcnt is incremented when pagezero is first run.
Then when it switches after setting P_NOLOAD, sched_tdcnt is not
decremented.

Bruce


More information about the cvs-src mailing list