Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Sep 2008 19:49:03 +1000
From:      Edwin Groothuis <edwin@freebsd.org>
To:        Stefan `Sec` Zehl <sec@42.org>
Cc:        stable@freebsd.org, current@Freebsd.org
Subject:   Re: Request for testing - top 3.8b1 in the base system
Message-ID:  <20080928094903.GB13745@k7.mavetju>
In-Reply-To: <20080928093357.GA71582@ice.42.org>
References:  <20080928054620.GA80250@k7.mavetju> <20080928093357.GA71582@ice.42.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 28, 2008 at 11:33:57AM +0200, Stefan `Sec` Zehl wrote:
> Hi,
> 
> On Sun, Sep 28, 2008 at 15:46 +1000, Edwin Groothuis wrote:
> > The new code can be found on
> >     http://www.mavetju.org/~edwin/freebsd-top-3.8b1-A.tar.gz
> > Go to 3.8b1/usr.sbin/top and run "make" there to produce the binary,
> > then run it via "./top".
> 
> compiles and runs fine on my box:
> 
> FreeBSD ice 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #17: Wed Sep  3 23:59:58 CEST 2008     root@ice:/usr/obj/usr/src/sys/ICE  amd64
> 
> > Please report any issues with it (compile time, run time) and a way
> > to reproduce it (if possible). Thanks for your help!
> 
> The number of sleeping processes is much lower than system top:
> 
> oldtop: 480 processes: 3 running, 450 sleeping, 2 stopped, 7 zombie, 18 waiting
> newtop: 190 processes: 3 running, 160 sleeping, 2 stopped, 7 zombie, 18 waiting

Oh yes, I forgot about that:

The old top(1) and new top(1) counts the processes different:

- "ps xauw | wc" gives 265
- "ps xauwH | wc" gives 295 (expand threads)

- old top gives 240 processes.
- old top + "S" (system processes) gives 292 processes.
- old top + "H" (threads) gives 240 "processes"
- old top + "S" (system processes) + "H" (threads) gives 292 "processes"

- new top gives 260 processes
- new top + "S" (system processes) gives 260 processes
- new top + "H" (threads) gives 292 *threads*
- new top + "S" (system processes) + "H" (threads) gives 292 *threads*

This is only for the summary menu, not for the process list.

Thanks for your feedback, it is surely something which needs to be
written down in the official announcement.

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?20080928094903.GB13745>