From owner-freebsd-stable Sun Jun 6 10:55:31 1999 Delivered-To: freebsd-stable@freebsd.org Received: from pollux.sdata.de (pollux.sdata.de [193.30.133.37]) by hub.freebsd.org (Postfix) with ESMTP id 46E4514BCF for ; Sun, 6 Jun 1999 10:55:27 -0700 (PDT) (envelope-from cs@sdata.de) Received: from sdata.de (vega.sdata.de [193.30.133.36]) by pollux.sdata.de (8.9.3/8.9.2) with ESMTP id TAA54259; Sun, 6 Jun 1999 19:55:22 +0200 (CEST) (envelope-from cs@sdata.de) Message-ID: <375AB620.7285124B@sdata.de> Date: Sun, 06 Jun 1999 19:55:44 +0200 From: Christoph Splittgerber Organization: sdata - C. Splittgerber Datentechnik X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Shaun Rowland Cc: freebsd-stable@freebsd.org Subject: Re: kern/10411: top, vmstat, iostat show 0% cpu idle & usage on SMP system References: <19990606142328.24249.rocketmail@web129.yahoomail.com> <375A87AB.2BC107D7@sdata.de> <87n1ydjmy8.fsf@dhcp9545042.columbus.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Shaun Rowland wrote: > > Another thing comes to my mind: The system reports a loadavg of > > about 2.00, shouldn't it be around 1.00 with two jobs running on two > > CPUs ? > > That depends on your version of top. In Solaris and FreeBSD this > behavior is correct. .. and that's the way loadavg is defined as I just found out in "The Design and Implementation of the 4.[34] BSD Operating System". However, I don't like it too much. I mean my point is: When I call getloadavg(3), most of the time I am interested in my "systems load" and less in my "systems run queue length". E.g. how to find out if it is worth spawning another process/thread. Christoph To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message