DPDK usage discussions
 help / color / mirror / Atom feed
From: "Lombardo, Ed" <Ed.Lombardo@netscout.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: DPDK 22.11 allocate memory issue
Date: Thu, 21 Nov 2024 21:39:52 +0000	[thread overview]
Message-ID: <CH3PR01MB847090A615D112BD80834DEF8F222@CH3PR01MB8470.prod.exchangelabs.com> (raw)

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

Hi,
I am having problems with rte_eal_init() and assigning DPDK memory to one numa node (I have two numa node system).

The server is a DELL R730 with dual Haswell processors running Oracle91 (kernel version 5.14.0-284).
Total Memory is 128 GB.

I tried modifying an argument I had used in the past and added a second value, for second socket, with a ',' delimiter to exclude DPDK memory on socket 2.  I tried "--socket-mem=2048,0" and rte_eal_init() suffers a Segmentation fault.


Program received signal SIGSEGV, Segmentation fault.
rte_strsplit (string=string@entry=0x2ee4ec5 "2048,0", stringlen=stringlen@entry=6, tokens=tokens@entry=0x7ffcc7d21f80,
    maxtokens=maxtokens@entry=32, delim=delim@entry=44 ',') at ../lib/eal/common/eal_common_string_fns.c:32
32      ../lib/eal/common/eal_common_string_fns.c: No such file or directory.
(gdb) bt
#0  rte_strsplit (string=string@entry=0x2ee4ec5 "2048,0", stringlen=stringlen@entry=6, tokens=tokens@entry=0x7ffcc7d21f80,
    maxtokens=maxtokens@entry=32, delim=delim@entry=44 ',') at ../lib/eal/common/eal_common_string_fns.c:32
#1  0x0000000002852014 in eal_parse_socket_arg (strval=0x2ee4ec5 "2048,0", socket_arg=socket_arg@entry=0x72b2fb8 <internal_config+56>)
    at ../lib/eal/linux/eal.c:485
#2  0x000000000285262d in eal_parse_args (argv=0x7ffcc7d2a990, argc=9) at ../lib/eal/linux/eal.c:696
#3  rte_eal_init (argc=9, argv=0x7ffcc7d2a990) at ../lib/eal/linux/eal.c:1005
#4  0x0000000000499482 in main (argc=2, argv=0x7ffcc7d2ad18) at linuxmain.c:4320

Perhaps what I provided as an argument "--socket-mem=2048,0" to rte_eal_init() is not supported?



My goal is to allocate all DPDK memory and Hugepage memory to processor 1 (socket 1) on Numa Node 0 where the NIC is located.


When I try remove the rte_eal_init argument "--socket-mem"  it seems to work, puts the DPDK memory on socket 0.

I may want to allocate DPDK memory on second socket or on both CPU sockets with different amounts, how can I do this with ret_eal_init arguments?

Any guidance would be greatly appreciated.

Thanks,
Ed

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

                 reply	other threads:[~2024-11-21 21:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CH3PR01MB847090A615D112BD80834DEF8F222@CH3PR01MB8470.prod.exchangelabs.com \
    --to=ed.lombardo@netscout.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).