top/ps: is Active Memory = sum(resident set size)?

0 views
Skip to first unread message

Anton Shterenlikht

unread,
Jan 12, 2010, 9:17:26 AM1/12/10
to freebsd-...@freebsd.org
This has probably been discussed before, so apology for
asking the same question again.

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)?
The sum of ps(1) rss fields is probably the same as
the sum of RES fields of top(1).

I seem to have much bigger Active set than the sum of
all resident (or real) memories used by all processes.

Please advise

many thanks
anton

--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Chuck Swiger

unread,
Jan 12, 2010, 12:46:49 PM1/12/10
to Anton Shterenlikht, freebsd-...@freebsd.org
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

Reply all
Reply to author
Forward
0 new messages