From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <users-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 6CFE8A0C43
	for <public@inbox.dpdk.org>; Sun, 12 Sep 2021 11:32:49 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id EFAF540042;
	Sun, 12 Sep 2021 11:32:48 +0200 (CEST)
Received: from delivery.mailspamprotection.com
 (delivery.mailspamprotection.com [146.66.121.166])
 by mails.dpdk.org (Postfix) with ESMTP id D0A344003D
 for <users@dpdk.org>; Sun, 12 Sep 2021 11:32:47 +0200 (CEST)
Received: from 72.204.214.35.bc.googleusercontent.com ([35.214.204.72]
 helo=es18.siteground.eu)
 by se22.mailspamprotection.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128)
 (Exim 4.92) (envelope-from <contact@filipjaniszewski.com>)
 id 1mPLqq-000Ci4-M7; Sun, 12 Sep 2021 04:32:46 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=filipjaniszewski.com; s=default; h=Content-Transfer-Encoding:Content-Type:
 In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:From:Subject:Sender
 :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
 Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:
 List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=v0DOdQZTr77kOFhoAbsrKjU9ZZZ7OUsJ9prB4sLuIOE=; b=LmWLQ/hewetnR7/OP3QEUeQ+Pn
 qQEydTb09evpFHaJZ0zgEEdeW3WFSnbORrjN5vaQypD96VG9mwlKbWGNzJwBl2niR6hbHRnc0kbjT
 u/ka/0uxWHrdErxdeGq9ivde7DjTP/Ogh23uXDY0G8n58TzBT25ucSb+flr5enB55xTrlmF70aiqH
 EHE7QW+f54FAWTSP3gw20FJw3T93yLrLoueSZZBQ8i3xPu4zfWo/PsurHdKFPrQImlpkNZqDNA5wb
 a1tH9+9ge9irKi0IK5eGjNNgbeNZXCDGGdj+a+5wJnEekbEWTvb03oDqbXrLrQE0O3kYR9Y4iA3lL
 nZLqfdSA==;
Received: from [89.64.148.179] (port=59698 helo=localhost.localdomain)
 by es18.siteground.eu with esmtpsa (TLS1.2) tls
 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.90-.1)
 (envelope-from <contact@filipjaniszewski.com>)
 id 1mPLqo-000KHE-Ve; Sun, 12 Sep 2021 09:32:39 +0000
From: Filip Janiszewski <contact@filipjaniszewski.com>
To: Steffen Weise <stweise.linux@gmail.com>
Cc: users@dpdk.org
References: <57ab0193-689d-55b9-6f8c-dc23682e7c06@filipjaniszewski.com>
 <ED97FC24-64D7-446B-9EE0-B818BBE30CAA@gmail.com>
 <2712a21a-b0d0-cf80-87b6-76c51151e24d@filipjaniszewski.com>
 <e695bfd1-d752-81f4-cb5e-89f8e0362be8@filipjaniszewski.com>
Message-ID: <1c8ec784-aebe-a081-e47d-dff6733917a4@filipjaniszewski.com>
Date: Sun, 12 Sep 2021 11:32:38 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <e695bfd1-d752-81f4-cb5e-89f8e0362be8@filipjaniszewski.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Originating-IP: 35.214.204.72
X-SpamExperts-Domain: es18.siteground.eu
X-SpamExperts-Username: 35.214.204.72
Authentication-Results: mailspamprotection.com;
 auth=pass smtp.auth=35.214.204.72@es18.siteground.eu
X-SpamExperts-Outgoing-Class: ham
X-SpamExperts-Outgoing-Evidence: Combined (0.23)
X-Recommended-Action: accept
X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9ix3LWML58c+S5R+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Jn6u57byo+LpLCcB2ZbPimobwTmKTKa4K/K
 SfPlyD0js+lnb0pIQ3xUTZboqlUV95Kma4OdOHyknxOm5jmEBeHSnN6UsPSMpsRNdphK+zY3fTOF
 PBfyCUQPGRfAuQJyQcUhQ9MGMevVVKNikwLQ0fq/FOsffcIZO36QdS9RNWQtVBR6DHNowdAa9MeL
 y+WplyJl8w==
