Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Have you tried Linux::Smaps? []

    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."

    • 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:

      00602000-00c39000 rw-p 00602000 00:00 0                                  [heap]
      Size:               6364 kB
      Rss:                6340 kB
      Shared_Clean:          0 kB

      • by ysth (7833) on 2010.03.01 16:12 (#71739) Homepage
        But for practical purposes of controlling apache process growth, just counting the private memory is the right thing to do (or counting all the root process's memory + just private from the kids to get a reasonable total.)

        I'm curious to know just what you are seeing shared in apache children that isn't copy-on-write memory?