<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-forward-container"><br>
      <br>
      -------- Továbbított üzenet --------
      <table class="moz-email-headers-table" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Tárgy: </th>
            <td>Re: SmartNIC - T4P4S vEPG counter issue</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Dátum: </th>
            <td>Wed, 15 Jul 2020 14:24:18 +0200</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Feladó:
            </th>
            <td>Jonatan Langlet <a class="moz-txt-link-rfc2396E" href="mailto:jonatanlanglet@gmail.com"><jonatanlanglet@gmail.com></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Címzett:
            </th>
            <td>LAKI Sandor <a class="moz-txt-link-rfc2396E" href="mailto:lakis@inf.elte.hu"><lakis@inf.elte.hu></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">CC: </th>
            <td>Andreas Kassler <a class="moz-txt-link-rfc2396E" href="mailto:andreas.kassler@kau.se"><andreas.kassler@kau.se></a>, Gergely
              Pongracz <a class="moz-txt-link-rfc2396E" href="mailto:Gergely.Pongracz@ericsson.com"><Gergely.Pongracz@ericsson.com></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-2">
      <div dir="ltr">
        <div>Hi Sándor,</div>
        <div><br>
        </div>
        <div>I have updated to the latest T4P4S version, and the program
          can now compile with counters.</div>
        <div>There are now two issues.</div>
        <div><br>
        </div>
        <div>The first one is that the direct counter appears to be
          counted in each table?</div>
        <div>I followed the test-smem example program, where I bind the
          counter to the vEPG_DL table, but it appears to be applied to
          all tables.<br>
        </div>
        <div>
          <div><img src="cid:part1.722F2A57.D34134B1@inf.elte.hu"
              alt="tapas_directCounter.png" class="" width="566"
              height="109"><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>The second issue is a bit more severe.</div>
          <div>T4P4S is now running into segmentation fault while
            processing traffic. This happens both with and without
            docker<br>
          </div>
          <div><br>
          </div>
          <div>Unfortunately T4P4S refuses to work while running through
            gdb. <br>
          </div>
          <div>While attempting gdb it attaches to the controller, but
            doesn't register the inserted rules and never enters the
            main loop.</div>
          <div>(this is with the autodbg option for t4p4s.sh)</div>
          <div><br>
          </div>
          <div>T4P4S throws segfault during the deparser. It looks like
            it tries to emit a header which is not parsed?<br>
          </div>
          <div>
            <div><img src="cid:part2.9F3ACE4C.ADC734A8@inf.elte.hu"
                alt="segfault_nondocker.png" class="" width="566"
                height="224"><br>
            </div>
          </div>
          <div><br>
          </div>
          <div>Do you have any advice?</div>
          <div><br>
          </div>
          <div>If you need them, I attach the project files. <br>
          </div>
          <div>The controller is the same as before, no changes.<br>
          </div>
          <div><br>
          </div>
          <div>Thanks,</div>
          <div>Jonatan<br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Jul 14, 2020 at 11:21
          AM Jonatan Langlet <<a
            href="mailto:jonatanlanglet@gmail.com"
            moz-do-not-send="true">jonatanlanglet@gmail.com</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 dir="ltr">
            <div>Hi,</div>
            <div><br>
            </div>
            <div>I am currently running the commit <span><span>0a9e803
                  from May 5th.</span></span></div>
            <div><span><span><br>
                </span></span></div>
            <div><span><span>There are similar errors with the test-smem
                  profile:<br>
                </span></span></div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div><span><span>dv@intel8:~/docker_playground/tapas/docker/tapas2/t4p4s$
                    ./t4p4s.sh :test-smem@test c p4 run<br>
                    [COMPILE  P4-16] ./examples/test/test-smem.p4 @std<br>
                    Exception: 'components'<br>
                    Traceback (most recent call last):<br>
                      File "src/compiler.py", line 315, in generate_code<br>
                        exec(code, localvars, localvars)<br>
                      File "<string>", line 194, in <module><br>
                      File
