<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Cirka fél éve abban sem voltuk biztosak, hogy folytatódni fog a
      projektünk, most meg hozzánk járnak tanácsért a P4-gyel
      kísérletező emberek a világ különböző pontjairól :)</p>
    <p>Apropó, a válaszra / arányszámra én is kíváncsi vagyok, mert nem
      vagyok képben, hogy nekünk mennyi idő egy csomagot átvinni.</p>
    <p>Dani<br>
    </p>
    <div class="moz-cite-prefix">On 2016-07-27 16:32, Sándor Laki wrote:<br>
    </div>
    <blockquote cite="mid:d7c22985-4ccb-dcd9-1e97-9eb462640799@elte.hu"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p><br>
      </p>
      <div class="moz-forward-container"><br>
        <br>
        -------- Forwarded Message --------
        <table class="moz-email-headers-table" cellpadding="0"
          cellspacing="0" border="0">
          <tbody>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
              </th>
              <td>any performance data on your P4ELTE/p4c compiler for
                DPDK ?</td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date:
              </th>
              <td>Wed, 27 Jul 2016 15:57:59 +0200</td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From:
              </th>
              <td>Luigi Rizzo <a moz-do-not-send="true"
                  class="moz-txt-link-rfc2396E"
                  href="mailto:rizzo@iet.unipi.it"><rizzo@iet.unipi.it></a></td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
              <td><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:lakis@elte.hu">lakis@elte.hu</a></td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">CC: </th>
              <td>Eggert, Lars <a moz-do-not-send="true"
                  class="moz-txt-link-rfc2396E"
                  href="mailto:lars@netapp.com"><lars@netapp.com></a>,
                Yuri Iozzelli <a moz-do-not-send="true"
                  class="moz-txt-link-rfc2396E"
                  href="mailto:y.iozzelli@gmail.com"><y.iozzelli@gmail.com></a></td>
            </tr>
          </tbody>
        </table>
        <br>
        <br>
        <pre>Hi,
I have read the thread on the p4-dev list regarding your
P4 compiler targeting DPDK, and was wondering if you have
some performance data (in terms of packets per second or similar)
of your code, say for some simple P4 configuration.

With my student Yuri we have been working on accelerating the
reference p4 code on github (also adding support for netmap) and while
we have very good results in accelerating I/O and queues,
the main bottleneck is now in the ingress and egress stages.

Roughly speaking (we will post this later to the list):

- the reference P4 code has two operating modes:

  SINGLE
     all stages (input, parse, ingres, egress, deparse, output)
     run in the same thread.
  MULTI
     processing is split in multiple threads (e.g. four)
     connected by queues

  The reference code has however very expensive queues so the
  "MULTI" case is actually slower than the "SINGLE" one.
  We measured some 4900 ns/pkt for SIMPLE_ROUTER, and 1400 ns/pkt
  for L2 switch

- Yuri and I made a number of enhancements to the queues,
  making them lock free, and that made the MULTI case more
  efficient, so the bottleneck is now the slowest stage in
  the pipeline.

- We also worked on the memory allocator (another significant
  bottleneck) and added support for netmap.

Overall, we are now down to about 500 ns per packet for the L2
switch, and 1400 ns/pkt for the SIMPLE_ROUTER. We still have
some room for improvement in the latter case.

cheers
luigi

-- 
-----------------------------------------+-------------------------------
 Prof. Luigi RIZZO, <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:rizzo@iet.unipi.it">rizzo@iet.unipi.it</a>  . Dip. di Ing. dell'Informazione
 <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.iet.unipi.it/%7Eluigi/">http://www.iet.unipi.it/~luigi/</a>        . Universita` di Pisa
 TEL      +39-050-2217533               . via Diotisalvi 2
 Mobile   +39-338-6809875               . 56122 PISA (Italy)
-----------------------------------------+-------------------------------
</pre>
      </div>
      <br>
      <br>
      <hr style="border:none; color:#909090; background-color:#B0B0B0;
        height: 1px; width: 99%;">
      <table style="border-collapse:collapse;border:none;">
        <tbody>
          <tr>
            <td style="border:none;padding:0px 15px 0px 8px"> <a
                moz-do-not-send="true"
                href="https://www.avast.com/antivirus"> <img
                  moz-do-not-send="true"
                  src="http://static.avast.com/emails/avast-mail-stamp.png"
                  alt="Avast logo" border="0"> </a> </td>
            <td>
              <p style="color:#3d4d5a;
font-family:"Calibri","Verdana","Arial","Helvetica";
                font-size:12pt;"> Ezt az e-mailt az Avast víruskereső
                szoftver átvizsgálta. <br>
                <a moz-do-not-send="true"
                  href="https://www.avast.com/antivirus">www.avast.com</a>
              </p>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
P4 mailing list
<a class="moz-txt-link-abbreviated" href="mailto:P4@plc.inf.elte.hu">P4@plc.inf.elte.hu</a>
<a class="moz-txt-link-freetext" href="https://plc.inf.elte.hu/mailman/listinfo/p4">https://plc.inf.elte.hu/mailman/listinfo/p4</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>