pcp
[Top] [All Lists]

Meminfo confusion

To: pcp@xxxxxxxxxxx
Subject: Meminfo confusion
From: Uncle Than <unclethan@xxxxxxxxx>
Date: Thu, 14 Feb 2002 14:57:42 -0800 (PST)
Sender: owner-pcp@xxxxxxxxxxx
I had been under the assumption that 

mem.physmem = mem.util.free + mem.util.shared + mem.util.cached +
mem.util.bufmem.

On a RH7.2 box (kernel 2.4.7-10) this is not the case.
This is due to mem.util.cached being comprised of cache in ram and
cache in swap. As denoted by the new entry (was not in RH7.1 [kernel
2.4.2-2]) in /proc/meminfo, "SwapCached".

This would be a pretty useful metric to grab, as would most of the
other one-liners in /proc/meminfo. So should I:

1) come up with a patch for the the linux pmda?
2) let the maintainers do it?
3) or roll up a new one?

Given the state of my C-code lately .. I would vote for #2 *8)

Than


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

<Prev in Thread] Current Thread [Next in Thread>