http://www.perlmonks.org?node_id=788657


in reply to Find total "actual" memory usage of forked processes

Not much of an answer, but be aware that measuring memory usage is not exactly trivial:

http://www.kdedevelopers.org/node/1445