DPDK testpmd - Cannot allocate memory error

The test application should be build manually with make test... command. What you really want is the testpmd application to work. There are two issues:

  1. EAL: No probed ethernet devices log means there are no NICs available for testpmd. You need to bind your NIC to igb_uio in order to use in with DPDK application.

  2. Cause: Creation of mbuf pool for socket 0 failed: Cannot allocate memory log means there are no enough huge pages to allocate mempool. Indeed:

    HugePages_Free: 128 Hugepagesize: 2048 kB

There are 128 pages 2M each, which makes 256M of available memory. While testpmd tries to allocate create a new mbuf pool : n=171456, size=2176 which makes 171456 * 2176 = 373M, so it fails.

The solution would be to either allocate more huge pages or to run testpmd with --total-num-mbufs command line option.

https://stackoverflow.com/questions/48106597/dpdk-test-application-cannot-found-on-redhat

猜你喜欢

转载自www.cnblogs.com/quinn-yann/p/9727346.html
今日推荐