From owner-freebsd-stable Mon Mar 17 0:57:31 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 4745837B405 for ; Mon, 17 Mar 2003 00:57:29 -0800 (PST) Received: from cirb503493.alcatel.com.au (c18609.belrs1.nsw.optusnet.com.au [210.49.80.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB05443F75 for ; Mon, 17 Mar 2003 00:57:27 -0800 (PST) (envelope-from peterjeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.8/8.12.8) with ESMTP id h2H8vQM2001275; Mon, 17 Mar 2003 19:57:26 +1100 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost) by cirb503493.alcatel.com.au (8.12.8/8.12.8/Submit) id h2H8vORJ001274; Mon, 17 Mar 2003 19:57:24 +1100 (EST) Date: Mon, 17 Mar 2003 19:57:24 +1100 From: Peter Jeremy To: Jeff Cc: freebsd-stable@FreeBSD.ORG Subject: Re: only 1 processor shown in top? Message-ID: <20030317085724.GC1200@cirb503493.alcatel.com.au> References: <20030314145433.I30904-100000@monsterjam.org> <20030314210044.Y19454-100000@voo.doo.net> <20030315104205.GA12014@SDF.LONESTAR.ORG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030315104205.GA12014@SDF.LONESTAR.ORG> 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 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