<?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 Re: Need help on DPDK uses Linux hugepages in Embedded Intel® Core™ Processors</title>
    <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265216#M2999</link>
    <description>&lt;P&gt;Can you use relatively new kernel in your VMs?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Oct 2014 15:25:15 GMT</pubDate>
    <dc:creator>DannyYigan_Z_Intel</dc:creator>
    <dc:date>2014-10-23T15:25:15Z</dc:date>
    <item>
      <title>Need help on DPDK uses Linux hugepages</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265209#M2992</link>
      <description>&lt;P&gt;rte_mempool_create needs continues memory and we use 2MB hugepage. We want to get 1GB continues memory or more, currently want 1GB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried reserve 1024 pages of 2 MB and dpdk code for 32-bit (currently we are) limited to using 1 GB so only takes the first 512 pages:&lt;/P&gt;&lt;P&gt;# ifndef RTE_ARCH_X86_64&lt;/P&gt;&lt;P&gt;  /* for 32-bit systems, limit number of hugepages to 1GB per page size */&lt;/P&gt;&lt;P&gt;  hpi-&amp;gt;num_pages[0] = RTE_MIN(hpi-&amp;gt;num_pages[0],&lt;/P&gt;&lt;P&gt;  RTE_PGSIZE_1G / hpi-&amp;gt;hugepage_sz);&lt;/P&gt;&lt;P&gt;# endif&lt;/P&gt;&lt;P&gt;And we found this 512 pages will be continues so we get 1 GB continues memory. But the other 512 pages will be waste since our application will not use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we try change to reserve only 512 pages, but this time we cannot get the 1GB continues. Actually even we reserve 850 pages or 750 pages some number smaller than 1024 pages, we cannot got 1 GB continues memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one know why? And any way to help it? We only want 1GB continues memory but we do not want to over reserve pages.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2014 00:02:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265209#M2992</guid>
      <dc:creator>BHu7</dc:creator>
      <dc:date>2014-10-17T00:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on DPDK uses Linux hugepages</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265210#M2993</link>
      <description>&lt;P&gt;Hi HuBugui,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to the Intel® Embedded Community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are working on getting an answer to your question. Have a great day and we'll be talking with you soon!  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2014 07:25:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265210#M2993</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2014-10-17T07:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on DPDK uses Linux hugepages</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265211#M2994</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thank you for using DPDK.&lt;P&gt;&lt;/P&gt;&lt;P&gt;A General observation regarding huge page -&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;The allocation of hugepages should be done at boot time or as soon as possible after system boot to prevent memory from being fragmented in physical memory. To reserve hugepages at boot time, a parameter is passed to the Linux* kernel on the kernel command line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you may be aware of, there are 2 Huge page sizes Intel Processor supports  - 1) 2 Meg and 2) 1 Gig &lt;/P&gt;&lt;P&gt;Since you want 1 Gig continuous memory, can we please recommend you to use 1 Gig Huge page size (instead of 2 Meg)&lt;/P&gt;&lt;P&gt;Specify in the GRUB for 1 Page of 1 Gig Huge page .&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;For 1G pages, the size must be specified explicitly and can also be optionally set as the default hugepage size for the system. For example, to reserve 1G of hugepage memory in the form of one 1G page, the following options should be passed to the kernel: &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;default_hugepagesz=1G hugepagesz=1G hugepages=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly refer to section 2.3 and subsections there of in &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, let us know the following information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) What is your kernel version?&lt;/P&gt;&lt;P&gt;2) How many sockets your machne has?&lt;/P&gt;&lt;P&gt;3) Plese let us know the output of cat /proc/cpuinfo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2014 17:28:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265211#M2994</guid>
      <dc:creator>Muthurajan_J_Intel</dc:creator>
      <dc:date>2014-10-17T17:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on DPDK uses Linux hugepages</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265212#M2995</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are running virtual machine on KVM. Kernel version is 2.6.32-220.el6.adx.x86_64.&lt;/P&gt;&lt;P&gt;It seems KVM guest unable to get pdpe1gb flag from host CPU, so it does not support 1GB hugepage size. :-(&lt;/P&gt;&lt;P&gt;I found someone also saw this issue: &lt;A href="https://bugs.launchpad.net/qemu/+bug/1248959"&gt;https://bugs.launchpad.net/qemu/+bug/1248959&lt;/A&gt; Bug # 1248959 "pdpe1gb flag is missing in guest running on Intel ..." : Bugs : QEMU ()&lt;/P&gt;&lt;P&gt;Even in KVM I set "Copy host CPU configuration" and saw pdpe1gb flag is showed as "require". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The guest is 1 socket for 2 cores. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@VirtualADX ~]#  cat /proc/cpuinfo &lt;/P&gt;&lt;P&gt;processor       : 0&lt;/P&gt;&lt;P&gt;vendor_id       : GenuineIntel&lt;/P&gt;&lt;P&gt;cpu family      : 6&lt;/P&gt;&lt;P&gt;model           : 42&lt;/P&gt;&lt;P&gt;model name      : Intel Xeon E312xx (Sandy Bridge)&lt;/P&gt;&lt;P&gt;stepping        : 1&lt;/P&gt;&lt;P&gt;cpu MHz         : 2594.210&lt;/P&gt;&lt;P&gt;cache size      : 4096 KB&lt;/P&gt;&lt;P&gt;fpu             : yes&lt;/P&gt;&lt;P&gt;fpu_exception   : yes&lt;/P&gt;&lt;P&gt;cpuid level     : 13&lt;/P&gt;&lt;P&gt;wp              : yes&lt;/P&gt;&lt;P&gt;flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep&lt;/P&gt;&lt;P&gt;bogomips        : 5188.42&lt;/P&gt;&lt;P&gt;clflush size    : 64&lt;/P&gt;&lt;P&gt;cache_alignment : 64&lt;/P&gt;&lt;P&gt;address sizes   : 46 bits physical, 48 bits virtual&lt;/P&gt;&lt;P&gt;power management:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;processor       : 1&lt;/P&gt;&lt;P&gt;vendor_id       : GenuineIntel&lt;/P&gt;&lt;P&gt;cpu family      : 6&lt;/P&gt;&lt;P&gt;model           : 42&lt;/P&gt;&lt;P&gt;model name      : Intel Xeon E312xx (Sandy Bridge)&lt;/P&gt;&lt;P&gt;stepping        : 1&lt;/P&gt;&lt;P&gt;cpu MHz         : 2594.210&lt;/P&gt;&lt;P&gt;cache size      : 4096 KB&lt;/P&gt;&lt;P&gt;fpu             : yes&lt;/P&gt;&lt;P&gt;fpu_exception   : yes&lt;/P&gt;&lt;P&gt;cpuid level     : 13&lt;/P&gt;&lt;P&gt;wp              : yes&lt;/P&gt;&lt;P&gt;flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep&lt;/P&gt;&lt;P&gt;bogomips        : 5188.42&lt;/P&gt;&lt;P&gt;clflush size    : 64&lt;/P&gt;&lt;P&gt;cache_alignment : 64&lt;/P&gt;&lt;P&gt;address sizes   : 46 bits physical, 48 bits virtual&lt;/P&gt;&lt;P&gt;power management:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2014 18:18:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265212#M2995</guid>
      <dc:creator>BHu7</dc:creator>
      <dc:date>2014-10-17T18:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on DPDK uses Linux hugepages</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265213#M2996</link>
      <description>&lt;P&gt;The host is 12 core machine with same kernel. But it may change.&lt;/P&gt;&lt;P&gt;[root@centos-139277 ~]#  cat /proc/cpuinfo &lt;/P&gt;&lt;P&gt;processor       : 0&lt;/P&gt;&lt;P&gt;vendor_id       : GenuineIntel&lt;/P&gt;&lt;P&gt;cpu family      : 6&lt;/P&gt;&lt;P&gt;model           : 62&lt;/P&gt;&lt;P&gt;model name      : Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz&lt;/P&gt;&lt;P&gt;stepping        : 4&lt;/P&gt;&lt;P&gt;cpu MHz         : 1200.000&lt;/P&gt;&lt;P&gt;cache size      : 15360 KB&lt;/P&gt;&lt;P&gt;physical id     : 0&lt;/P&gt;&lt;P&gt;siblings        : 12&lt;/P&gt;&lt;P&gt;core id         : 0&lt;/P&gt;&lt;P&gt;cpu cores       : 6&lt;/P&gt;&lt;P&gt;apicid          : 0&lt;/P&gt;&lt;P&gt;initial apicid  : 0&lt;/P&gt;&lt;P&gt;fpu             : yes&lt;/P&gt;&lt;P&gt;fpu_exception   : yes&lt;/P&gt;&lt;P&gt;cpuid level     : 13&lt;/P&gt;&lt;P&gt;wp              : yes&lt;/P&gt;&lt;P&gt;flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms&lt;/P&gt;&lt;P&gt;bogomips        : 5188.42&lt;/P&gt;&lt;P&gt;clflush size    : 64&lt;/P&gt;&lt;P&gt;cache_alignment : 64&lt;/P&gt;&lt;P&gt;address sizes   : 46 bits physical, 48 bits virtual&lt;/P&gt;&lt;P&gt;power management:&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2014 18:21:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265213#M2996</guid>
      <dc:creator>BHu7</dc:creator>
      <dc:date>2014-10-17T18:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on DPDK uses Linux hugepages</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265214#M2997</link>
      <description>&lt;P&gt;Hi!  Would you post your qemu/kvm command-lines to start VMs, and make sure you used the options below to assign host huge pages to guest as guest huge pages.  &lt;B&gt;-memm-paht /mnt/huge -mem-prealloc ?&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2014 17:01:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265214#M2997</guid>
      <dc:creator>Natalie_Z_Intel</dc:creator>
      <dc:date>2014-10-20T17:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on DPDK uses Linux hugepages</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265215#M2998</link>
      <description>&lt;P&gt;I tried using virt-manager and also command line qemu-kvm with mem-path and mem-prealloc, it seems not help:&lt;/P&gt;&lt;P&gt;On host:&lt;/P&gt;&lt;P&gt;HugePages_Total:       6&lt;/P&gt;&lt;P&gt;HugePages_Free:        3&lt;/P&gt;&lt;P&gt;HugePages_Rsvd:        1&lt;/P&gt;&lt;P&gt;HugePages_Surp:        0&lt;/P&gt;&lt;P&gt;Hugepagesize:    1048576 kB&lt;/P&gt;&lt;P&gt;DirectMap4k:        6144 kB&lt;/P&gt;&lt;P&gt;DirectMap2M:     2058240 kB&lt;/P&gt;&lt;P&gt;DirectMap1G:    14680064 kB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start guest:&lt;/P&gt;&lt;P&gt;/usr/libexec/qemu-kvm -cpu host -drive file=/root/img/centtos.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1  -m 4096 -smp 2,cores=1,threads=1,sockets=2 --enable-kvm -name "os2" -nographic -vnc :3 -monitor unix:/tmp/vm1monitor,server,nowait -net none -no-reboot -mem-path /mnt/huge_1GB -mem-prealloc -netdev type=tap,id=net1,script=no,downscript=no,ifname=ovsvhost80,vhost=on -device  virtio-net-pci,netdev=net1,mac=00:00:00:00:00:01,csum=off,gso=off,guest_tso4=off,guest_tso6=off,guest_ecn=off  -netdev type=tap,id=net2,script=no,downscript=no,ifname=ovsvhost81,vhost=on -device virtio-net-pci,netdev=net2,mac=00:00:00:00:00:02,csum=off,gso=off,guest_tso4=off,guest_tso6=off,guest_ecn=off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The guest using 2M hugepage with 512 pages, still only get 313 pages continues memory.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 00:50:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265215#M2998</guid>
      <dc:creator>BHu7</dc:creator>
      <dc:date>2014-10-21T00:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on DPDK uses Linux hugepages</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265216#M2999</link>
      <description>&lt;P&gt;Can you use relatively new kernel in your VMs?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2014 15:25:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265216#M2999</guid>
      <dc:creator>DannyYigan_Z_Intel</dc:creator>
      <dc:date>2014-10-23T15:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on DPDK uses Linux hugepages</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265217#M3000</link>
      <description>&lt;P&gt;One more suggestion is to post your DPDK relevant questions in &lt;A href="http://dpdk.org"&gt;dpdk.org&lt;/A&gt; mainling list which is the official DPDK open source community and there are plenty of DPDK experts and users who might be able to provide suggestions to your issue.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 15:42:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Core-Processors/Need-help-on-DPDK-uses-Linux-hugepages/m-p/265217#M3000</guid>
      <dc:creator>DannyYigan_Z_Intel</dc:creator>
      <dc:date>2014-10-24T15:42:29Z</dc:date>
    </item>
  </channel>
</rss>

