in reply to Profiling memory
With mod_perl, it is very useful to know how much memory in each child process is shared with the other processes. Having this knowledge makes it easier to calculate the maximum number of processes you can run without starting to swap. On linux, it is also difficult to assess, because top doesn't take Perl's copy-on-write into account.
This script (smem.pl) uses Linux::Smaps (linux >= 2.6.14) to report what memory in use by a process is shared or private, and clean or dirty. The author has posted a blog entry about using smem.pl.
Apologies for hijacking your question, but I thought it worth posting this script to PM.
Clint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Profiling memory
by jbert (Priest) on Aug 15, 2007 at 08:25 UTC |