<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 29, 2019 at 2:00 PM Lux, Jim (US 337K) via Beowulf <<a href="mailto:beowulf@beowulf.org">beowulf@beowulf.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_1285585067104661177WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">I’m doing some EP job arrays using PBS, and I was wondering if there’s a way to find out how much resources the job actually consumed.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">For instance, if I do a select 1:ncpus=4 does it actually use 4 CPUs?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Likewise, is there a “memory high water mark”.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">The idea here is that since my job competes with all the other jobs, the better I can describe my resource needs (i.e. not over-require) the faster my job gets through the system.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Or are these things I need to instrument in some other way.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">-- <u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u></p></div></div></blockquote><div><br></div><div>ncpus=4 requests 4 cpus/cores, which PBS/Torque will allocate to your job alone (unless the nodes are tagged as work shared). <br></div><div>It is up to you use these cpus (e.g. MPI: mpirun np=4; OpenMP: OMP_THREAD_NUM=4) or not (a serial program).</div><div>"qstat -f" produces a fair amount of information about the job resources.<br></div><div>The accounting logs, in server_priv/accounting/YYYMMDD  also do, if you have access to them.</div><div><br></div><div>You can request a certain amount of memory with the -l (lowercase L)  switch of qsub.</div><div>See 'man qsub' for syntax, and 'man pbs_resources' for which resources can be requested (particularly pmem, pvmem, vmem).<br></div><div> <br></div><div>I hope this helps,</div><div>Gus Correa<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_1285585067104661177WordSection1"><p class="MsoNormal"> <u></u></p>
</div>
</div>

_______________________________________________<br>
Beowulf mailing list, <a href="mailto:Beowulf@beowulf.org" target="_blank">Beowulf@beowulf.org</a> sponsored by Penguin Computing<br>
To change your subscription (digest mode or unsubscribe) visit <a href="https://beowulf.org/cgi-bin/mailman/listinfo/beowulf" rel="noreferrer" target="_blank">https://beowulf.org/cgi-bin/mailman/listinfo/beowulf</a><br>
</blockquote></div></div>