Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2003 19:57:24 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Jeff <jafo@sdf.lonestar.org>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: only 1 processor shown in top?
Message-ID:  <20030317085724.GC1200@cirb503493.alcatel.com.au>
In-Reply-To: <20030315104205.GA12014@SDF.LONESTAR.ORG>
References:  <20030314145433.I30904-100000@monsterjam.org> <20030314210044.Y19454-100000@voo.doo.net> <20030315104205.GA12014@SDF.LONESTAR.ORG>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 15, 2003 at 10:42:05AM +0000, Jeff wrote:
>Take a look at the HP-UX version of top:
>
>System: tuvok                                         Sat Mar 15 11:31:10 2003
>Load averages: 0.15, 0.10, 0.09
>166 processes: 155 sleeping, 11 running
>Cpu states:
>CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS
> 0    0.06   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
> 1    0.24   0.0%   0.0%   1.0%  99.0%   0.0%   0.0%   0.0%   0.0%
>---   ----  -----  -----  -----  -----  -----  -----  -----  -----
>avg   0.15   0.0%   0.0%   1.0%  99.0%   0.0%   0.0%   0.0%   0.0%
>
>Memory: 78604K (19500K) real, 138544K (32532K) virtual, 39612K free  Page# 1/7
>
>CPU TTY   PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND
>1   ?   22452 root     154 20  1624K  1040K sleep    0:01 13.51  4.46 sshd2
>
>While the HP-UX version doesn't have all the options of the standard top, it
>is nice to be able to see if the load is distributed evenly across all of the
>CPU's.

This would be more difficult on FreeBSD because FreeBSD doesn't accumulate
these statistics on a per-CPU basis.  (For that matter, top doesn't show
per-CPU stats on Tru64 and Tru64 _does_ have the statistics available).

If you really want this information, you're going to need to start by
modifying the kernel to collect the information...

Peter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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