[dpdk-dev] disable hugepages

Olivier Matz olivier.matz at 6wind.com
Wed Nov 9 15:50:02 CET 2016

Hi Keren,

On 11/09/2016 03:40 PM, Keren Hochman wrote:
> On Wed, Nov 9, 2016 at 3:40 PM, Christian Ehrhardt <
> christian.ehrhardt at canonical.com> wrote:
>> On Wed, Nov 9, 2016 at 1:55 PM, Keren Hochman <
>> keren.hochman at lightcyber.com> wrote:
>>> how can I create mempool without hugepages?My application is running on a
>>> pcap file so no huge pages is needed ?
>> Not sure if that is what you really want (Debug use only), but in general
>> no-huge is available as EAL arg
>> From http://pktgen.readthedocs.io/en/latest/usage_eal.html :
>> EAL options for DEBUG use only:
>>   --no-huge           : Use malloc instead of hugetlbfs
> I need this option only for testing. How can I use rte_mempool_create if I
> use --no-huge?

When using --no-huge, the dpdk libraries (including mempool) allocate
its memory in standard memory. Just keep in mind the physical addresses
will be wrong, so this memory cannot be given to hw devices.


More information about the dev mailing list