How do you allocate the hugepages needed by DPDK after the system is already up and running?

How do you allocate the hugepages needed by DPDK after the system is already up and running?

If the Linux system is already running, you can dynamically allocate (or deallocate) hugepages in /sys/kernel/mm/hugepages
For example, the command to allocate 24  2MB pages would be:
echo 24 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages

To see the current hugepage allocation, query /proc/meminfo
% grep Huge /proc/meminfo

To set hugepages from grub, edit /etc/grub.conf, adding "hugepages=nnn" to the end of the kernel line for the default kernel and reboot.

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.