DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Alipour, Mehrdad" <malipour@ciena.com>
To: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [**EXTERNAL**] Re: rte_mempool_create fails with --no-huge
Date: Wed, 4 Dec 2024 23:05:00 +0000	[thread overview]
Message-ID: <DM6PR04MB67618E861555D1368F2B961BC4372@DM6PR04MB6761.namprd04.prod.outlook.com> (raw)
In-Reply-To: <20241204235121.2ad20665@sovereign>

Hi Dmitry,

Your observation is good!
But I have the /usr/lib/dpdk/pmds-24.0 in the LD_LIBRARY_PATH but since the host does not have a match glibc, I have to run it with ld-linux-x86-64.so.2 specifying LD_LIBRARY_PATH with equivalent --library-path.

Here is the entire cmd I use to run testpmd:

sudo /lib/ld-linux-x86-64.so.2 --library-path /lib:/usr/lib:/usr/lib/dpdk:/usr/lib/dpdk/pmds-24.0:/ciena/lib /usr/bin/dpdk-testpmd -c 000F -n 2 --log-level=eal,8 --no-huge -m 4095 --no-pci -- -i --nb-cores=2 --total-num-mbufs=2048

Despite the /lib/dpdk/pmds-24.0 libs being visible, the rte_eal_init does not load any of these shared libs while it does when I run it inside the VM.
Would appreciate if you can think of any reasons rte_eal_init does not trigger loading those shared libs in the host run instance.

Regards,
Mehrdad

-----Original Message-----
From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> 
Sent: December 4, 2024 3:51 PM
To: Alipour, Mehrdad <malipour@ciena.com>
Cc: dev@dpdk.org
Subject: [**EXTERNAL**] Re: rte_mempool_create fails with --no-huge

Hi Alipour,

It looks suspicious that on the host you don't see logs about loaded drivers, like these ones that you see inside the VM:

> 2024-12-03 19:32:36.642042  EAL: open shared lib 
> /usr/lib/dpdk/pmds-24.0/librte_net_fm10k.so.24.0
> 2024-12-03 19:32:36.642266  EAL: pmd.net.fm10k.init log level changed 
> from disabled to notice
> 2024-12-03 19:32:36.642279  EAL: pmd.net.fm10k.driver log level 
> changed from disabled to notice
> 2024-12-03 19:32:36.642285  EAL: open shared lib 
> /usr/lib/dpdk/pmds-24.0/librte_net_qdma.so.24.0
> 2024-12-03 19:32:36.642581  EAL: open shared lib 
> /usr/lib/dpdk/pmds-24.0/librte_net_vhost.so
> 2024-12-03 19:32:36.643201  EAL: lib.dmadev log level changed from 
> disabled to info
> 2024-12-03 19:32:36.643264  EAL: Registered [vdpa] device class.

Can it be that DPDK on the host does not see shared libraries, e.g. it is not installed in the system and LD_LIBRARY_PATH is not set to shared library location?
Then mempool driver would just not be loaded to create a mempool.

  reply	other threads:[~2024-12-04 23:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-03 19:54 Alipour, Mehrdad
2024-12-04 20:51 ` Dmitry Kozlyuk
2024-12-04 23:05   ` Alipour, Mehrdad [this message]
2024-12-05  8:30     ` [**EXTERNAL**] " David Marchand
2024-12-05 21:28       ` Alipour, Mehrdad
2024-12-06  7:38         ` David Marchand

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=DM6PR04MB67618E861555D1368F2B961BC4372@DM6PR04MB6761.namprd04.prod.outlook.com \
    --to=malipour@ciena.com \
    --cc=dev@dpdk.org \
    --cc=dmitry.kozliuk@gmail.com \
    /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).