<div dir="ltr">Hey Jacob,<div><br></div><div>Have you looked at the qsub man page -hold_jid option?  You can give it multiple jids or jobnames (or regex patterns).</div><div><a href="http://gridscheduler.sourceforge.net/htmlman/manuals.html">http://gridscheduler.sourceforge.net/htmlman/manuals.html</a><br>
</div><div><a href="http://gridscheduler.sourceforge.net/htmlman/htmlman1/sge_types.html?pathrev=V62u5_TAG">http://gridscheduler.sourceforge.net/htmlman/htmlman1/sge_types.html</a><br></div><div><br></div><div style>This preso has a couple of examples:</div>
<div style><a href="http://www.bioteam.net/wp-content/uploads/2011/03/02-SGE-SimpleWorkflow.pdf">http://www.bioteam.net/wp-content/uploads/2011/03/02-SGE-SimpleWorkflow.pdf</a><br></div><div style><br></div><div style>Best of luck,</div>
<div style>Lyn</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 1, 2013 at 6:26 AM,  <span dir="ltr">&lt;<a href="mailto:starcluster-request@mit.edu" target="_blank">starcluster-request@mit.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send StarCluster mailing list submissions to<br>
        <a href="mailto:starcluster@mit.edu">starcluster@mit.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:starcluster-request@mit.edu">starcluster-request@mit.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:starcluster-owner@mit.edu">starcluster-owner@mit.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of StarCluster digest...&quot;<br>
<br>Today&#39;s Topics:<br>
<br>
   1. SGE priorities and job dependency (Jacob Barhak)<br>
<br><br>---------- Forwarded message ----------<br>From: Jacob Barhak &lt;<a href="mailto:jacob.barhak@gmail.com">jacob.barhak@gmail.com</a>&gt;<br>To: &quot;<a href="mailto:starcluster@mit.edu">starcluster@mit.edu</a>&quot; &lt;<a href="mailto:starcluster@mit.edu">starcluster@mit.edu</a>&gt;<br>
Cc: <br>Date: Sun, 1 Sep 2013 02:19:12 -0500<br>Subject: [StarCluster] SGE priorities and job dependency<br>Hello,<br>
<br>
Does someone have experience with the SGE scheduler that comes with StarCluster? Experienced enough to figure out how make a dependent job launch before other jobs once its dependencies are gone?<br>
<br>
I have been trying to give the dependent job a high priority, yet it seems the scheduler ignores this and launches the jobs in FIFO order.<br>
<br>
Here is a simplified description of my problem. Lets say I have 100k jobs. The first 50k are generating files in a shared directory and the last 50k are processing those files and deleting them.<br>
<br>
Jobs 1-50000 are independent while job 50001 is dependent on job 50000 and job 50000+n is dependent on job n.<br>
<br>
I tried lowering the priority of the first 50k jobs using qsub -p -100. I was hoping to get the effect of job 1 completing and since job 50001 dependency was satisfied and has the highest priority then it would be launched next. The idea is to perform cleanup of the file after each job - otherwise too many files can accumulate in a shared directory and may slow down the NFS I/O significantly - not to mention disk space.<br>

<br>
However, I cannot get this behavior from SGE on a single test machine outside StarCluster. So I assume this needs some special configuration.<br>
<br>
I am trying to avoid the I/O bottleneck I experienced on the cloud due to too many files in a shared directory.<br>
<br>
Can someone help with this without changing the order if the jobs when being launched?<br>
<br>
I hope there is a simple one line / qsub option for this.<br>
<br>
       Jacob<br>
<br>
<br>
<br>
Sent from my iPhone<br>
<br>
<br>_______________________________________________<br>
StarCluster mailing list<br>
<a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
<br></blockquote></div><br></div>