Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2004 22:59:14 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Jeff Roberson <jroberson@chesapeake.net>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern sched_4bsd.c
Message-ID:  <20040201224736.P8564@gamplex.bde.org>
In-Reply-To: <20040201012325.U36463-100000@mail.chesapeake.net>
References:  <20040201012325.U36463-100000@mail.chesapeake.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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