Runtime calculation of max processes per dimension based on number of processes