Hi,

Am 10.03.2011 um 12:19 schrieb Arne Brutschy:

> multi-threaded applications are able to steal resources from other
> users. If I understand correctly, it's possible to bind jobs to cores
> in order to limit this effect - but this is only available in u5. 
> 
> Can I somehow disable multithreading for jobs on normal queues and then
> set up a special queue/PE? A wrapper script maybe?
> 
> I couldn't find anything about this...

yes, the default way to go is to define a PE with "allocation_rule $pe_slots" 
and instruct the users to set:

export OMP_NUM_THREADS=$NSLOTS

while submitting with a request for this PE, often such a PE is named "smp" 
(supposed they use OpenMP). Of course, without core binding your users could be 
cheating and use more than granted. But a local check could be implemented 
(either as cron-job or in a load-sensor): as all jobs have an additional group 
ID attached, one could count the active (i.e. not state S) forks/threads of 
each job, and if it doesn't match the requested and granted slot count to kill 
it.

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

Reply via email to