From owner-cvs-src@FreeBSD.ORG Sat Jan 31 22:01:54 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60F6B16A4CE; Sat, 31 Jan 2004 22:01:54 -0800 (PST) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7D1443D39; Sat, 31 Jan 2004 22:01:52 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86])i1161q5O008074; Sun, 1 Feb 2004 17:01:52 +1100 Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) i1161ot4018370; Sun, 1 Feb 2004 17:01:50 +1100 Date: Sun, 1 Feb 2004 17:01:49 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Don Lewis In-Reply-To: <200402010335.i113Yt7E096311@gw.catspoiler.org> Message-ID: <20040201165625.U7412@gamplex.bde.org> References: <200402010335.i113Yt7E096311@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: jeff@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern sched_4bsd.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 06:01:54 -0000 On Sat, 31 Jan 2004, Don Lewis wrote: > 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. Traversing the run queues in sched_load() every 5 seconds might be more efficient than maintaing the count. > 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 ... They were never counted AFAIK. Isn't this one of the main visible differences between BSD and Linux? Rev.1.163 ov kern_synch.c just moved stuff. The change before this in rev.1.59 of vm_meter.c is more likely to have changed this but was supposed to just remove dead code. Bruce