<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi John,</p>
    <p>Thanks for your response.</p>
    <p><br>
    </p>
    <p>For the first question, the configuration is as follows:<br>
    </p>
    <div>
      LPGROUPS {<br>
          ## cluster foo<br>
          FOO_CLUSTER {<br>
              repetitions="12";<br>
              node="1";<br>
              modelnet_simplenet@foo="1";<br>
          }<br>
          FOO_FORWARDERS {<br>
              repetitions="4";<br>
              forwarder="1";<br>
              modelnet_simplenet@foo="1";<br>
          }<br>
          ## cluster bar<br>
          BAR_CLUSTER {<br>
              repetitions="12";<br>
              node="1";<br>
              modelnet_simplenet@bar="1";<br>
          }<br>
          BAR_FORWARDERS {<br>
              repetitions="4";<br>
              forwarder="1";<br>
              modelnet_simplenet@bar="1";<br>
          }<br>
      }<br>
      <br>
      PARAMS {<br>
          ## ROSS parameters<br>
          message_size="352";<br>
      <br>
          ## global modelnet parameters <br>
          modelnet_order=("simplenet");<br>
      <br>
          ## foo cluster network parameters <br>
          packet_size@foo="8192";<br>
          modelnet_scheduler@foo="fcfs";<br>
          net_startup_ns@foo="1.5";<br>
          net_bw_mbps@foo="10000";<br>
      <br>
          ## bar cluster network parameters<br>
          packet_size@bar="2048";<br>
          modelnet_scheduler@bar="round-robin";<br>
          net_startup_ns@bar="3.0";<br>
          net_bw_mbps@bar="15000";<br>
      <br>
          ## forwarding network parameters<br>
          packet_size="4096";<br>
          modelnet_scheduler="fcfs";<br>
          net_startup_ns="8.0";<br>
          net_bw_mbps="5000";<br>
      }<br>
      <br>
      run_params {<br>
          num_reqs="5";<br>
          payload_sz="16384";<br>
      }<br>
      <br>
      FOO_FORWARDERS and BAR_FORWARDERS are two groups. The lps in these
      groups have the same type but have different annotations. we call 
      model_net_event_annotated(<br>
              int net_id,//SIMPLENET(0)<br>
              char const * annotation,<br>
              char const * category, <br>
        tw_lpid final_dest_lp, //sender->gid is 26,final_dest_lp is 58<br>
              uint64_t message_size, <br>
              tw_stime offset,<br>
              int remote_event_size,<br>
              void const * remote_event,<br>
              int self_event_size,<br>
              void const * self_event,<br>
              tw_lp *sender);  <br>
      <br>
      Then we can achieve the communication between lp26 and lp58.<br>
      <br>
      For the second questions, is it possible that we use
      model_net_event() to establish a simple point-to-point connection
      and <span style="font-size:11.0pt">we send messages 1M times and
        take the average?<br>
        <br>
        Thanks,<br>
      </span><br>
    </div>
    Lei<br>
    <br>
    在 2016/8/5 21:40, Jenkins, Jonathan P. 写道:<br>
    <blockquote
      cite="mid:DF627621-5516-416A-AB8D-DDC3595B1D62@mcs.anl.gov"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Title" content="">
      <meta name="Keywords" content="">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Courier New";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
        {font-family:宋体;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:MingLiU;
        panose-1:2 2 5 9 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        text-align:justify;
        font-size:10.5pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        text-align:justify;
        font-size:10.5pt;
        font-family:宋体;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Courier;}
p.a, li.a, div.a
        {mso-style-name:纯文本;
        mso-style-link:"纯文本 Char";
        margin:0in;
        margin-bottom:.0001pt;
        text-align:justify;
        font-size:10.5pt;
        font-family:Calibri;}
