FastNetMon

Wednesday, 22 April 2015

DPDK: LPM memory allocation failed

Имеется ошибка от при запуске l3fwd:
PMD: eth_ixgbe_dev_init(): port 3 vendorID=0x8086 deviceID=0x10fb
Initializing port 0 ... Creating queues: nb_rxq=3 nb_txq=2...  Address:90:E2:BA:4A:D8:DC, Allocated mbuf pool on socket 0
LPM: Adding route 0x01010100 / 24 (0)
LPM: Adding route 0x02010100 / 24 (1)
LPM: Adding route 0x03010100 / 24 (2)
LPM: Adding route 0x04010100 / 24 (3)
LPM: LPM memory allocation failed
EAL: Error - exiting with code: 1
  Cause: Unable to create the l3fwd LPM table on socket 0

Для фикса заменяем:
echo 64 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
На:
echo 512 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
И запускаем приложение заново.

Такое происходит потому что LPM хочет много памяти (1200 MB), а мы выделяем 128MB! :)

No comments :

Post a Comment

Note: only a member of this blog may post a comment.