allowing number of subprocesses to be constrained by ram as well as cpus.