<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DPDK: Set hugepage affinity for specific NUMA node? in Embedded Intel® Core™ Processors</title>
    <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265872#M3039</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"default_hugepagesz=1G hugepagesz=1G hugepages=8"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is similar to that posed in the following link, however I do not see in the response how to change nr_hugepages.  &lt;/P&gt;&lt;P&gt;/message/8787?_ga=1.189585131.1372410714.1393984191# 8787 &lt;A href="https://embedded.communities.intel.com/message/8787?_ga=1.189585131.1372410714.1393984191#"&gt;https://embedded.communities.intel.com/message/8787?_ga=1.189585131.1372410714.1393984191#&lt;/A&gt; 8787&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any attempts at modifying /sys//devices/system/node/node[0|1]/hugepages/hugepages-1048576kB/nr_hugepages has been unsuccessful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@box]#  echo 0 &amp;gt; /sys/devices/system/node/node1/hugepages/hugepages-1048576kB/nr_hugepages&lt;/P&gt;&lt;P&gt;bash: echo: write error: Invalid argument&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight as to whether this is possible would be greatly appreciated,&lt;/P&gt;&lt;P&gt;-Marc&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2014 00:22:26 GMT</pubDate>
    <dc:creator>MCoop2</dc:creator>
    <dc:date>2014-11-20T00:22:26Z</dc:date>
    <item>
      <title>DPDK: Set hugepage affinity for specific NUMA node?</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265872#M3039</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"default_hugepagesz=1G hugepagesz=1G hugepages=8"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is similar to that posed in the following link, however I do not see in the response how to change nr_hugepages.  &lt;/P&gt;&lt;P&gt;/message/8787?_ga=1.189585131.1372410714.1393984191# 8787 &lt;A href="https://embedded.communities.intel.com/message/8787?_ga=1.189585131.1372410714.1393984191#"&gt;https://embedded.communities.intel.com/message/8787?_ga=1.189585131.1372410714.1393984191#&lt;/A&gt; 8787&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any attempts at modifying /sys//devices/system/node/node[0|1]/hugepages/hugepages-1048576kB/nr_hugepages has been unsuccessful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@box]#  echo 0 &amp;gt; /sys/devices/system/node/node1/hugepages/hugepages-1048576kB/nr_hugepages&lt;/P&gt;&lt;P&gt;bash: echo: write error: Invalid argument&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight as to whether this is possible would be greatly appreciated,&lt;/P&gt;&lt;P&gt;-Marc&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2014 00:22:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265872#M3039</guid>
      <dc:creator>MCoop2</dc:creator>
      <dc:date>2014-11-20T00:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: DPDK: Set hugepage affinity for specific NUMA node?</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265873#M3040</link>
      <description>&lt;P&gt;Hello Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to the Embedded Community. We are going to work in this request and will get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2014 00:24:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265873#M3040</guid>
      <dc:creator>Gabriel_T_Intel</dc:creator>
      <dc:date>2014-11-20T00:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: DPDK: Set hugepage affinity for specific NUMA node?</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265874#M3041</link>
      <description>&lt;P&gt;Chapter 6 of &lt;A href="http://dpdk.org/doc/intel/dpdk-start-linux-1.7.0.pdf"&gt;http://dpdk.org/doc/intel/dpdk-start-linux-1.7.0.pdf&lt;/A&gt; &lt;A href="http://dpdk.org/doc/intel/dpdk-start-linux-1.7.0.pdf"&gt;http://dpdk.org/doc/intel/dpdk-start-linux-1.7.0.pdf&lt;/A&gt; has Quick Start Setup Script&lt;/P&gt;&lt;P&gt;Can you use 2 Meg instead of 1 G?&lt;/P&gt;&lt;P&gt;Because you will see at the end of 2.3.2.1 note saying with 1 G pages, it is not possible to reserve the hugepage memory after the system has booted.&lt;/P&gt;&lt;P&gt;And Note in section 2.3.2.1 indicates about in general equal reservation - can you see Documentation/Kernel-parameters.txt file in your Linux source tree for further details of these - "In the case of a dual-socket NUMA system, the number of hugepages reserved at boot time is generally divided equally between the two sockets (on the assumption that sufficient memory is present on both sockets).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in case you can use 2 Meg page size, in that case, the script can be useful to meet your requirement.&lt;/P&gt;&lt;P&gt;In the script, when you choose the option for "Setup hugepage mappings for NUMA systems" , it will ask you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input the number of 2 MB pages for each node &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will be able to reserve separately for node 0 and separately for node 1&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2014 23:31:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265874#M3041</guid>
      <dc:creator>Muthurajan_J_Intel</dc:creator>
      <dc:date>2014-11-20T23:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: DPDK: Set hugepage affinity for specific NUMA node?</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265875#M3042</link>
      <description>&lt;P&gt;I'm familiar with that section.  Our application runs on a 64-bit platform and as such we have configured for 1G hugepages as is recommended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Marc&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 02:02:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265875#M3042</guid>
      <dc:creator>MCoop2</dc:creator>
      <dc:date>2014-11-21T02:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: DPDK: Set hugepage affinity for specific NUMA node?</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265876#M3043</link>
      <description>&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;Thanks.  With 64 bit system, one can use either 2 Meg or 1 Gig.&lt;/P&gt;&lt;P&gt;In case your performance requirement if it can be met with 2 Meg pages, then with 2 Meg pages you can achieve what you are looking for.&lt;/P&gt;&lt;P&gt;Because with 1 Gig, Because you will see at the end of 2.3.2.1 note saying with 1 G pages, it is not possible to reserve the hugepage memory after the system has booted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 18:43:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/DPDK-Set-hugepage-affinity-for-specific-NUMA-node/m-p/265876#M3043</guid>
      <dc:creator>Muthurajan_J_Intel</dc:creator>
      <dc:date>2014-11-21T18:43:04Z</dc:date>
    </item>
  </channel>
</rss>

