Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2003 10:42:05 +0000
From:      Jeff <jafo@sdf.lonestar.org>
To:        Marc Schneiders <marc@schneiders.org>
Cc:        jason <jason@monsterjam.org>, freebsd-stable@FreeBSD.ORG
Subject:   Re: only 1 processor shown in top?
Message-ID:  <20030315104205.GA12014@SDF.LONESTAR.ORG>
In-Reply-To: <20030314210044.Y19454-100000@voo.doo.net>
References:  <20030314145433.I30904-100000@monsterjam.org> <20030314210044.Y19454-100000@voo.doo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 14, 2003 at 09:01:40PM +0100, Marc Schneiders wrote:
> Date: Fri, 14 Mar 2003 21:01:40 +0100 (CET)
> From: Marc Schneiders <marc@schneiders.org>
> To: jason <jason@monsterjam.org>
> Cc: <freebsd-stable@FreeBSD.ORG>
> Subject: Re: only 1 processor shown in top?
> X-URL: http://www.bijt.net/
> 
> On Fri, 14 Mar 2003, at 14:57 [=GMT-0500], jason wrote:
> 
> > freebsd heads..
> > ...
> > but when I run top, I only see 1 cpu..
> > ...
> > is this expected?
> 
> What is wrong with it? The CPU used on a particular process pops up in
> the stuff below what you quote:
> 

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. (Also to make sure that none have been de-configured due to hardware
problems). There is an option to turn off the per-cpu stats, because once you
get to > 8 cpu's, it takes up quite a bit of screen real estate.

I would say it is just eye candy, but then per-cpu stats is about the only
thing in top that you can't find in ps, vmstat, and uptime.

-- 
jafo@sdf.lonestar.org                  http://www.jeffenstein.org/
"Bother," said Pooh as he struggled with /etc/sendmail.cf, "It never
does quite what I want. I wish Christopher Robin was here."
    -- Peter da Silva in a.s.r

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?20030315104205.GA12014>