[GE users] limit users * to slots=10

reuti reuti at staff.uni-marburg.de
Mon Dec 21 13:08:48 GMT 2009


Am 20.12.2009 um 02:30 schrieb marvnoo9:

> Thanks for pointing out the use of '{}'.
> I had missed that distinction in my first reading.
> I understand that the "first match" wins ... but what happens if  
> there is no match in an RQS?
> Will it fall back to the global maxujobs in the sconf configuration?

it should. Just try to confirm it ;-)

But you can also include a last rule in each RQS which matches all,  
to have it defined at a central point (the {*} does this already  
unless limited by queue or project).

BTW: Don't get confused between "slots" and "jobs". If you you want  
to limit the number of jobs in an RQS (like maxujobs in the  
scheduler), you have to define an additonal complex (named jobs for  
sake of easiness, short jb) and set it consumable "JOB" with an  
arbitrary high value set in `qconf -se global`, as the limit is in  
the RQS.

-- Reuti

> Thnaks again,
>    - Marv
>> Hi Marv,
>> Resource Quotas are very very powerful and are worth digging into the
>> documentation for ...
>> A few things ...
>> This old wiki page has some additional examples:
>> http://wiki.gridengine.info/wiki/index.php/RQS_Common_Uses
>> For your specific questions:
>> There is a special grouping character "{}" that can be used to  
>> define if
>> your quota limit applies in aggregate or to each individual member of
>> the scoped set.
>> Example (hope I don't get this backwards in my coffeeless state ... )
>> This would limit each individual user to no more than 10 slots:
>>    limit users {*} to slots=10
>> This would put a global limit for all users who can consume no  
>> more than
>> 10 slots:
>>    limit users * to slots=10
>> The above would be equiv to your maxujobs
>> And for the multiple queue question it's also pretty simple. You can
>> name queues in your quota limit line so you can have different  
>> limits on
>> different queues. You can have multiple rules in effect - just
>> understand that the "first match" wins if there is any overlap.
>> marvnoo9 wrote:
>>> Pardon this simple question (I'm new to Resource Quotas) ...
>>> In http://wikis.sun.com/display/gridengine62u2/Managing+Resource 
>>> +Quotas , I see the following:
>>> "For example, the following limit rule limits all users together  
>>> to 10 slots: limit users * to slots=10."
>>> Does that really mean an aggregate limit of 10 slots?  The  
>>> question of whether or not that means an aggregate limit is  
>>> what's confusing me.
>>> How do I get the same functionality as what I now have for maxujobs:
>>> qconf -ssconf | grep maxu
>>> maxujobs                          16
>>> ... but allow an exception for a single user or all individual  
>>> users in a special queue to each be allowed more than the 16.
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do? 
> dsForumId=38&dsMessageId=234319
> To unsubscribe from this discussion, e-mail: [users- 
> unsubscribe at gridengine.sunsource.net].


To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].

More information about the gridengine-users mailing list