Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2005 20:33:30 +0200
From:      Ulrich Spoerlein <spoerlein@informatik.uni-wuerzburg.de>
To:        Scott Long <scottl@samsco.org>
Cc:        juli mallett <jmallett@FreeBSD.org>, cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/contrib/top commands.c machine.h top.c src/usr.bin/top machine.c
Message-ID:  <20050524183330.GD796@galgenberg.net>
In-Reply-To: <42920B70.9040605@samsco.org>
References:  <200505181330.j4IDU8FV035625@repoman.freebsd.org> <20050523073344.GA65484@dragon.NUXI.org> <20050523160424.GK1201@green.homeunix.org> <429200D1.4040602@samsco.org> <20050523165452.GA10581@toxic.magnesium.net> <42920B70.9040605@samsco.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 23.05.2005 at 10:57:20 -0600, Scott Long wrote:
> >>[...]
> >>WCPU, when displayed, is the weighted cpu percentage (this is the  same
> >>value that ps(1) displays as CPU), CPU is the raw percentage and is the
> >>field that is sorted to determine the order of the processes
> >>[...]
> >>
> >>I'm not sure which FreeBSD you've been using for years, but the numbers 
> >>are almost never the same for all of the machines that I have.
> >
> >I don't know what machines you're using, but on almost all the FreeBSD
> >machines I use, most of the tasks are idle, and thus CPU and WCPU will
> >be the same (0.00, 0.00).  As for running tasks, yes, Brian must be
> >thinking of something else.  That said, the numbers are almost always
> >the same, at least given my sample set.
> 
> Sorry for not being explicit about idle processes.

IFF WCPU is the averaged CPU time, then WCPU == CPU for all constant CPU
loads, be that 0.00, 1.00 or 0.50, as long as it is constant.

Sorry for nitpicking ... :)

Ulrich Spoerlein
-- 
 PGP Key ID: F0DB9F44				Encrypted mail welcome!
Fingerprint: F1CE D062 0CA9 ADE3 349B  2FE8 980A C6B5 F0DB 9F44
Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn."
didn't you understand?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050524183330.GD796>