X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com
Subject: Re: [dpdk-users] MLX ConnectX-4 Discarding packets
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
Errors-To: users-bounces@dpdk.org
Sender: "users" <users-bounces@dpdk.org>

Alright, nailed it down to a wrong preferred PCIe device in the BIOS
configuration, it has not been changed after the NIC have been moved to
another PCIe slot.

Now the EPYC is going really great, getting 100Gbps rate easily.

Thank

Il 9/11/21 4:34 PM, Filip Janiszewski ha scritto:
> I wanted just to add, while running the same exact testpmd on the other
> machine I won't get a single miss with the same patter traffic:
> 
> .
> testpmd> stop
> Telling cores to stop...
> Waiting for lcores to finish...
> 
>   ------- Forward Stats for RX Port= 0/Queue= 0 -> TX Port= 0/Queue= 0
> -------
>   RX-packets: 61711939       TX-packets: 0              TX-dropped: 0
> 
> 
>   ------- Forward Stats for RX Port= 0/Queue= 1 -> TX Port= 0/Queue= 1
> -------
>   RX-packets: 62889424       TX-packets: 0              TX-dropped: 0
> 
> 
>   ------- Forward Stats for RX Port= 0/Queue= 2 -> TX Port= 0/Queue= 2
> -------
>   RX-packets: 61914199       TX-packets: 0              TX-dropped: 0
> 
> 
>   ------- Forward Stats for RX Port= 0/Queue= 3 -> TX Port= 0/Queue= 3
> -------
>   RX-packets: 63484438       TX-packets: 0              TX-dropped: 0
> 
> 
>   ---------------------- Forward statistics for port 0
> ----------------------
>   RX-packets: 250000000      RX-dropped: 0             RX-total: 250000000
>   TX-packets: 0              TX-dropped: 0             TX-total: 0
> 
> ----------------------------------------------------------------------------
> 
>   +++++++++++++++ Accumulated forward statistics for all
> ports+++++++++++++++
>   RX-packets: 250000000      RX-dropped: 0             RX-total: 250000000
>   TX-packets: 0              TX-dropped: 0             TX-total: 0
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> .
> 
> In the lab I've the EPYC connected directly to the Xeon using a 100GbE
> link, both same RHL8.4 and same DPDK 21.02, running:
> 
> .
> ./dpdk-testpmd -l 21-31 -n 8 -w 81:00.1  -- -i --rxq=4 --txq=4
> --burst=64 --forward-mode=rxonly --rss-ip --total-num-mbufs=4194304
> --nb-cores=4
> .
> 
> and sending from the other end with pktgen, the EPYC loss tons of
> packets (see my previous email), the Xeon don't loss anything.
> 
> *Confusion!*
> 
> Il 9/11/21 4:19 PM, Filip Janiszewski ha scritto:
>> Thanks,
>>
>> I knew that document and we've implemented many of those settings/rules,
>> but perhaps there's one crucial I've forgot? Wonder which one.
>>
>> Anyway, increasing the amount of queues impinge the performance, while
>> sending 250M packets over a 100GbE link to an Intel 810-cqda2 NIC
>> mounted on the EPYC Milan server, i see:
>>
>> .
>> 1 queue, 30Gbps, ~45Mpps, 64B frame = imiss: 54,590,111
>> 2 queue, 30Gbps, ~45Mpps, 64B frame = imiss: 79,394,138
>> 4 queue, 30Gbps, ~45Mpps, 64B frame = imiss: 87,414,030
>> .
>>
>> With DPDK 21.02 on RHL8.4. I can't observe this situation while
>> capturing from my Intel server where increasing the queues leads to
>> better performance (while with the test input set I drop with one queue,
>> I do not drop anymore with 2 on the Intel server.)
>>
>> A customer with a brand new EPYC Milan server in his lab observed as
>> well this scenario which is a bit of a worry, but again it might be some
>> config/compilation issue we need do deal with?
>>
>> BTW, the same issue can be reproduced with testpmd, using 4 queues and
>> the same input data set (250M of 64bytes frame at 30Gbps):
>>
>> .
>> testpmd> stop
>> Telling cores to stop...
>> Waiting for lcores to finish...
>>
>>   ------- Forward Stats for RX Port= 0/Queue= 0 -> TX Port= 0/Queue= 0
>> -------
>>   RX-packets: 41762999       TX-packets: 0              TX-dropped: 0
>>
>>
>>   ------- Forward Stats for RX Port= 0/Queue= 1 -> TX Port= 0/Queue= 1
>> -------
>>   RX-packets: 40152306       TX-packets: 0              TX-dropped: 0
>>
>>
>>   ------- Forward Stats for RX Port= 0/Queue= 2 -> TX Port= 0/Queue= 2
>> -------
>>   RX-packets: 41153402       TX-packets: 0              TX-dropped: 0
>>
>>
>>   ------- Forward Stats for RX Port= 0/Queue= 3 -> TX Port= 0/Queue= 3
>> -------
>>   RX-packets: 38341370       TX-packets: 0              TX-dropped: 0
>>
>>
>>   ---------------------- Forward statistics for port 0
>> ----------------------
>>   RX-packets: 161410077      RX-dropped: 88589923      RX-total: 250000000
>>   TX-packets: 0              TX-dropped: 0             TX-total: 0
>>
>> ----------------------------------------------------------------------------
>> .
>>
>> .
>> testpmd> show port xstats 0
>> ###### NIC extended statistics for port 0
>> rx_good_packets: 161410081
>> tx_good_packets: 0
>> rx_good_bytes: 9684605284
>> tx_good_bytes: 0
>> rx_missed_errors: 88589923
>> .
>>
>> Can't figure out what's wrong here..
>>
>>
>> Il 9/11/21 12:20 PM, Steffen Weise ha scritto:
>>> Hi Filip,
>>>
>>> i have not seen the same issues.
>>> Are you aware of this tuning guide? I applied it and had no issues with
>>> intel 100G NIC.
>>>
>>> HPC Tuning Guide for AMD EPYC Processors
>>> http://developer.amd.com/wp-content/resources/56420.pdf
>>> <http://developer.amd.com/wp-content/resources/56420.pdf>
>>>
>>> Hope it helps.
>>>
>>> Cheers,
>>> Steffen Weise
>>>
>>>
>>>> Am 11.09.2021 um 10:56 schrieb Filip Janiszewski
>>>> <contact@filipjaniszewski.com>:
>>>>
>>>> I ran more tests,
>>>>
>>>> This AMD server is a bit confusing, I can tune it to capture 28Mpps (64
>>>> bytes frame) from one single core, so I would assume that using one more
>>>> core will at least increase a bit the capture capabilities, but it's
>>>> not, 1% more speed and it drops regardless of how many queues are
>>>> configured - I've not observed this situation on the Intel server, where
>>>> adding more queues/cores scale to higher throughput.
>>>>
>>>> This issue have been verified now with both Mellanox and Intel (810
>>>> series, 100GbE) NICs.
>>>>
>>>> Anybody encountered anything similar?
>>>>
>>>> Thanks
>>>>
>>>> Il 9/10/21 3:34 PM, Filip Janiszewski ha scritto:
>>>>> Hi,
>>>>>
>>>>> I've switched a 100Gbe MLX ConnectX-4 card from an Intel Xeon server to
>>>>> an AMD EPYC server (running 75F3 CPU, 256GiB of RAM and PCIe4 lanes),
>>>>> and using the same capture software we can't get any faster than 10Gbps,
>>>>> when exceeding that speed regardless of the amount of queues configured
>>>>> the rx_discards_phy counter starts to raise and packets are lost in huge
>>>>> amounts.
>>>>>
>>>>> On the Xeon machine, I was able to get easily to 50Gbps with 4 queues.
>>>>>
>>>>> Is there any specific DPDK configuration that we might want to setup for
>>>>> those AMD servers? The software is DPDK based so I wonder if some build
>>>>> option is missing somewhere.
>>>>>
>>>>> What else I might want to look for to investigate this issue?
>>>>>
>>>>> Thanks
>>>>>
>>>>
>>>> -- 
>>>> BR, Filip
>>>> +48 666 369 823
>>
> 

-- 
BR, Filip
+48 666 369 823