On our cluster I could use up all the slots with the current configuration of sge. I don't want to overuse my privileges by accident / check at every submit.

Is there a way to impose a hard limit on the number of slots my jobs can use?

I don't have manager rights, so I can't do as in the question "How can I set the maximum number of running jobs per user on SGE?" Although that would be exactly what I am after.


If you are using a recent grid engine and you are submitting a bunch of jobs with identical resource requirements you could try submitting as a single array job limited by the -tc switch. The following command would submit a job of 100000 tasks but only run 100 at a time:

qsub -t 1-100000 -tc 100 script.sh

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.