4 Replies Latest reply on Nov 21, 2014 9:43 AM by muthurajanjayakumar

    DPDK: Set hugepage affinity for specific NUMA node?

    Community Member



      I am looking for clarification as to whether it is possible to assign a specific number of 1G hugepages to a dedicated NUMA node.  Our hardware platform has 2 NUMA nodes however our DPDK application runs only on the cores of a single NUMA node.  We are finding we need to double our hugepage allocation given the kernel is uniformly distributing the hugepages across the 2 NUMA nodes.  We have modified the kernel boot line in grub.conf as follows:


      "default_hugepagesz=1G hugepagesz=1G hugepages=8"


      My question is similar to that posed in the following link, however I do not see in the response how to change nr_hugepages. 



      Any attempts at modifying /sys//devices/system/node/node[0|1]/hugepages/hugepages-1048576kB/nr_hugepages has been unsuccessful.


      [root@box]# echo 0 > /sys/devices/system/node/node1/hugepages/hugepages-1048576kB/nr_hugepages

      bash: echo: write error: Invalid argument


      Any insight as to whether this is possible would be greatly appreciated,