在 DPDK 中构建 l2fwd 时出错
Error while building l2fwd in DPDK
我正在尝试在 DPDK 中构建模块 l2fwd,但我不断得到这个 error。我正在使用 Ubuntu 16.04 OS 的 Oracle Virtual Box。
l2fwd 示例应用程序失败并显示以下消息:
WARNING: Master core has no memory on local socket!
error allocating rte services array
看来您错过了设置大页面的步骤。基本上,您需要使用以下命令为应用程序分配大页面:
# echo 512 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
请在 DPDK Getting Started Guide 中找到更多详细信息。
我正在尝试在 DPDK 中构建模块 l2fwd,但我不断得到这个 error。我正在使用 Ubuntu 16.04 OS 的 Oracle Virtual Box。
l2fwd 示例应用程序失败并显示以下消息:
WARNING: Master core has no memory on local socket!
error allocating rte services array
看来您错过了设置大页面的步骤。基本上,您需要使用以下命令为应用程序分配大页面:
# echo 512 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
请在 DPDK Getting Started Guide 中找到更多详细信息。