Factor out calulation of RSS into a separate method.
Added support for ``memmon`` to check against cumulative RSS

of a process and all its child processes.