Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Feb 2007 23:34:21 -0800
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: interpreting "top" output (computing n% cpu usage in actual	megahertz)
Message-ID:  <45C2E97D.2050702@u.washington.edu>
In-Reply-To: <cf5917110702012213o43ce8becw3a9cd54c2bb52281@mail.gmail.com>
References:  <cf5917110702012213o43ce8becw3a9cd54c2bb52281@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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