<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hát a legutóbbi mérésnél, 1 maggal 6.5 Gbps küldési rátát adott
      az L2 példa (10 entry volt a dmac táblában). Ez durván becsülve
      kb. 103 ns/csomag.<br>
    </p>
    <p>Közben az említett blade serverek között sikerült kipróbálnom a
      DPDK-t, Broadcom Netxtreme II 10/20GbE dual kártyával. A max ráta,
      amit ez tud 3MPPS, ami messze elmarad az Inteles 14.8MPPS-től.
      Lényegében mérésre nem jó, mert csak nagy csomagmérettel tudja a
      10-20 Gbps-t. Közben utánaolvastam és más is erre jutott, sőt egy
      DPDK fórumon a Broadcomosok is megerősítették, hogy ennyit tud a
      kártya. A gépekben van még egy Mellanox Connect-IB kártya is, de
      ezt nem támogatja a DPDK. Nem kapcsolható Ethernet módba, ami
      előfeltétele a DPDK-s használatnak... FW nem támogatja ezt. <br>
    </p>
    <p>Üdv.<br>
      Sanyi<br>
    </p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 2016.07.27. 16:38, Dániel Horpácsi
      wrote:<br>
    </div>
    <blockquote cite="mid:65a8819f-38e7-8d88-e822-2834ee80ac15@elte.hu"
      type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <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" border="0"
            cellpadding="0" cellspacing="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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:P4@plc.inf.elte.hu">P4@plc.inf.elte.hu</a>
<a moz-do-not-send="true" 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>
      <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>
    <pre class="moz-signature" cols="72">-- 
Sándor Laki, PhD
Assistant professor
Department of Information Systems
Eötvös Loránd University
Pázmány Péter stny. 1/C
H-1117, Budapest, Hungary
Room 2.506
Web: <a class="moz-txt-link-freetext" href="http://lakis.web.elte.hu">http://lakis.web.elte.hu</a>
Phone: +36 1 372 2869 / 8477
Cell: +36 70 374 2646</pre>
  
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="https://www.avast.com/antivirus">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" />
                        </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 href="https://www.avast.com/antivirus">www.avast.com</a>
                        </p>
                </td>
        </tr>
</table>
<br />
</body>
</html>