[development][dpdk] dpdk与CONFIG_RTE_MAX_MEMSEG有关的错误

 

dpdk程序无法启动, 错误如下:

EAL: Requesting 2106 pages of size 2MB from socket 0
EAL: Requesting 1990 pages of size 2MB from socket 1
EAL: Can only reserve 2701 pages from 4096 requested
Current CONFIG_RTE_MAX_MEMSEG=256 is not enough
Please either increase it or request less amount of memory.
PANIC in rte_eal_init():
Cannot init memory
6: [./KingKong() [0x42fd09]]
5: [/lib64/libc.so.6(__libc_start_main+0xfd) [0x38dca1ed5d]]
4: [./KingKong(main+0x26) [0x42ff36]]
3: [./KingKong(rte_eal_init+0x1025) [0x4a9ef5]]
2: [./KingKong(__rte_panic+0xc0) [0x4297c0]]
1: [./KingKong(rte_dump_stack+0x23) [0x4aecf3]]
Aborted

 

因为内存的碎片化比较严重,或内存占用比较多. 重启后可以正常启动.

http://dpdk.org/ml/archives/dev/2015-March/015079.html

 

posted on 2017-10-12 15:35  toong  阅读(696)  评论(0编辑  收藏  举报