Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2010 09:46:49 -0800
From:      Chuck Swiger <cswiger@mac.com>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: top/ps: is Active Memory = sum(resident set size)?
Message-ID:  <11F836C5-7E9F-4ACC-948F-196EF605F1AB@mac.com>
In-Reply-To: <20100112141726.GA23278@mech-cluster241.men.bris.ac.uk>
References:  <20100112141726.GA23278@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi--

On Jan 12, 2010, at 6:17 AM, Anton Shterenlikht wrote:
> Should the Active memory, as reported by top(1), be equal to the
> sum of rss (the real memory (resident set) size of the process)
> of all processes, as reported by ps(1)?

No.  They aren't measuring the same thing; in a system with plenty of available RAM, processes might be entirely resident because there is no memory pressure to start paging inactive pages out, but only be using a fraction of their address space, in which case active per top will be less than the sum of RSS.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11F836C5-7E9F-4ACC-948F-196EF605F1AB>