Hi,

Am 25.07.2011 um 16:03 schrieb Mohamed Adel:

> I have a question concerning resource quota management.
> I need to set a resource quota h_cpu and h_rt limit to a project.
> I tried the following:
> 
> qconf -mrqs test
> {
>   name         test
>   description  NONE
>   enabled      TRUE
>   limit        projects mab to h_rt=100
>   limit        projects mab to h_cpu=100
> }
> 
> The above configuration causes the SGE to crash when submitting a job using a 
> parallel environment (-pe option) and I have to restart the qmaster daemon.
> So, I changed the configuration to be:

any output in the messages file of the qmaster?


> qconf -mrqs test
> {
>   name         test
>   description  NONE
>   enabled      TRUE
>   limit        users mab to slots=100
>  limit        projects mab to h_rt=100
>   limit        projects mab to h_cpu=100
> }
> The above configuration works fine; i.e. SGE doesn't crash when submitting 
> parallel jobs, but the limits aren't enforced (i.e. the jobs exceeds the 
> limits without being suspended or deleted)

There are three things to note:

- Limits specified in an RQS aren't enforced. They only specify what you can 
request on the command line with the -l option. Only the specification of the 
-l option will enforce the limit then in the end.

- The first matching rule will exit the RQS. So most likely the check "limit 
users mab to slots=100" succeeds and allows the job to run. The others are 
never checked.

- As a result of this implementation, you will need either two RQS: one for 
h_rt and one for h_cpu *or* put them in one rule, separated by a comma.

Nevertheless SGE shouldn't crash.

-- Reuti


> Any help!
> thanks in advance
> madel
> 
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to