NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Linux::Smaps (Score:1)
Have you tried Linux::Smaps? [cpan.org]
From the CPAN description: "The /proc/PID/smaps files in modern linuxes provides very detailed information about a processes memory consumption. It particularly includes a way to estimate the effect of copy-on-write. This module implements a Perl interface."
Re:Linux::Smaps (Score:1)
I'd recalled /proc/#/smaps also wasn't available on the 2.6.10. Taking a quick look at Linux::Smaps, it appears I can consume text of the format:
Apparently a page is counted in Private_* if the only the process being examined has that page. If any other processes also use the page, it is counted in Shared_*. Caveats if you're swapping.
I don't yet know how smem works.
exmap will let me fully find out exactly what's being shared. Or not.
Reply to This
Parent
Re: (Score:1)
I'm curious to know just what you are seeing shared in apache children that isn't copy-on-write memory?