<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Junchao,
<div>
<div><br>
<blockquote type="cite">
<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">If the pvar is restarted by the first session, what will be read into this pvar?</span>
<div style="font-family:arial,sans-serif;font-size:13px">I think it is 90. But this value of high watermark did not happen in the live period of the pvar in the first session. So the value 90 doesn't make sense.</div>
</div>
</blockquote>
<div><br>
</div>
It should be 50, because the value of the variable is not updated when it is stopped.</div>
<div><br>
</div>
<div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px">I don't know how to let a watermark pvar show different values in different sessions. For COUNTER, TIMER, AGGREGATE pvars, I know we can compute delta between current value and start value. But for watermark
pvars, the approach does not apply.</div>
</div>
</blockquote>
<div><br>
</div>
I suppose it depends on how you implement it. If it doesn't make sense in your implementation, you don't need to expose watermark variables that are non-continuous. </div>
<div><br>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px">BTW, I could not understand why a pvar may be writable (i.e., not readonly) from the user? Could someone give me an example.</div>
</div>
</blockquote>
<div><br>
</div>
You may want to reset the variable to its starting value so that you can measure it during a specific time period. I can't think of an example off the top of my head for using pvar_write on a variable. (Maybe setting to 0?) If I remember right, we included
it for generality. If you don't want to allow a tool to write to a variable, you can just return <span style="font-size: 10pt; font-family: CMSS10; ">MPI</span><span style="font-size: 10pt; font-family: CMTT10; ">_</span><span style="font-size: 10pt; font-family: CMSS10; ">T</span><span style="font-size: 10pt; font-family: CMTT10; ">_</span><span style="font-size: 10pt; font-family: CMSS10; ">ERR</span><span style="font-size: 10pt; font-family: CMTT10; ">_</span><span style="font-size: 10pt; font-family: CMSS10; ">PVAR</span><span style="font-size: 10pt; font-family: CMTT10; ">_</span><span style="font-size: 10pt; font-family: CMSS10; ">NO</span><span style="font-size: 10pt; font-family: CMTT10; ">_</span><span style="font-size: 10pt; font-family: CMSS10; ">WRITE</span><span style="font-size: 11pt; font-family: CMR10; ">.</span></div>
<div><span style="font-size: 11pt; font-family: CMR10; "><br>
</span></div>
<div><span style="font-size: 11pt; font-family: CMR10; ">Kathryn</span></div>
<div><br>
<blockquote type="cite">
<div dir="ltr"></div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Aug 30, 2013 at 5:11 PM, Mohror, Kathryn <span dir="ltr">
<<a href="mailto:mohror1@llnl.gov" target="_blank">mohror1@llnl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi Martin and Junchao,
<div><br>
<div>
<div>
<div class="im">
<blockquote type="cite">
<div style="word-wrap:break-word">Sorry, I can't respond to the list at the moment (LOFT settings) and I was trying to answer when Kathryn was sending her answer - feel free to repost on the list if it makes sense. </div>
</blockquote>
<div><br>
</div>
</div>
Okay, I'm cc'ing the list so others benefit from your point.</div>
<div>
<div class="im"><br>
<blockquote type="cite">
<div style="word-wrap:break-word">
<div>I agree with her interpretation - that was our intention. I agree, though, that probably doesn't make sense and hence I generally don't expect MPI implementations to offer high/low watermarks as non-continnous variables, but that's up to them.</div>
</div>
</blockquote>
<div><br>
</div>
</div>
It could make sense though. You could possibly have a non-continuous variable that is the high watermark of some metric (e.g., messages in the unexpected queue) so that you could query it for specific time periods. But, you're right, it's up to the implementation
to decide what is offered. </div>
<span class="HOEnZb"><font color="#888888">
<div><br>
</div>
</font></span>
<div><span class="HOEnZb"><font color="#888888">Kathryn</font></span>
<div class="im"><br>
<blockquote type="cite">
<div style="word-wrap:break-word">
<div><br>
</div>
<div>Martin</div>
<div><br>
</div>
<div>
<div>
<div><br>
</div>
<div><br>
</div>
<div>On Aug 30, 2013, at 11:48 PM, "Mohror, Kathryn" <<a href="mailto:mohror1@llnl.gov" target="_blank">mohror1@llnl.gov</a>></div>
<div> wrote:</div>
<br>
<blockquote type="cite">
<div style="word-wrap:break-word">Hi Junchao,
<div><br>
<div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">I'm trying to understand MPI3 MPI_T performance variables (pvar). The standard defines pvar sessions, pvar classes (e.g.,COUNTER, HIGHWATERMARK etc), and continuous pvars, readonly pvars.I was wondering if there is any relevance between these
concepts. The standard doesn't say that.
<div><br>
<div>
<div>For instance, for a highwatermark pvar, I guess it should be continuous. Otherwise, suppose a pvar session starts this pvar, then stops it, and then restarts it. How can I keep track of this pvar? Let's say during the live period of the pvar, the high
watermark is 50. After the pvar is stopped, it went up to as high as 90 (since it may be alive in other pvar sessions). So, when I restart the pvar, what value should I read?</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>If a variable is not continuous then its value is not updated when it is stopped. So in your example the value would be 50 in the session that stopped the variable and 90 in any sessions that still had the variable live at the time it reached that value.
There's a bit more explanation on page 579 starting at line 21. Does that help? </div>
<div><br>
</div>
<div>Kathryn</div>
<div><br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div>
<div><br>
</div>
<div>Thanks</div>
</div>
<span><font color="#888888">--Junchao Zhang</font></span></div>
</div>
<br>
</div>
_______________________________________________<br>
mpiwg-tools mailing list<br>
<a href="mailto:mpiwg-tools@lists.mpi-forum.org" target="_blank">mpiwg-tools@lists.mpi-forum.org</a><br>
<a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-tools" target="_blank">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-tools</a></blockquote>
</div>
<br>
<div>
<div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>______________________________________________________________<br>
Kathryn Mohror, <a href="mailto:kathryn@llnl.gov" target="_blank">kathryn@llnl.gov</a>, <a href="http://people.llnl.gov/mohror1" target="_blank">http://people.llnl.gov/mohror1</a><br>
CASC @ Lawrence Livermore National Laboratory, Livermore, CA, USA</div>
<div><br>
</div>
</div>
<br>
<br>
</div>
<br>
</div>
</div>
_______________________________________________<br>
mpiwg-tools mailing list<br>
<a href="mailto:mpiwg-tools@lists.mpi-forum.org" target="_blank">mpiwg-tools@lists.mpi-forum.org</a><br>
<a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-tools" target="_blank">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-tools</a></blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</div>
<div class="im"><br>
<div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<div>______________________________________________________________<br>
Kathryn Mohror, <a href="mailto:kathryn@llnl.gov" target="_blank">kathryn@llnl.gov</a>, <a href="http://people.llnl.gov/mohror1" target="_blank">http://people.llnl.gov/mohror1</a><br>
CASC @ Lawrence Livermore National Laboratory, Livermore, CA, USA</div>
<div><br>
</div>
</div>
<br>
<br>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
<div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>______________________________________________________________<br>
Kathryn Mohror, <a href="mailto:kathryn@llnl.gov">kathryn@llnl.gov</a>, <a href="http://people.llnl.gov/mohror1">http://people.llnl.gov/mohror1</a><br>
CASC @ Lawrence Livermore National Laboratory, Livermore, CA, USA</div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>