From owner-freebsd-current Tue Apr 4 13:50:22 2000 Delivered-To: freebsd-current@freebsd.org Received: from queeg.ludd.luth.se (queeg.ludd.luth.se [130.240.16.109]) by hub.freebsd.org (Postfix) with ESMTP id 9B28237BC81 for ; Tue, 4 Apr 2000 13:50:17 -0700 (PDT) (envelope-from pantzer@ludd.luth.se) Received: from speedy.ludd.luth.se (pantzer@speedy.ludd.luth.se [130.240.16.164]) by queeg.ludd.luth.se (8.9.3/8.9.3) with ESMTP id WAA06304; Tue, 4 Apr 2000 22:49:53 +0200 (CEST) Message-Id: <200004042049.WAA06304@queeg.ludd.luth.se> X-Mailer: exmh version 2.1.1 10/15/1999 To: Donn Miller Cc: current@FreeBSD.ORG Subject: Re: Load average calculation? In-Reply-To: Message from Donn Miller of "Mon, 03 Apr 2000 16:26:03 EDT." <38E8FE5B.CD2FD3E6@cvzoom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Apr 2000 22:49:52 +0200 From: Mattias Pantzare Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Patrick Mau wrote: > > > On all Unix-like systems I know, the load average is the average mumber > > of processes running during a given time interval. I can't see what use > > it may have to count load for _waiting_ processes. > > > > I/O load is not process load, if a process waits for I/O completion it does > > not use up its timeslice. > > I think we ought to re-examine the definition of load average. By > load, we mean an actual load on the cpu, and waiting processes aren't > really exerting a cpu load. So, by that reasoning I say waiting > processes don't count. The load average number is not a measure of the CPU load. It is a measure of _system_ load. Processes in short term wait count so that the load on the disks is accounted for. The load on the disks is often the most important factor. Use vmstat if you need the CPU load. Use iostat for the disk load. Use the load average to get both. (No, this is not a new thing in FreeBSD, this is how it works in all the operating systems that are based on BSD) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message