[dpdk-users] Failed to remap 2 MB pages

Wiles, Keith keith.wiles at intel.com
Wed Aug 2 15:31:57 CEST 2017

> On Aug 2, 2017, at 2:01 AM, Kumaraparameshwaran Rathnavel <krath at cloudsimple.com> wrote:
> Hi Kyle,
> I have rebooted it couple of times. Did not have any impact, I doubt if that is the case because in the code before the mmap call there is check for the memory.
> Please correct me if I am wrong.

Do you setup your huge pages via the sysctl.conf file or by hand after you startup the system?

One other item is I had something similar in my dual socket machine. I could only get about 12K total 2megs pages in 64G machine 32G per socket. I increase the memory per socket and that allowed me to reach 16K pages total or 8K pages per socket. I did not understand why it happened I just assumed it was how Linux used memory. Sorry this most likely does not help much.

> Thanking You,
> Param.
>> On 02-Aug-2017, at 11:34 AM, Kyle Larose <klarose at sandvine.com> wrote:
>> Could it have to do with memory fragmentation? What if you reboot? What if you configure the huge pages on the grub command line so they are allocated at boot?
>> -----Original Message-----
>> From: users [mailto:users-bounces at dpdk.org] On Behalf Of Kumaraparameshwaran Rathnavel
>> Sent: Tuesday, August 01, 2017 7:41 PM
>> To: users at dpdk.org; Wiles, Keith
>> Subject: [dpdk-users] Failed to remap 2 MB pages
>> Hi All,
>> I am getting the error Failed to remap 2 MB pages when I give 32GB of memory to DPDK. I have a 256GB system and it was working for 16GB and I had 8192 number of Huge pages previously. Now for 32GB I have increased it to 16384 entries and I am facing this error. I guess this is not because of the unavailability of physical memory. 
>> Please correct me if I am wrong,
>> Thanking You,
>> Param.


More information about the users mailing list