From: "Shravan Raj (shrraj)" <shrraj@cisco.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] Helloworld dpdk app is crashing
Date: Wed, 22 Apr 2020 10:18:28 +0000 [thread overview]
Message-ID: <DM6PR11MB373739893A58660342BA03CFD0D20@DM6PR11MB3737.namprd11.prod.outlook.com> (raw)
Hi All,
I compiled helloworld app in dpdk-19.11.1 stable version and tried to run . The app is crashing with panic message.
Logs:
Linux(debug)# ./helloworld -l 0-3 -n 4
EAL: Detected 8 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: Cannot get a virtual area: Cannot allocate memory
EAL: Cannot reserve memory
EAL: Cannot allocate VA space for memseg list, retrying with different page size
EAL: Cannot allocate VA space on socket 0
EAL: FATAL: Cannot init memory
EAL: Cannot init memory
PANIC in main():
Cannot init EAL
5: [./helloworld() [0x81b9a12]]
4: [/lib/libc.so.6(__libc_start_main+0xdd) [0x4d677d0d]]
3: [./helloworld() [0x80c30e5]]
2: [./helloworld(__rte_panic+0x2f) [0x80b1ea9]]
1: [./helloworld(rte_dump_stack+0x17) [0x8384887]]
Aborted
Below are my configs
1. Compiled app for 32 bit.
2. GCC version is 4.9
Created hugepages as below,
echo 1024 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
sudo sysctl -w vm.nr_hugepages=1024
mkdir -p /mnt/huge_2mb
sudo mount -t hugetlbfs nodev /mnt/huge_2mb -o pagesize=2MB
Linux(debug)# cat /proc/meminfo | grep Huge
HugePages_Total: 1024
HugePages_Free: 1024
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Thanks and Regards
Shravan S
reply other threads:[~2020-04-22 10:18 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=DM6PR11MB373739893A58660342BA03CFD0D20@DM6PR11MB3737.namprd11.prod.outlook.com \
--to=shrraj@cisco.com \
--cc=dev@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).