[ILUG] determining how much memory is shared between multiple processes?

Paul Jakma paul at clubi.ie
Mon Oct 4 01:16:57 IST 2004


On Sun, 3 Oct 2004, Justin Mason wrote:

> : jm 1313...; top -b -n1 | grep sharetest
> 23784 jm        16   0 1032 37148  31m 2620    0  0.0  3.6   0:04 sharetest
> 23788 jm        22   0 1032 37148  31m 2620    0  0.0  3.6   0:02 sharetest
>
> : jm 1258...; sudo cat /proc/23784/status

> VmStk+VmExe+VmLib = 2540, which is pretty close to 2620.

Hmm, well it seems to use /proc/.../stat and statm, which dont appear 
to contain quite same values. ah well.

> hmm. wonder if there's an instrumentation module that'd do it...

gdb?

I doubt there's anything that can do it without serious overhead.. 
(be it runtime or else memory).

> --j.

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
Fortune:
Spence's Admonition:
 	Never stow away on a kamikaze plane.



More information about the ILUG mailing list