There's some discussion of this here: http://search.cpan.org/perldoc/Apache2::SizeLimit#linux The perl module to read the smaps file (not necessarily as efficiently as possible, if that matters) is: http://search.cpan.org/perldoc/Linux::Smaps