Re: [docker] run dpdk app in docker container failed

305 views
Skip to first unread message

Jeremy Eder

unread,
Jun 2, 2015, 10:13:27 AM6/2/15
to docker-user, docke...@googlegroups.com
Here's one approach:




From: "John Willis" <botcha...@gmail.com>
To: zhun...@gmail.com
Cc: "docker-user" <docke...@googlegroups.com>
Sent: Wednesday, May 13, 2015 9:54:29 AM
Subject: Re: [docker] run dpdk app in docker container failed

To restate the obvious again.. it's some kind of issue with hugepages in the container vs the host.   

I would start by comparing things between the two... 

cat /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages

ulimit -H -l


grep Huge /proc/meminfo

I also did a quick search on hugepages and containers and it looked like there were a few issues out there with lxc-create/lxc-start and DPDK specially with hugepages. 

John






On Wed, May 13, 2015 at 8:48 AM, <zhun...@gmail.com> wrote:
I can run the application on host, but can not run on container in the host.

在 2015年5月9日星期六 UTC+8下午5:18:25,botchagalupe写道:
Not even going to venture that I am a DPDK expert here .. but... my first guess would be a memory impedance between the host and the container. This document may help..  


Low hanging fruit to make sure all your environment variables are set properly.  If all else fails I might be able to point you to some people over at Intel that could help...

John Willis
@botchagalupe

On Fri, May 8, 2015 at 1:52 AM, <zhun...@gmail.com> wrote:
I can run dpdk example helloword in host, but can not run it in docker container.
The error is no free hugepage.

Does anyone knows how to fix it?

root@50997b04c192:/dpdk/examples/helloworld/build# ./helloworld -c 3 -n 2
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 2 on socket 0
EAL: Detected lcore 3 as core 3 on socket 0
EAL: Detected lcore 4 as core 4 on socket 0
EAL: Detected lcore 5 as core 5 on socket 0
EAL: Detected lcore 6 as core 0 on socket 1
EAL: Detected lcore 7 as core 1 on socket 1
EAL: Detected lcore 8 as core 2 on socket 1
EAL: Detected lcore 9 as core 3 on socket 1
EAL: Detected lcore 10 as core 4 on socket 1
EAL: Detected lcore 11 as core 5 on socket 1
EAL: Detected lcore 12 as core 0 on socket 0
EAL: Detected lcore 13 as core 1 on socket 0
EAL: Detected lcore 14 as core 2 on socket 0
EAL: Detected lcore 15 as core 3 on socket 0
EAL: Detected lcore 16 as core 4 on socket 0
EAL: Detected lcore 17 as core 5 on socket 0
EAL: Detected lcore 18 as core 0 on socket 1
EAL: Detected lcore 19 as core 1 on socket 1
EAL: Detected lcore 20 as core 2 on socket 1
EAL: Detected lcore 21 as core 3 on socket 1
EAL: Detected lcore 22 as core 4 on socket 1
EAL: Detected lcore 23 as core 5 on socket 1
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 24 lcore(s)
EAL: No free hugepages reported in hugepages-2048kB
PANIC in rte_eal_init():
Cannot get hugepage information
6: [./helloworld() [0x41f8c3]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f1ecbcb2ec5]]
4: [./helloworld(main+0x6) [0x41ef36]]
3: [./helloworld(rte_eal_init+0xd26) [0x46f256]]
2: [./helloworld(__rte_panic+0xc9) [0x41ed74]]
1: [./helloworld(rte_dump_stack+0x18) [0x477288]]
Aborted
root@50997b04c192:/dpdk/examples/helloworld/build# 



Reply all
Reply to author
Forward
0 new messages