From owner-freebsd-questions@FreeBSD.ORG Mon Feb 23 23:21:30 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 161881065670 for ; Mon, 23 Feb 2009 23:21:30 +0000 (UTC) (envelope-from fbsdlilly@gmail.com) Received: from mail-fx0-f168.google.com (mail-fx0-f168.google.com [209.85.220.168]) by mx1.freebsd.org (Postfix) with ESMTP id 5E4548FC0A for ; Mon, 23 Feb 2009 23:21:29 +0000 (UTC) (envelope-from fbsdlilly@gmail.com) Received: by fxm12 with SMTP id 12so2990743fxm.19 for ; Mon, 23 Feb 2009 15:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=f0HQX0QPR9bd7FFJ+WWGy0tdM52Ok4z2vf0a4/8EXM0=; b=piLjQm4iYnNKYKV+sFIZhgh01oFn1hy8VsvuMtrhr9Nhi3YXBqdCiXiF+UTeSEdJB9 Qo/CoELwYnIGjaJu/fridseggB2uLY2dE0gdvPK71RAtzLwq6Oi54jE8d8k2tiIVRgbu 5I/j1AE9f7Vf+CqrIKxkf+moEw8V5eFFc/Mog= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LDBgZOC0rHOlLM0UeO/cG58/RkLpMwX8XI/KrYcKYsHtg4Z8PGHpeh0TdY6o7SNfsJ dHGAjbp7W/j922u5nwOp1wQCbSk2KpcK5vKs7zKQRbl83N/hems+qxBPkkvHFwF6n6S6 VQPeGqvAdb0m0miS6k8D9Dlf5/4eBXre8XLA0= MIME-Version: 1.0 Received: by 10.103.217.5 with SMTP id u5mr3869942muq.42.1235431288461; Mon, 23 Feb 2009 15:21:28 -0800 (PST) In-Reply-To: <20090221180331.GB71010@melon.esperance-linux.co.uk> References: <20090221180331.GB71010@melon.esperance-linux.co.uk> Date: Mon, 23 Feb 2009 15:21:28 -0800 Message-ID: From: mojo fms To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Top returning 0.0% cpu usage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 23:21:30 -0000 last pid: 11406; load averages: 0.07, 0.02, 0.00 up 2+20:54:15 15:36:35 23 processes: 1 running, 22 sleeping CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 0.0% idle That is what it is displaying, the load adverage isnt it, its just the CPU stats. It always displays 0.0% all the way across the board with the machine idle or doing any kind of work. On Sat, Feb 21, 2009 at 10:03 AM, Frank Shute wrote: > On Fri, Feb 20, 2009 at 01:07:54PM -0800, mojo fms wrote: > > > > What would cause top to report back 0.0% cpu usage across the top row? > It > > shows the minmal adverage and max correctly and seems to show the correct > > amount for the processes. > > How about showing us the lines of top that seem to be a problem? > > I think you are reading the load averages which have a different > meaning than "current cpu usage". They are the load averages over 1, 5 > & 15 mins respectively. ie: the average number of processes *running* > (processes spend most of their time "idle". RUN in the State column of > top shows when a process is actually using the cpu). > > If your machine is virtually idle then the 1 minute load average will > be 0 or close to 0 and is normal. > > If you've just turned on your machine or it's been sitting idle for 15 > mins then the other load averages will also be 0. > > E.g: On this machine doing not a lot: > > last pid: 96158; load averages: 0.00, 0.04, 0.05 up 1+23:50:42 > 17:41:46 > > (7.1 RELEASE) > > > > > Copyright (c) 1992-2009 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > > The Regents of the University of California. All rights reserved. > > FreeBSD is a registered trademark of The FreeBSD Foundation. > > FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 > > root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > CPU: Intel Pentium III (996.77-MHz 686-class CPU) > > Origin = "GenuineIntel" Id = 0x68a Stepping = 10 > > [snip] > > Regards, > > -- > > Frank > > > Contact info: http://www.shute.org.uk/misc/contact.html > >