gmemusage
From: Bob Tennent (BobT_at_cs.queensu.ca)
Date: 07/15/04
- Previous message: Last2Know: "Re: Equivalent to Rational Rose"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Jul 2004 17:08:00 GMT
I've been using this application on my desktop for years. It presents
a bar-graph view of how memory is currently being used. Unfortunately,
I've begun to doubt the accuracy of the numbers it's using, particularly
on 2.6 kernels, so I've been looking at the source (GPLed). A bug
involving double-counting of buffer space was easy to find, but I'm
not satisfied that the overall approach being used is sound because
shared libraries and code are being counted multiple times if there are
multiple processes using them, and I think that's wrong.
For example, if /proc/N/status for process N shows
VmSize: 10760 kB
VmLck: 0 kB
VmRSS: 3868 kB
VmData: 5640 kB
VmStk: 1876 kB
VmExe: 76 kB
VmLib: 3072 kB
I would expect that the Exe pages are shared among multiple instances
of that process and the Lib pages are shared among processes using the
same libraries. But in any case these seem to be Size rather than RSS
numbers. The program simply adds up the VmRSS number for every process,
including multiple instances.
I'd be grateful for some guidance or pointers to relevant documentation.
It should be evident that I'm not a kernel hacker, nor hope to become
one, but I really would like to fix this application (or be pointed to a
comparable one).
Bob T.
- Previous message: Last2Know: "Re: Equivalent to Rational Rose"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|