Does anyone use valgrind work on a dpdk code with huge page?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Does anyone use valgrind work on a dpdk code with huge page?

Datong Li
When I use valgrind in my program, which use dpdk (a intel library) and open a hugepage to allocate memory, it arises a error when I run it like below:

PANIC in rte_eal_init():
Cannot init memory
7: [./output/bdsec_ids() [0x41ebe1]]
6: [/lib64/libc.so.6(__libc_start_main+0xfd) [0x318ae1ecdd]]
5: [./output/bdsec_ids(main_run+0x182) [0x41ee22]]
4: [./output/bdsec_ids(pal_init+0x1e6) [0x428626]]
3: [./output/bdsec_ids(rte_eal_init+0x1410) [0x493bc0]]
2: [./output/bdsec_ids(__rte_panic+0xc4) [0x41eb24]]
1: [./output/bdsec_ids(rte_dump_stack+0x1e) [0x498aee]] 

What I found in system 's log :

Detected 12 lcore(s)
EAL: Setting up memory...
EAL: map_all_hugepages(): mmap failed: Invalid argument
EAL: Failed to mmap 1024 MB hugepages

So I guess this error maybe cause by hugepage when use valgrind. Does anybody know something about this?

With Best wishes,
Datong Li

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Valgrind-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
Reply | Threaded
Open this post in threaded view
|

Re: Does anyone use valgrind work on a dpdk code with huge page?

Philippe Waroquiers
On Wed, 2016-12-07 at 15:17 +0800, Datong Li wrote:


> So I guess this error maybe cause by hugepage when use valgrind.
>  Does anybody know something about this?

Which version of valgrind are you using ?
Which platform (OS, distro, ...) ?

Support of huge page is supposed to work since valgrind 3.11.
See a.o. bugs 333051, 339163, 338995, 348269, which were all fixed.

Thanks

Philippe



------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Valgrind-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-users