Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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