From owner-freebsd-stable Sat Mar 15 2:42:10 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3791337B401 for ; Sat, 15 Mar 2003 02:42:08 -0800 (PST) Received: from sdf.lonestar.org (norge.freeshell.org [216.162.208.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6715E43FBD for ; Sat, 15 Mar 2003 02:42:07 -0800 (PST) (envelope-from jafo@sdf.lonestar.org) Received: (from jafo@localhost) by sdf.lonestar.org (8.12.8/8.12.8) id h2FAg6qs015585; Sat, 15 Mar 2003 10:42:06 GMT Date: Sat, 15 Mar 2003 10:42:05 +0000 From: Jeff To: Marc Schneiders Cc: jason , freebsd-stable@FreeBSD.ORG Subject: Re: only 1 processor shown in top? Message-ID: <20030315104205.GA12014@SDF.LONESTAR.ORG> References: <20030314145433.I30904-100000@monsterjam.org> <20030314210044.Y19454-100000@voo.doo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030314210044.Y19454-100000@voo.doo.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 > To: jason > Cc: > 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