Subject: Re: change to top (or top change 8)
To: Chris Gilbert <chris@dokein.co.uk>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-userlevel
Date: 02/25/2003 12:40:37
Jason R Thorpe wrote:

> On Tue, Feb 25, 2003 at 01:05:19AM +0000, Chris Gilbert wrote:
> 
>  > Would people be interested in me applying the attached diff to give more
>  > detail on the memory usage in top, or rather it's more explicit, with
>  > the Memory line now adding up to the total amount of available memory,
>  > and the memory usage saying how much is used for what, my top now shows
>  > output such as:
>  > 
>  > load averages:  0.39,  0.38,  0.36                                    
>  > 00:59:01
>  > 79 processes:  1 runnable, 77 sleeping, 1 on processor
>  > CPU states:  5.9% user,  0.0% nice,  4.4% system,  0.0% interrupt, 89.7%
>  > idle
>  > Memory: 121M Act, 50M Inact, 1184K Wired, 14M Free
>  > Memory usage: 86M Anon, 31M Exec, 68M File, 24K Rsvd
>  > Swap: 641M Total, 181M Used, 461M Free
> 
> This looks good.  Do you really need to be that invasive into the non-NetBSD
> parts of top(1)?

I thought other OSs (maybe HP-UX?) had a different number
of header lines?  Maybe worth looking there (you'll need
http://www.groupsys.com/top/dist/top-3.5beta9.tar.gz to look
at how other operating systems are handled).

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/