From owner-freebsd-questions@FreeBSD.ORG Fri Feb 2 07:34:30 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B013916A402 for ; Fri, 2 Feb 2007 07:34:30 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 7952013C428 for ; Fri, 2 Feb 2007 07:34:30 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l127YT3M022747 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 1 Feb 2007 23:34:30 -0800 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l127YTUu026100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 1 Feb 2007 23:34:29 -0800 Message-ID: <45C2E97D.2050702@u.washington.edu> Date: Thu, 01 Feb 2007 23:34:21 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (X11/20070122) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.1.232434 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: interpreting "top" output (computing n% cpu usage in actual megahertz) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2007 07:34:30 -0000 Mark Jayson Alvarez wrote: > Hi, > > > My goal is to find out how much CPU a program consumes when I execute it. > In the manual, it says I can toggle from "raw cpu" mode to "weighted cpu". > However, I can't still understand the difference between the two and how it > has something to > do with my goal. Suppose my computer has a 1.6Ghz pentium 4 processor. > I want to know how much is already in use or what percent. I also want to > know how much it has increased > when I run a particular program so that I can decide if this I can install > this program without affecting other > existing critical programs. The same goes with memory usage.. "Free doesn't > mean that that are all my > memory left that is useable right? > The "Description of Memory" section just says: > Active: number of pages active > Inactive: number of pages inactive > > and so on and so forth without telling what the heck does it mean when a > page is inactive and just what does pages > means.. > > Buf, Free, Wired, Cache... don't know what are these either.. Perhaps I > should consult wiki or google for this. > > That's all for now. > Thanks. Search for weighted in "http://isedj.org/1/51/Li.txt". It gives a description of what "Weighted CPU" is vs raw (or unweighted) CPU. AFAIK for memory, free = unallocated; active = in use; inactive = same as active, but not in use; wired = ?; cache = prefetched instructions?; buf = recently used memory?. Cheers, -Garrett