span.Char
        {mso-style-name:"纯文本 Char";
        mso-style-priority:99;
        mso-style-link:纯文本;
        font-family:宋体;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Courier;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
/* Page Definitions */
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt">Hi Yu,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">You are
            correct that modelnet LPs with different annotations
            shouldn't be able to communicate through the modelnet
            interface. Can you send us the configuration file you are
            using, along with the net_id, annotation, final_dest_lp, and
            sender->gid values for the call that misbehaves? We'll
            try to reproduce on our end.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">The startup
            parameter in simplenet represents local sender-side overhead
            on a packet granularity. So one way to estimate the startup
            is to get an average per-call time (on the sender side) of
            very small (word-sized) messages. I.e. measure calling
            send(fd, buf, 8, flags) 1M times and take the average.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><br>
            Thanks,<br>
            John<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <div style="border:none;border-top:solid #B5C4DF
          1.0pt;padding:3.0pt 0in 0in 0in">
          <p class="MsoNormal"><b><span style="color:black" lang="FR">From:
              </span></b><span style="color:black" lang="FR"><a class="moz-txt-link-rfc2396E" href="mailto:codes-ross-users-bounces@lists.mcs.anl.gov"><codes-ross-users-bounces@lists.mcs.anl.gov></a>
              on behalf of
            </span><span style="font-family:"MS
              Mincho";color:black">于雷(</span><span
              style="color:black" lang="FR">Yu Lei</span><span
              style="font-family:"MS Mincho";color:black">)</span><span
              style="color:black" lang="FR"> <a class="moz-txt-link-rfc2396E" href="mailto:yulei@buaa.edu.cn"><yulei@buaa.edu.cn></a></span><span
              style="font-family:MingLiU;color:black" lang="FR"><br>
            </span><b><span style="color:black" lang="FR">Date: </span></b><span
              style="color:black" lang="FR">Thursday, August 4, 2016 at
              10:34 PM<br>
              <b>To: </b><a class="moz-txt-link-rfc2396E" href="mailto:codes-ross-users@lists.mcs.anl.gov">"codes-ross-users@lists.mcs.anl.gov"</a>
              <a class="moz-txt-link-rfc2396E" href="mailto:codes-ross-users@lists.mcs.anl.gov"><codes-ross-users@lists.mcs.anl.gov></a><br>
              <b>Subject: </b>[codes-ross-users] codes model net
              problems</span><span style="font-size:12.0pt;color:black"
              lang="FR"><o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span style="font-family:"Times New
              Roman"" lang="FR"><o:p> </o:p></span></p>
        </div>
        <blockquote style="border:none;border-left:solid #B5C4DF
          4.5pt;padding:0in 0in 0in
          4.0pt;margin-left:3.75pt;margin-right:0in"
          id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE">
          <div>
            <div>
              <p class="MsoPlainText"><span lang="FR">1/for the method:</span><span
                  lang="FR"><o:p></o:p></span></p>
              <p class="MsoPlainText"><span lang="FR">model_net_event_return
                  model_net_event_annotated(<br>
                          int net_id,<br>
                          char const * annotation,<br>
                          char const * category, <br>
                          tw_lpid final_dest_lp, <br>
                          uint64_t message_size, <br>
                          tw_stime offset,<br>
                          int remote_event_size,<br>
                          void const * remote_event,<br>
                          int self_event_size,<br>
                          void const * self_event,<br>
                          tw_lp *sender);</span><span lang="FR"><o:p></o:p></span></p>
              <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
              <p class="MsoPlainText"><span lang="FR">we think that two
                  lps with same network type but with different
                  annotation can not communicate with this method. But
                  we do some tests which prove that the communication
                  can be established. We don't know why?</span><span
                  lang="FR"><o:p></o:p></span></p>
              <p class="MsoPlainText"><span lang="FR">2/for simplenet
                  model, it needs a parameter "start_up". How can we
                  obtain this parameter?</span><span lang="FR"><o:p></o:p></span></p>
              <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
              <p class="MsoPlainText"><span lang="FR">Thanks,</span><span
                  lang="FR"><o:p></o:p></span></p>
              <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
              <p class="MsoPlainText"><span lang="FR">Lei</span><span
                  lang="FR"><o:p></o:p></span></p>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>