DPDK usage discussions
 help / color / mirror / Atom feed
From: Bing Zhao <bingz@nvidia.com>
To: Maayan Kashani <mkashani@nvidia.com>,
	narsimharaj pentam <pnarsimharaj@gmail.com>,
	"users@dpdk.org" <users@dpdk.org>
Subject: RE: mlx5_stats_get reports crash: invalid ibv_context
Date: Wed, 4 Dec 2024 08:31:55 +0000	[thread overview]
Message-ID: <SN7PR12MB6909D3D678C464351256B47ED0372@SN7PR12MB6909.namprd12.prod.outlook.com> (raw)
In-Reply-To: <PH7SPRMB0021271089E9798383D56F17B2372@PH7SPRMB0021.namprd12.prod.outlook.com>

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

Hi @narsimharaj pentam<mailto:pnarsimharaj@gmail.com>,
Is it multiple threads or multiple processes as the secondary as Maayan mentioned? BTW, is it a bond configuration?

From: Maayan Kashani <mkashani@nvidia.com>
Sent: Wednesday, December 4, 2024 3:36 PM
To: narsimharaj pentam <pnarsimharaj@gmail.com>; users@dpdk.org
Subject: RE: mlx5_stats_get reports crash: invalid ibv_context

External email: Use caution opening links or attachments

Hi, Narsimha,
Sorry for the late response,
in mlx5 stats we do mention that
- For secondary process:
  - "out_of_buffer" statistics is not supported.

Do you have some testpmd reproduction?


Regards,
Maayan Kashani

From: narsimharaj pentam <pnarsimharaj@gmail.com<mailto:pnarsimharaj@gmail.com>>
Sent: Wednesday, 28 February 2024 6:32
To: users@dpdk.org<mailto:users@dpdk.org>
Subject: mlx5_stats_get reports crash: invalid ibv_context

External email: Use caution opening links or attachments

Hi Team,

A crash is observed on  MLX5 device  while  fetching stats "mlx5_stats_get"  , looks like ibv_context  is getting corrupted  ( ibctx=0x1ede838800001e)

We do access the stats from multiple threads  simultaneously , does this create any issue ?

Platform details:

Platform      :     VM
Hypervisor    :     Linux KVM
Cloud         :     None
Application   :     64-bit
Datapath      :     DPDK
DPDK : dpdk-22.11.1
Library : libmlx5-rdmav34.so


Program terminated with signal 11, Segmentation fault.
#0  0x00007ffff0114c83 in mlx5_get_dv_ops (ibctx=0x1ede838800001e) at ../providers/mlx5/mlx5.c:2734
2734    ../providers/mlx5/mlx5.c: No such file or directory.
(gdb) bt
#0  0x00007ffff0114c83 in mlx5_get_dv_ops (ibctx=0x1ede838800001e) at ../providers/mlx5/mlx5.c:2734
#1  0x00007ffff012f378 in mlx5dv_devx_obj_query (obj=0x27cabd0 <SipMedia::SipMedia(SipMedia const&)+1120>, in=0x7fffa6badb20, inlen=32, out=0x7fffa6badb40, outlen=1024)
    at ../providers/mlx5/verbs.c:5808
#2  0x0000000004fc0eeb in mlx5_devx_cmd_queue_counter_query (dcs=0x31131be2b2c0, clear=clear@entry=0, out_of_buffers=out_of_buffers@entry=0x7fffa6bae010)
    at ../usbc_gnu_src/drivers/common/mlx5/mlx5_devx_cmds.c:2845
#3  0x00000000052ec96d in mlx5_os_read_dev_stat (priv=priv@entry=0x31131bf66400, ctr_name=<optimized out>, ctr_name@entry=0x5b6fcc2 "out_of_buffer", stat=stat@entry=0x7fffa6bae010)
    at ../usbc_gnu_src/drivers/net/mlx5/linux/mlx5_os.c:2684
#4  0x00000000053719e4 in mlx5_stats_get (dev=<optimized out>, stats=0x7fffa6bae690) at ../usbc_gnu_src/drivers/net/mlx5/mlx5_stats.c:155
#5  0x0000000005076873 in rte_eth_stats_get () at ../usbc_gnu_src/lib/ethdev/rte_ethdev.c:2733

BR
Narsimha

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

      reply	other threads:[~2024-12-04  8:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-28  4:32 narsimharaj pentam
2024-12-04  7:36 ` Maayan Kashani
2024-12-04  8:31   ` Bing Zhao [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SN7PR12MB6909D3D678C464351256B47ED0372@SN7PR12MB6909.namprd12.prod.outlook.com \
    --to=bingz@nvidia.com \
    --cc=mkashani@nvidia.com \
    --cc=pnarsimharaj@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).