DPDK usage discussions
 help / color / mirror / Atom feed
* dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5 card
@ 2023-07-11 21:52 Antonio Di Bacco
  2023-07-12 13:56 ` Maayan Kashani
  0 siblings, 1 reply; 4+ messages in thread
From: Antonio Di Bacco @ 2023-07-11 21:52 UTC (permalink / raw)
  To: users

If I try to use dpdk-pktgen on a MLX5 card, I get this SIGSEGV

[user@dhcp-10-84-89-229 pktgen-dpdk]$  sudo
LD_LIBRARY_PATH=/usr/local/lib64 ./usr/local/bin/pktgen -l50-54  -n 2
 --allow c1:00.0 -- -P -m "52.1"

*** Copyright(c) <2010-2023>, Intel Corporation. All rights reserved.
*** Pktgen  created by: Keith Wiles -- >>> Powered by DPDK <<<

    0: mlx5_pci        9      1   15b3:1019/c1:00.0



*** Unable to create capture memzone for socket ID 2
*** Unable to create capture memzone for socket ID 3
*** Unable to create capture memzone for socket ID 4
*** Unable to create capture memzone for socket ID 5
*** Unable to create capture memzone for socket ID 6
*** Unable to create capture memzone for socket ID 7
---- repeating message
----
*** Unable to create capture memzone for socket ID 219
*** Unable to create capture memzone for socket ID 220
*** Unable to create capture memzone for socket ID 221
*** Unable to create capture memzone for socket ID 222
WARNING: Nothing to do on lcore 51: exiting
WARNING: Nothing to do on lcore 53: exiting
WARNING: Nothing to do on lcore 54: exiting
- Ports 0-0 of 1   <Main Page>  Copyright(c) <2010-2023>, Intel Corporation
  Port:Flags        :
Link State          :
Pkts/s Rx           :
       Tx           :
MBits/s Rx/Tx       :
Pkts/s Rx Max       :
       Tx Max       :
Broadcast           :
Multicast           :
Sizes 64            :
      65-127        :
      128-255       :
      256-511       :
      512-1023      :
      1024-1518     :
Runts/Jumbos        :
ARP/ICMP Pkts       :
Errors Rx/Tx        :
Total Rx Pkts       :
      Tx Pkts       :
      Rx/Tx MBs     :
TCP Flags           :
TCP Seq/Ack         :
Pattern Type        :
Tx Count/% Rate     :
Pkt Size/Rx:Tx Burst:
TTL/Port Src/Dest   :
Pkt Type:VLAN ID    :
802.1p CoS/DSCP/IPP :
VxLAN Flg/Grp/vid   :
IP  Destination     :
    Source          :
MAC Destination     :
    Source          :
NUMA/Vend:ID/PCI    :
-- Pktgen 23.06.1 (DPDK 22.11.2)  Powered by DPDK  (pid:20433) ----------------


====== Pktgen got a Segment Fault

Obtained 11 stack frames.
./usr/local/bin/pktgen() [0x43f1b8]
/lib64/libc.so.6(+0x54df0) [0x7fe22a2a3df0]
./usr/local/bin/pktgen() [0x458859]
./usr/local/bin/pktgen() [0x4592cc]
./usr/local/bin/pktgen() [0x43d6d9]
./usr/local/bin/pktgen() [0x43d73a]
./usr/local/bin/pktgen() [0x41cd10]
./usr/local/bin/pktgen() [0x43f601]
/lib64/libc.so.6(+0x3feb0) [0x7fe22a28eeb0]
/lib64/libc.so.6(__libc_start_main+0x80) [0x7fe22a28ef60]
./usr/local/bin/pktgen() [0x404bf5]


Testpmd works fine on the same card.

Anyone can give me a suggestion?

Best regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5 card
  2023-07-11 21:52 dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5 card Antonio Di Bacco
@ 2023-07-12 13:56 ` Maayan Kashani
  2023-07-12 14:40   ` Wiles, Keith
  0 siblings, 1 reply; 4+ messages in thread
From: Maayan Kashani @ 2023-07-12 13:56 UTC (permalink / raw)
  To: Antonio Di Bacco, users; +Cc: Raslan Darawsheh, Ali Alnubani

Hi, Antonio,
Sorry for the late reply,
Thanks for bringing this issue to our attention.
We need to investigate it, and share more data once we have it. 

Regards,
Maayan Kashani

> -----Original Message-----
> From: Antonio Di Bacco <a.dibacco.ks@gmail.com>
> Sent: Wednesday, 12 July 2023 0:52
> To: users@dpdk.org
> Subject: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5
> card
> 
> External email: Use caution opening links or attachments
> 
> 
> If I try to use dpdk-pktgen on a MLX5 card, I get this SIGSEGV
> 
> [user@dhcp-10-84-89-229 pktgen-dpdk]$  sudo
> LD_LIBRARY_PATH=/usr/local/lib64 ./usr/local/bin/pktgen -l50-54  -n 2  --allow
> c1:00.0 -- -P -m "52.1"
> 
> *** Copyright(c) <2010-2023>, Intel Corporation. All rights reserved.
> *** Pktgen  created by: Keith Wiles -- >>> Powered by DPDK <<<
> 
>     0: mlx5_pci        9      1   15b3:1019/c1:00.0
> 
> 
> 
> *** Unable to create capture memzone for socket ID 2
> *** Unable to create capture memzone for socket ID 3
> *** Unable to create capture memzone for socket ID 4
> *** Unable to create capture memzone for socket ID 5
> *** Unable to create capture memzone for socket ID 6
> *** Unable to create capture memzone for socket ID 7
> ---- repeating message
> ----
> *** Unable to create capture memzone for socket ID 219
> *** Unable to create capture memzone for socket ID 220
> *** Unable to create capture memzone for socket ID 221
> *** Unable to create capture memzone for socket ID 222
> WARNING: Nothing to do on lcore 51: exiting
> WARNING: Nothing to do on lcore 53: exiting
> WARNING: Nothing to do on lcore 54: exiting
> - Ports 0-0 of 1   <Main Page>  Copyright(c) <2010-2023>, Intel Corporation
>   Port:Flags        :
> Link State          :
> Pkts/s Rx           :
>        Tx           :
> MBits/s Rx/Tx       :
> Pkts/s Rx Max       :
>        Tx Max       :
> Broadcast           :
> Multicast           :
> Sizes 64            :
>       65-127        :
>       128-255       :
>       256-511       :
>       512-1023      :
>       1024-1518     :
> Runts/Jumbos        :
> ARP/ICMP Pkts       :
> Errors Rx/Tx        :
> Total Rx Pkts       :
>       Tx Pkts       :
>       Rx/Tx MBs     :
> TCP Flags           :
> TCP Seq/Ack         :
> Pattern Type        :
> Tx Count/% Rate     :
> Pkt Size/Rx:Tx Burst:
> TTL/Port Src/Dest   :
> Pkt Type:VLAN ID    :
> 802.1p CoS/DSCP/IPP :
> VxLAN Flg/Grp/vid   :
> IP  Destination     :
>     Source          :
> MAC Destination     :
>     Source          :
> NUMA/Vend:ID/PCI    :
> -- Pktgen 23.06.1 (DPDK 22.11.2)  Powered by DPDK  (pid:20433) ----------------
> 
> 
> ====== Pktgen got a Segment Fault
> 
> Obtained 11 stack frames.
> ./usr/local/bin/pktgen() [0x43f1b8]
> /lib64/libc.so.6(+0x54df0) [0x7fe22a2a3df0]
> ./usr/local/bin/pktgen() [0x458859]
> ./usr/local/bin/pktgen() [0x4592cc]
> ./usr/local/bin/pktgen() [0x43d6d9]
> ./usr/local/bin/pktgen() [0x43d73a]
> ./usr/local/bin/pktgen() [0x41cd10]
> ./usr/local/bin/pktgen() [0x43f601]
> /lib64/libc.so.6(+0x3feb0) [0x7fe22a28eeb0]
> /lib64/libc.so.6(__libc_start_main+0x80) [0x7fe22a28ef60]
> ./usr/local/bin/pktgen() [0x404bf5]
> 
> 
> Testpmd works fine on the same card.
> 
> Anyone can give me a suggestion?
> 
> Best regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5 card
  2023-07-12 13:56 ` Maayan Kashani
