From owner-freebsd-current@FreeBSD.ORG Sun Sep 28 11:26:09 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A8181065692; Sun, 28 Sep 2008 11:26:09 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: from mail5out.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) by mx1.freebsd.org (Postfix) with ESMTP id 3632F8FC0A; Sun, 28 Sep 2008 11:26:09 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: by mail5out.barnet.com.au (Postfix, from userid 1001) id ED4672218A97; Sun, 28 Sep 2008 21:26:07 +1000 (EST) X-Viruscan-Id: <48DF69CF00003F4A78109C@BarNet> Received: from mail5auth.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail5auth.barnet.com.au", Issuer "*.barnet.com.au" (verified OK)) by mail5.barnet.com.au (Postfix) with ESMTP id A67D121B6458; Sun, 28 Sep 2008 21:26:07 +1000 (EST) Received: from k7.mavetju (ppp121-44-55-162.lns10.syd7.internode.on.net [121.44.55.162]) by mail5auth.barnet.com.au (Postfix) with ESMTP id 58560221882A; Sun, 28 Sep 2008 21:26:07 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 861796A0; Sun, 28 Sep 2008 21:25:38 +1000 (EST) Date: Sun, 28 Sep 2008 21:25:38 +1000 From: Edwin Groothuis To: Garrett Cooper Message-ID: <20080928112538.GC13745@k7.mavetju> References: <20080928054620.GA80250@k7.mavetju> <48DF3CFE.7@lissyara.su> <7d6fde3d0809280209i3003829bj23baa93f0b271163@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d6fde3d0809280209i3003829bj23baa93f0b271163@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Sun, 28 Sep 2008 11:39:19 +0000 Cc: Alex Keda , stable@freebsd.org, current@freebsd.org Subject: Re: Request for testing - top 3.8b1 in the base system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2008 11:26:09 -0000 On Sun, Sep 28, 2008 at 02:09:00AM -0700, Garrett Cooper wrote: > On Sun, Sep 28, 2008 at 1:14 AM, Alex Keda wrote: > > Some strange. Count running processes not match with system top That has been explained in an email before. > I'm not sure I'm finding an issue, but I do find it interesting that... > 1. It takes a reasonably long amount of time for top to plateau the > WCPU field (approximately 8-10 iterations), whereas ps registering the > WCPU percentage value is almost instantaneous. With ps it takes 10 2 second steps to get the WCPU from 0 to 100, with the new top (which doesn't have WCPU (See Changes file, and the m_freebsd.c file, I don't know of the real reason behind it) anymore) goes from 0 to 100 in 2 2 second steps. > 2. top appears to be doing some interesting rounding that ps isn't > doing (ps registers anywhere between 88.4 and 97% via ps vs 100% via > top for a simple operation like `while [ 1 ] ; do cat /dev/urandom > > /dev/null; done'). On my machine it is ps which rounds it up to 100% and top somewhere between 98.0% and 99.9%. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/