sysopen(my $fh, "/proc/$pid/statm", 0) or die $!;