Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2004 19:34:55 -0800 (PST)
From:      Don Lewis <truckman@FreeBSD.org>
To:        jeff@FreeBSD.org
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern sched_4bsd.c
Message-ID:  <200402010335.i113Yt7E096311@gw.catspoiler.org>
In-Reply-To: <200402010246.i112klt8019452@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 31 Jan, Jeff Roberson wrote:
> jeff        2004/01/31 18:46:47 PST
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             sched_4bsd.c 
>   Log:
>    - Keep a variable 'sched_tdcnt' that is used for the local implementation
>      of sched_load().  This variable tracks the number of running and runnable
>      non ithd threads.  This removes the need to traverse the proc table and
>      discover how many threads are runnable.

I was suprised to find that processes in disk wait are no longer counted
towards the load average.  This happened in rev 1.163 of kern_synch.c,
which  was committed more than two years ago.

Even if CPU time is available, a machine with a lot of processes stuck
in disk wait is going to feel slow ...



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