<div class="gmail_quote">On Thu, Apr 22, 2010 at 3:43 PM, Coyle, James J [ITACD] <span dir="ltr"><<a href="mailto:jjc@iastate.edu">jjc@iastate.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span>Basappa. Kodada<span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> The only way I see to accomplish your goal while only
executing instructions on the compute node is to :</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>1)<span style="font: 7pt "Times New Roman";">
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);">At the beginning of this time interval (using cron to schedule
this)</span></p>
<p style="margin-left: 0.75in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>A)<span style="font: 7pt "Times New Roman";"> </span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);">identify
the PIDs of pbs_mom and of any processes owned by users, putting these in a
file F</span></p>
<p style="margin-left: 0.75in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>B)<span style="font: 7pt "Times New Roman";"> </span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);">suspend
these processes</span></p>
<p style="margin-left: 0.75in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>C)<span style="font: 7pt "Times New Roman";"> </span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);">Start
whatever else you wanted to run (if anything) during this time period.</span></p>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>2)<span style="font: 7pt "Times New Roman";">
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);">At the end of the time interval (again using cron), reverse the
process:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">C’) Suspend or kill the process running only during the
time interval</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">B’) Un-suspend all the PIDs in file F</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">A’) Remove file F.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> I did something similar with a computer lab, allowing the
machines to run batch jobs when they were idle,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">but suspending batch jobs when a user was logged in directly.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p style="margin-left: 20.25pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>-<span style="font: 7pt "Times New Roman";">
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);">Jim Coyle</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:torqueusers-bounces@supercluster.org" target="_blank">torqueusers-bounces@supercluster.org</a>
[mailto:<a href="mailto:torqueusers-bounces@supercluster.org" target="_blank">torqueusers-bounces@supercluster.org</a>] <b>On Behalf Of </b>Basappa
Kodada<br>
<b>Sent:</b> Thursday, April 22, 2010 12:50 AM<br>
<b>To:</b> <a href="mailto:torqueusers@supercluster.org" target="_blank">torqueusers@supercluster.org</a><br>
<b>Subject:</b> [torqueusers] about configuration in computing node</span></p>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hello sir<br>
Thanks for replying<br>
<br>
cant we specify the pbs_mom available time duration in computing node where
only pbs_mom is running.<br>
Example:<br>
the Node00 is cluster head node which is having the computing node list(Node01,
Node02)<br>
<br>
Node01 is running only pbs_mom for sending available resources to cluster head
node and executing the job. But i want to give some time duration or time
interval in this computing node, so that its resources are available in that
time only for cluster head node even though pbs_mom is running.<br clear="all"><font color="#888888">
</font></p></div></div></blockquote></div><br>This is normally accomplished by your scheduler, not pbs_mom. I'm not sure if the pbs_sched has this capability, but I'm sure that maui and moab do. <br clear="all"><br>
-- <br>Kevin Van Workum, PhD<br>Sabalcore Computing Inc.<br>Run your code on 500 processors.<br>Sign up for a free trial account.<br><a href="http://www.sabalcore.com">www.sabalcore.com</a><br>877-492-8027 ext. 11<br>