<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Dmitry,<br>
    </p>
    <div class="moz-cite-prefix">2025. 02. 24. 21:37 keltezéssel, Dmitry
      Kozlyuk írta:<br>
    </div>
    <span style="white-space: pre-wrap">
</span><span style="white-space: pre-wrap">
</span>
    <blockquote type="cite" cite="mid:20250224233720.04fb1bae@sovereign">
      <pre wrap="" class="moz-quote-pre">Mellanox NICs need mlx5_core kernel driver even when used via DPDK.
</pre>
    </blockquote>
    <p><span style="white-space: pre-wrap">Indeed, it works! Thank you very much! I would have never thought of that.</span></p>
    <p><span style="white-space: pre-wrap">However, it seems to be rather slow and it loses frames.
</span></p>
    <p><span style="white-space: pre-wrap">With my siitperf ( <a class="moz-txt-link-freetext" href="https://github.com/lencsegabor/siitperf">https://github.com/lencsegabor/siitperf</a> ) measurement program I can achieve 7.1Mfps per direction using bidirectional traffic with 64-byte frame size when I use X540. And the bottleneck is surely the X540, as the numbers are the same when I use fixed IP addresses and port numbers and when any or both of them varies. With X710, I can achieve more that 8Mfps using RFC 4814 pseudorandom port numbers and more than 10Mfps using fixed frames (</span><span
      style="white-space: pre-wrap">using bidirectional traffic with 64-byte frame size).</span></p>
    <p><span style="white-space: pre-wrap">However the first step of the binary search of the throughput test using 8Mfps rate lasted more than 120s (instead of 60s). </span></p>
    <p><span style="white-space: pre-wrap">What is worse, the binary search counts down to 0 due to the loss of a small amount of packets.</span></p>
    <p><span style="white-space: pre-wrap">Here is the current output:</span></p>
    <p><span style="white-space: pre-wrap"><font face="monospace">---------------------------------------------------
2025-02-24 22:26:18.165766809 Iteration no. 1-8
---------------------------------------------------
Testing rate: 31250 fps.
EAL: Detected 16 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Probe PCI driver: mlx5_pci (15b3:1015) device: 0000:05:00.0 (socket 0)
EAL: Probe PCI driver: mlx5_pci (15b3:1015) device: 0000:05:00.1 (socket 0)
EAL: Probe PCI driver: net_mlx4 (15b3:1007) device: 0000:82:00.0 (socket 1)
EAL: No legacy callbacks, legacy socket not created
Info: Left port and Left Sender CPU core belong to the same NUMA node: 0
Info: Right port and Right Receiver CPU core belong to the same NUMA node: 0
Info: Right port and Right Sender CPU core belong to the same NUMA node: 0
Info: Left port and Left Receiver CPU core belong to the same NUMA node: 0
Info: Testing initiated at 2025-02-24 22:26:19
Info: Forward sender's sending took 59.9999682437 seconds.
Forward frames sent: 1875000
Info: Reverse sender's sending took 59.9999682300 seconds.
Reverse frames sent: 1875000
Reverse frames received: 1874963
Forward frames received: 1874958
Info: Test finished.
Forward: 1874958 frames were received from the required 1875000 frames
Reverse: 1874963 frames were received from the required 1875000 frames
TEST FAILED
</font></span></p>
    <p><span style="white-space: pre-wrap">Do you have any idea, what is happening here?</span></p>
    <p><span style="white-space: pre-wrap">Best regards,</span></p>
    <p><span style="white-space: pre-wrap">Gábor</span></p>
    <p><span style="white-space: pre-wrap">
</span></p>
    <p><span style="white-space: pre-wrap">
</span></p>
  </body>
</html>