limit max number of cores used