@ 2023-07-12 14:40   ` Wiles, Keith
  2023-07-13 18:21     ` Antonio Di Bacco
  0 siblings, 1 reply; 4+ messages in thread
From: Wiles, Keith @ 2023-07-12 14:40 UTC (permalink / raw)
  To: Maayan Kashani, Antonio Di Bacco, users; +Cc: Raslan Darawsheh, Ali Alnubani

[-- Attachment #1: Type: text/plain, Size: 4316 bytes --]

From: Maayan Kashani <mkashani@nvidia.com>
Date: Wednesday, July 12, 2023 at 8:57 AM
To: Antonio Di Bacco <a.dibacco.ks@gmail.com>, users@dpdk.org <users@dpdk.org>
Cc: Raslan Darawsheh <rasland@nvidia.com>, Ali Alnubani <alialnu@nvidia.com>
Subject: RE: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5 card
Hi, Antonio,
Sorry for the late reply,
Thanks for bringing this issue to our attention.
We need to investigate it, and share more data once we have it.

Regards,
Maayan Kashani

> -----Original Message-----
> From: Antonio Di Bacco <a.dibacco.ks@gmail.com>
> Sent: Wednesday, 12 July 2023 0:52
> To: users@dpdk.org
> Subject: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5
> card
>
> External email: Use caution opening links or attachments
>
>
> If I try to use dpdk-pktgen on a MLX5 card, I get this SIGSEGV
>
> [user@dhcp-10-84-89-229 pktgen-dpdk]$  sudo
> LD_LIBRARY_PATH=/usr/local/lib64 ./usr/local/bin/pktgen -l50-54  -n 2  --allow
> c1:00.0 -- -P -m "52.1"

Hope the format is correct I told macos outlook to reply as text, but it never seems to work. ☹

I noticed here you define lcores  -l 50-54, which means 50 is used for timers and display output. Then 51-54 are used for ports.
The one thing I see here is that you define a lcore.port mapping  of -m “52.1” meaning lcore 52 and port 1. You only have 1 port, which means it should be -m “52.0” the other unused lcores will be reported as not used. Looks like I need to add some tests to detect this problem. ☹

I hope this helps. I did not see this email as I have a filter set to detect a subject line with Pktgen in the text.

>
> *** Copyright(c) <2010-2023>, Intel Corporation. All rights reserved.
> *** Pktgen  created by: Keith Wiles -- >>> Powered by DPDK <<<
>
>     0: mlx5_pci        9      1   15b3:1019/c1:00.0
>
>
>
> *** Unable to create capture memzone for socket ID 2
> *** Unable to create capture memzone for socket ID 3
> *** Unable to create capture memzone for socket ID 4
> *** Unable to create capture memzone for socket ID 5
> *** Unable to create capture memzone for socket ID 6
> *** Unable to create capture memzone for socket ID 7
> ---- repeating message
> ----
> *** Unable to create capture memzone for socket ID 219
> *** Unable to create capture memzone for socket ID 220
> *** Unable to create capture memzone for socket ID 221
> *** Unable to create capture memzone for socket ID 222
> WARNING: Nothing to do on lcore 51: exiting
> WARNING: Nothing to do on lcore 53: exiting
> WARNING: Nothing to do on lcore 54: exiting
> - Ports 0-0 of 1   <Main Page>  Copyright(c) <2010-2023>, Intel Corporation
>   Port:Flags        :
> Link State          :
> Pkts/s Rx           :
>        Tx           :
> MBits/s Rx/Tx       :
> Pkts/s Rx Max       :
>        Tx Max       :
> Broadcast           :
> Multicast           :
> Sizes 64            :
>       65-127        :
>       128-255       :
>       256-511       :
>       512-1023      :
>       1024-1518     :
> Runts/Jumbos        :
> ARP/ICMP Pkts       :
> Errors Rx/Tx        :
> Total Rx Pkts       :
>       Tx Pkts       :
>       Rx/Tx MBs     :
> TCP Flags           :
> TCP Seq/Ack         :
> Pattern Type        :
> Tx Count/% Rate     :
> Pkt Size/Rx:Tx Burst:
> TTL/Port Src/Dest   :
> Pkt Type:VLAN ID    :
> 802.1p CoS/DSCP/IPP :
> VxLAN Flg/Grp/vid   :
> IP  Destination     :
>     Source          :
> MAC Destination     :
>     Source          :
> NUMA/Vend:ID/PCI    :
> -- Pktgen 23.06.1 (DPDK 22.11.2)  Powered by DPDK  (pid:20433) ----------------
>
>
> ====== Pktgen got a Segment Fault
>
> Obtained 11 stack frames.
> ./usr/local/bin/pktgen() [0x43f1b8]
> /lib64/libc.so.6(+0x54df0) [0x7fe22a2a3df0]
> ./usr/local/bin/pktgen() [0x458859]
> ./usr/local/bin/pktgen() [0x4592cc]
> ./usr/local/bin/pktgen() [0x43d6d9]
> ./usr/local/bin/pktgen() [0x43d73a]
> ./usr/local/bin/pktgen() [0x41cd10]
> ./usr/local/bin/pktgen() [0x43f601]
> /lib64/libc.so.6(+0x3feb0) [0x7fe22a28eeb0]
> /lib64/libc.so.6(__libc_start_main+0x80) [0x7fe22a28ef60]
> ./usr/local/bin/pktgen() [0x404bf5]
>
>
> Testpmd works fine on the same card.
>
> Anyone can give me a suggestion?
>
> Best regards.

[-- Attachment #2: Type: text/html, Size: 9353 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5 card
  2023-07-12 14:40   ` Wiles, Keith
@ 2023-07-13 18:21     ` Antonio Di Bacco
  0 siblings, 0 replies; 4+ messages in thread
From: Antonio Di Bacco @ 2023-07-13 18:21 UTC (permalink / raw)
  To: Wiles, Keith; +Cc: Maayan Kashani, users, Raslan Darawsheh, Ali Alnubani

The problem was on my side, the mellanox card was on NUMA 1 but I
provided only cores on NUMA 0.

Thank you

On Wed, Jul 12, 2023 at 4:40 PM Wiles, Keith <keith.wiles@intel.com> wrote:
>
> From: Maayan Kashani <mkashani@nvidia.com>
> Date: Wednesday, July 12, 2023 at 8:57 AM
> To: Antonio Di Bacco <a.dibacco.ks@gmail.com>, users@dpdk.org <users@dpdk.org>
> Cc: Raslan Darawsheh <rasland@nvidia.com>, Ali Alnubani <alialnu@nvidia.com>
> Subject: RE: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5 card
>
> Hi, Antonio,
> Sorry for the late reply,
> Thanks for bringing this issue to our attention.
> We need to investigate it, and share more data once we have it.
>
> Regards,
> Maayan Kashani
>
> > -----Original Message-----
> > From: Antonio Di Bacco <a.dibacco.ks@gmail.com>
> > Sent: Wednesday, 12 July 2023 0:52
> > To: users@dpdk.org
> > Subject: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5
> > card
> >
> > External email: Use caution opening links or attachments
> >
> >
> > If I try to use dpdk-pktgen on a MLX5 card, I get this SIGSEGV
> >
> > [user@dhcp-10-84-89-229 pktgen-dpdk]$  sudo
> > LD_LIBRARY_PATH=/usr/local/lib64 ./usr/local/bin/pktgen -l50-54  -n 2  --allow
> > c1:00.0 -- -P -m "52.1"
>
>
>
> Hope the format is correct I told macos outlook to reply as text, but it never seems to work. ☹
>
>
>
> I noticed here you define lcores  -l 50-54, which means 50 is used for timers and display output. Then 51-54 are used for ports.
>
> The one thing I see here is that you define a lcore.port mapping  of -m “52.1” meaning lcore 52 and port 1. You only have 1 port, which means it should be -m “52.0” the other unused lcores will be reported as not used. Looks like I need to add some tests to detect this problem. ☹
>
>
>
> I hope this helps. I did not see this email as I have a filter set to detect a subject line with Pktgen in the text.
>
>
> >
> > *** Copyright(c) <2010-2023>, Intel Corporation. All rights reserved.
> > *** Pktgen  created by: Keith Wiles -- >>> Powered by DPDK <<<
> >
> >     0: mlx5_pci        9      1   15b3:1019/c1:00.0
> >
> >
> >
> > *** Unable to create capture memzone for socket ID 2
> > *** Unable to create capture memzone for socket ID 3
> > *** Unable to create capture memzone for socket ID 4
> > *** Unable to create capture memzone for socket ID 5
> > *** Unable to create capture memzone for socket ID 6
> > *** Unable to create capture memzone for socket ID 7
> > ---- repeating message
> > ----
> > *** Unable to create capture memzone for socket ID 219
> > *** Unable to create capture memzone for socket ID 220
> > *** Unable to create capture memzone for socket ID 221
> > *** Unable to create capture memzone for socket ID 222
> > WARNING: Nothing to do on lcore 51: exiting
> > WARNING: Nothing to do on lcore 53: exiting
> > WARNING: Nothing to do on lcore 54: exiting
> > - Ports 0-0 of 1   <Main Page>  Copyright(c) <2010-2023>, Intel Corporation
> >   Port:Flags        :
> > Link State          :
> > Pkts/s Rx           :
> >        Tx           :
> > MBits/s Rx/Tx       :
> > Pkts/s Rx Max       :
> >        Tx Max       :
> > Broadcast           :
> > Multicast           :
> > Sizes 64            :
> >       65-127        :
> >       128-255       :
> >       256-511       :
> >       512-1023      :
> >       1024-1518     :
> > Runts/Jumbos        :
> > ARP/ICMP Pkts       :
> > Errors Rx/Tx        :
> > Total Rx Pkts       :
> >       Tx Pkts       :
> >       Rx/Tx MBs     :
> > TCP Flags           :
> > TCP Seq/Ack         :
> > Pattern Type        :
> > Tx Count/% Rate     :
> > Pkt Size/Rx:Tx Burst:
> > TTL/Port Src/Dest   :
> > Pkt Type:VLAN ID    :
> > 802.1p CoS/DSCP/IPP :
> > VxLAN Flg/Grp/vid   :
> > IP  Destination     :
> >     Source          :
> > MAC Destination     :
> >     Source          :
> > NUMA/Vend:ID/PCI    :
> > -- Pktgen 23.06.1 (DPDK 22.11.2)  Powered by DPDK  (pid:20433) ----------------
> >
> >
> > ====== Pktgen got a Segment Fault
> >
> > Obtained 11 stack frames.
> > ./usr/local/bin/pktgen() [0x43f1b8]
> > /lib64/libc.so.6(+0x54df0) [0x7fe22a2a3df0]
> > ./usr/local/bin/pktgen() [0x458859]
> > ./usr/local/bin/pktgen() [0x4592cc]
> > ./usr/local/bin/pktgen() [0x43d6d9]
> > ./usr/local/bin/pktgen() [0x43d73a]
> > ./usr/local/bin/pktgen() [0x41cd10]
> > ./usr/local/bin/pktgen() [0x43f601]
> > /lib64/libc.so.6(+0x3feb0) [0x7fe22a28eeb0]
> > /lib64/libc.so.6(__libc_start_main+0x80) [0x7fe22a28ef60]
> > ./usr/local/bin/pktgen() [0x404bf5]
> >
> >
> > Testpmd works fine on the same card.
> >
> > Anyone can give me a suggestion?
> >
> > Best regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-13 18:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-11 21:52 dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5 card Antonio Di Bacco
2023-07-12 13:56 ` Maayan Kashani
2023-07-12 14:40   ` Wiles, Keith
2023-07-13 18:21     ` Antonio Di Bacco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).