From owner-cvs-all@FreeBSD.ORG Sat Jan 31 19:35:10 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F34BD16A4CE; Sat, 31 Jan 2004 19:35:09 -0800 (PST) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 993C443D46; Sat, 31 Jan 2004 19:35:08 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.9p2/8.12.9) with ESMTP id i113Yt7E096311; Sat, 31 Jan 2004 19:35:03 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <200402010335.i113Yt7E096311@gw.catspoiler.org> Date: Sat, 31 Jan 2004 19:34:55 -0800 (PST) From: Don Lewis To: jeff@FreeBSD.org In-Reply-To: <200402010246.i112klt8019452@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: cvs-src@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-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 03:35:10 -0000 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 ...