Limit the number of tasks created based on the observed minimum
memory.