Thanks for your answer.
As far as I understand, even if you request "pe" or "env" as your
binding instance, it is mandatory you submit also a binding strategy (
e.g. linear:3). That strategy takes precedence over any decisions might
pe or env instances take.
If I submit qsub -binding pe linear:3 -pe threaded 2-14, the sge assigns
the job 12 cpu slots, but the binding only cares about the 3
(ScccCCCSCCCCCC).
Should I use pe/env and, right when the job is sent to the execution
host, override any binding policy SGE is trying to apply and use my own?
Wouldnt that interfere with any other jobs running in the host?
Thanks,
Txema
El 06/08/12 20:01, Chi Chan escribió:
Doesn't qsub -binding pe or env handle it for you already? And with
qsub -binding env, you get the $SGE_BINDING variable, so you can bind
your threads yourselves if you want to.
http://gridscheduler.sourceforge.net/htmlman/htmlman1/qsub.html
--Chi
On Mon, Aug 6, 2012 at 1:24 PM, Txema Heredia Genestar
<[email protected]> wrote:
Hello all,
I am testing for the first time the core binding capabilities of SGE. I want
all my non-parallel environment jobs to have a core binding of 1 core (our
users tend to forget about the -pe and submit multithreaded jobs without
requesting it). To do that, I am basing on this JSV script:
https://github.com/HPCKP/JSV-for-Grid-Engine/blob/master/jsv_core_binding.sh
This deals with non-pe jobs perfectly, but a new problem arises: When a user
submits a job to a pe_slots kind of parallel environment, I can only set the
core binding (as far as I understand) to either pe_min or pe_max, but not to
the real pe_slots that will be granted to the job once it is scheduled.
An example:
User 1 submits a job with "-pe threaded 4-12 " to a 12-core node with 3
single-core jobs running. SGE grants the job 9 slots and it starts 9
threads. My 2 options now are: setting cb to pe_min (= 4) or to pe_max (=
12). The first case will slow that job, and the second one will ignore
binding and mess with all 4 jobs in the node.
Is there any other way to set the core binding to exactly the number of
cores the job is granted?
Thanks in advance,
Txema
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users