Closed vsag96 closed 3 years ago
Editing this comment.
The previous edit, I made some wrong remarks. The problem is rte_mempool_populate_default returns a negative value even though there is enough memory. I am not sure why this happens. I will post it here once I figure that out.
I think updating buffer size from 262144 to smaller value (e.g. 65536) at core/opts.cc:127 would work.
For someone who wants to enable jumbo frame support with PMD port and VPort, I think the following steps would do:
SNBUF_DATA
at core/snbuf_layout.h:59 to some value multiple of 64. (e.g. 9216)netdev->max_mtu=9000;
netdev->mtu=9000;
nic.set_port_config(mtu=9000)
or add following to core/drivers/pmd.cc:323
rte_eth_dev_set_mtu(ret_port_id, 9000);
You can also allocate more than 1024 Huge pages core/opts.cc I missed this comment for some reason. Does increasing the # huge pages hinder performance?
I set the mtu in bess configuration script as follows. If I increase the mtu, I get an error saying mtu between 68 and 2048 are the only supported values.
However when I edit the core/snbuf_layout.h to change SNBUF_DATA 9216. Bess compiles but I get the following error when I try to start the daemon. I have 30 1G huge pages allocated and 26 of the 30 are free. ulimit -l says unlimited. What changes should I make for bess to support Jumbo frames? Thanks for your help.