<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Thanks. That is exactly what I needed.</div><div><br></div><div>Bill Pearson</div><div><br></div><div><br></div><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 37.0px; text-indent: -37.0px"><font face="Helvetica" size="3" color="#808080" style="font: 12.0px Helvetica; color: #808080"><b>From: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Darius Buntinas <<a href="mailto:buntinas@mcs.anl.gov">buntinas@mcs.anl.gov</a>></font></p>
<p style="margin: 0.0px 0.0px 0.0px 34.0px; text-indent: -34.0px"><font face="Helvetica" size="3" color="#808080" style="font: 12.0px Helvetica; color: #808080"><b>Date: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">May 18, 2010 11:17:43 AM EDT</font></p>
<p style="margin: 0.0px 0.0px 0.0px 21.0px; text-indent: -21.0px"><font face="Helvetica" size="3" color="#808080" style="font: 12.0px Helvetica; color: #808080"><b>To: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a></font></p>
<p style="margin: 0.0px 0.0px 0.0px 23.0px; text-indent: -23.0px"><font face="Helvetica" size="3" color="#808080" style="font: 12.0px Helvetica; color: #808080"><b>Cc: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">William Pearson <<a href="mailto:wrp@virginia.edu">wrp@virginia.edu</a>></font></p>
<p style="margin: 0.0px 0.0px 0.0px 50.0px; text-indent: -50.0px"><font face="Helvetica" size="3" color="#808080" style="font: 12.0px Helvetica; color: #808080"><b>Subject: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Re: [mpich-discuss] profiling (gprof) MPICH2 manager program</b></font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p>
</blockquote><blockquote type="cite">What's probably happening is that processes are clobbering each other's gmon.out files. If you set GMON_OUT_PREFIX to something it will use that filename and append the pid of the process. That should reduce the chance of the files getting clobbered (you could still have processes with the same pid on different nodes, but that's not likely).<br><br>E.g.:<br> GMON_OUT_PREFIX=mygmon.out mpiexec -n 10 cpi<br><br>-d<br><br>On 05/18/2010 09:55 AM, William Pearson wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">I am interested in looking for bottlenecks to an MPICH2 program that prevent efficient scaling after 10 - 16 worker programs.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I was hoping to use gprof to do this, but the gmon.out file that I get is overwhelmed by the worker program times -- I'm not seeing the relevant timings for the manager program (which sends data and collects results).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">How can I tell gprof to focus only on the first instance of the program that is running as the manager?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bill Pearson<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">mpich-discuss mailing list<br></blockquote><blockquote type="cite"><a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br></blockquote><blockquote type="cite"><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br></blockquote></blockquote></body></html>