Limit cores per job in sun gridengine
<p>I'm currently setting up a gridengine on Ubuntu 16.04 using the sun gridengine.
Most of the features I want to use are working. However, I'm struggling with the following problem:</p>

<ul>
<li>I have a 32 core machine (64 threads)</li>
<li>I'm running jobs which use software like Matlab...</li>
<li>These software packages can use multiple threads for calcultion</li>
</ul>

<p>Current situation:
The Queue has 2 slots, Processors is set to 1.
I submit one job and all 64 threads are used for the calculation.
I submit a second job and both are running in parallel.
So, for run time test, I cannot control the number of used cores.</p>

<p>I also tried to setup a parallel environment (connected to that queue). But also if I run a job there, all cores are used.</p>

<p>I guess I have a general understanding problem.</p>

<p>Does anybody know or have an idea, how it is possible to setup something like that:</p>

<p>a) each slot can only use one core (then the parallel environment would allow me to specify the slots/cores of a job</p>

<p>b) to restrict the cores of a submitted job</p>

<p>Important is also that it is not only an upper but also a lower bound. But this could be handled by the number of slots, I guess.</p>

<p>Thanks already in advance for any ideas.</p>