From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 88952133F for ; Wed, 9 Nov 2016 15:50:10 +0100 (CET) Received: from lfbn-1-5996-232.w90-110.abo.wanadoo.fr ([90.110.195.232] helo=[192.168.1.13]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1c4UFr-00073l-9Q; Wed, 09 Nov 2016 15:53:37 +0100 To: Keren Hochman , Christian Ehrhardt References: Cc: dev From: Olivier Matz Message-ID: Date: Wed, 9 Nov 2016 15:50:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] disable hugepages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2016 14:50:10 -0000 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@canonical.com> wrote: > >> >> On Wed, Nov 9, 2016 at 1:55 PM, Keren Hochman < >> keren.hochman@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. Regards, Olivier