"/home/dv/docker_playground/tapas/docker/tapas2/t4p4s/src/hlir16/p4node.py",
                    line 230, in __getattr__<br>
                        return self.__dict__[key]<br>
                    KeyError: 'components'<br>
                    Error during the compilation of {'to':
                    './build/test-smem@std/srcgen/dataplane.c', 'from':
                    'src/hardware_indep/<a href="http://dataplane.c.py"
                      target="_blank" moz-do-not-send="true">dataplane.c.py</a>'}<br>
                    Traceback (most recent call last):<br>
                      File "src/compiler.py", line 471, in
                    <module><br>
                        main()<br>
                      File "src/compiler.py", line 466, in main<br>
                        print_with_backtrace(sys.exc_info(),
                    current_compilation['from'] if current_compilation
                    else "(no compiled file)")<br>
                      File "src/compiler.py", line 453, in main<br>
                        generate_files()<br>
                      File "src/compiler.py", line 442, in
                    generate_files<br>
                        generate_desugared_c(filename,
                    os.path.join(base, filename))<br>
                      File "src/compiler.py", line 363, in
                    generate_desugared_c<br>
                        code = generate_code(filepath, genfile,
                    {'hlir16': hlir})<br>
                      File "src/compiler.py", line 315, in generate_code<br>
                        exec(code, localvars, localvars)<br>
                      File "<string>", line 194, in <module><br>
                      File
"/home/dv/docker_playground/tapas/docker/tapas2/t4p4s/src/hlir16/p4node.py",
                    line 230, in __getattr__<br>
                        return self.__dict__[key]<br>
                    KeyError: 'components'<br>
                    <br>
                    Error: P4 to C compilation failed (error code: 1)</span></span></div>
            </blockquote>
            <div><span><span><br>
                </span></span></div>
            <div><span><span><br>
                </span></span></div>
            <div><span><span>Later commits appear to fix this issue, so
                  I think updating tapas is the best approach if we want
                  counters to work<br>
                </span></span></div>
            <div><span><span><br>
                </span></span></div>
            <div><span><span>/Jonatan<br>
                </span></span></div>
            <div><span><span><br>
                </span></span></div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Tue, Jul 14, 2020 at
              10:42 AM Gergely Pongracz <<a
                href="mailto:Gergely.Pongracz@ericsson.com"
                target="_blank" moz-do-not-send="true">Gergely.Pongracz@ericsson.com</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 dir="ltr">
                <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">Sandor,
                  this is the problem I was talking about.</div>
                <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">Jonatan,
                  can you tell Sandor which t4p4s version you used?</div>
                <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">Thx!</div>
                <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br>
                </div>
                <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">Gergely</div>
                <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br>
                </div>
                <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br>
                </div>
                <hr style="display:inline-block;width:98%">
                <div
                  id="gmail-m_-6240172592814212209gmail-m_573732932996757040divRplyFwdMsg"
                  dir="ltr"><font style="font-size:11pt" face="Calibri,
                    sans-serif" color="#000000"><b>From:</b> Jonatan
                    Langlet <<a
                      href="mailto:jonatanlanglet@gmail.com"
                      target="_blank" moz-do-not-send="true">jonatanlanglet@gmail.com</a>><br>
                    <b>Sent:</b> Monday, July 13, 2020 2:22 PM<br>
                    <b>To:</b> Gergely Pongracz <<a
                      href="mailto:Gergely.Pongracz@ericsson.com"
                      target="_blank" moz-do-not-send="true">Gergely.Pongracz@ericsson.com</a>><br>
                    <b>Cc:</b> Andreas Kassler <<a
                      href="mailto:andreas.kassler@kau.se"
                      target="_blank" moz-do-not-send="true">andreas.kassler@kau.se</a>><br>
                    <b>Subject:</b> SmartNIC - T4P4S vEPG counter issue</font>
                  <div> </div>
                </div>
                <div>
                  <div dir="ltr">
                    <div>Hi Gergely,</div>
                    <div><br>
                    </div>
                    <div>I am currently finalizing the SmartNIC-T4P4S
                      vEPG system in preparation for final measurements.</div>
                    <div><br>
                    </div>
                    <div>There is one issue with the T4P4S version we
                      built it around. Apparently counters and registers
                      are broken.</div>
                    <div>I am attempting to get the setup to work in the
                      latest t4p4s version, but because of significant
                      changes it seems to take more time than I was
                      hoping for.</div>
                    <div><br>
                    </div>
                    <div>Unless you think it's important to include the
                      performance impact of a direct counter in the
                      measurements, perhaps we should omit it and
                      mention in paper how this is the logical place to
                      include them?</div>
                    <div><br>
                    </div>
                    <div>If not, my estimate is that it will take a few
                      days to migrate everything to the latest T4P4S
                      version, which should make counters possible.</div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div>What do you think?</div>
                    <div><br>
                    </div>
                    <div>Regards,</div>
                    <div>Jonatan<br>
                    </div>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </div>
  </body>
</html>