4 Replies Latest reply on Oct 24, 2013 5:25 PM by Larry

    DPDK on RedHat how to allocate hugepages on a NUMA node in grub.conf

    marcfreynet Green Belt

      I am running the DPDK on a Red Hat2.6.32 on a 2 NUMA nodes board.

      The DPDK application is running on the NUMA node 1

      I can successfully allocate 2M huge pages on the NUMA node 1 at run time with the command:

      echo 1024 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages

       

      I would like to allocate 2G hugepages at the kernel init time.

      I can not see in the kernel option in /boot/grub/grub.conf how to explicitely allocate the hugepages on the NUMA node 1

      It seems that with the parameters "default_hugepagesz=1G hugepagesz=1G hugepages=4" the Huge page allocation takes place uniformly across NUMA nodes.

       

      I could allocate 2G on both NUMA nodes but it is not very efficient memory wise.

      Is there a way to allocate the 1G hugepages at kernel intialisation time on a specific NUMA node ?