dpdk程序无法启动, 错误如下:
EAL: Requesting pages of size 2MB from socket
EAL: Requesting pages of size 2MB from socket
EAL: Can only reserve pages from requested
Current CONFIG_RTE_MAX_MEMSEG= is not enough
Please either increase it or request less amount of memory.
PANIC in rte_eal_init():
Cannot init memory
: [./KingKong() [0x42fd09]]
: [/lib64/libc.so.(__libc_start_main+0xfd) [0x38dca1ed5d]]
: [./KingKong(main+0x26) [0x42ff36]]
: [./KingKong(rte_eal_init+0x1025) [0x4a9ef5]]
: [./KingKong(__rte_panic+0xc0) [0x4297c0]]
: [./KingKong(rte_dump_stack+0x23) [0x4aecf3]]
Aborted
因为内存的碎片化比较严重,或内存占用比较多. 重启后可以正常启动.
http://dpdk.org/ml/archives/dev/2015-March/015079.html