Package: manpages
Version: 3.44-1
Severity: minor
proc(5) says:
/proc/[pid]/statm
Provides information about memory usage, measured in pages. The
columns are:
size total program size
(same as VmSize in /proc/[pid]/status)
resident resident set size
(same as VmRSS in /proc/[pid]/status)
share shared pages (from shared mappings)
Actually the "share" value doesn't count all shared pages mapped by the
process: it only counts *resident* shared pages. It should be documented
as such. The current documentation makes it look as though one can
subtract share from size to find out how much unshared memory the process
uses, but actually doing so gives a bogus figure. I'm currently debugging
some code (the Perl module Apache::SizeLimit) that makes that mistake.
-zefram
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]