How can I set the maximum number of running jobs per user on SGE?
Solution 1:
You can define a complex with qconf -mc
. Call it something like high_io
or whatever you'd like, and set the consumable field to YES
. Then in either the global configuration with qconf -me global
or in a particular queue with qconf -mq <queue name>
set high_io=500
in the complex values. Now tell your users to specify -l high_io=1
or however many "tokens" you'd like them to use. This will limit the number of concurrent jobs to whatever you set the complex value to.
The other way to do this is with quotas. Add a quota with qconf -arqs
that looks something like:
{
name dave_max_slots
description "Limit dave to 500 slots"
enabled true
limit users {dave} to slots=500
}