Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Sep 2008 21:25:38 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Garrett Cooper <yanefbsd@gmail.com>
Cc:        Alex Keda <admin@lissyara.su>, stable@freebsd.org, current@freebsd.org
Subject:   Re: Request for testing - top 3.8b1 in the base system
Message-ID:  <20080928112538.GC13745@k7.mavetju>
In-Reply-To: <7d6fde3d0809280209i3003829bj23baa93f0b271163@mail.gmail.com>
References:  <20080928054620.GA80250@k7.mavetju> <48DF3CFE.7@lissyara.su> <7d6fde3d0809280209i3003829bj23baa93f0b271163@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 28, 2008 at 02:09:00AM -0700, Garrett Cooper wrote:
> On Sun, Sep 28, 2008 at 1:14 AM, Alex Keda <admin@lissyara.su> 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/



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