From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 0D105558D for ; Thu, 10 Nov 2016 14:11:09 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 10 Nov 2016 05:11:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,619,1473145200"; d="scan'208";a="899952226" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga003.jf.intel.com with ESMTP; 10 Nov 2016 05:11:00 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 10 Nov 2016 05:10:31 -0800 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.90]) by FMSMSX112.amr.corp.intel.com ([169.254.5.204]) with mapi id 14.03.0248.002; Thu, 10 Nov 2016 05:10:31 -0800 From: "Wiles, Keith" To: Keren Hochman CC: Olivier Matz , Christian Ehrhardt , dev Thread-Topic: [dpdk-dev] disable hugepages Thread-Index: AQHSOoigNhI7DUQSDkS+G/eLuwOAs6DRLtWAgAAQwACAAAKPAIABa94AgAAKqAA= Date: Thu, 10 Nov 2016 13:10:30 +0000 Message-ID: <6BBBABF1-45E1-4260-BE26-9C556C47B825@intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.229.89] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Thu, 10 Nov 2016 13:11:10 -0000 > On Nov 10, 2016, at 6:32 AM, Keren Hochman = wrote: >=20 > I tried using the following dpdk options: > --no-huge --vdev eth_pcap0 ,rx_pcap=3D/t1,tx_pcap=3D/t2 > *It's worked but the number of elements is limited, although the machine > has enough free memory. *rte_mempool_create is failed when I'm trying to > allocate more memory. Is there any limitation on the memory beside the > machine? DPDK will just use the standard linux memory allocator, so no limitation in= DPDK. Now you could be hitting the limit as a user, need to check your sys= tem to make sure you can allocate that much memory to a user. Try using the= command ulimit and see what it reports. I do not remember exactly how to change limits except with ulimit command. = I may have modified /etc/security/limits.conf file. HTH >=20 > *Thanks, Keren * >=20 > On Wed, Nov 9, 2016 at 4:50 PM, Olivier Matz wro= te: >=20 >> Hi Keren, >>=20 >> 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: >>>=20 >>>>=20 >>>> On Wed, Nov 9, 2016 at 1:55 PM, Keren Hochman < >>>> keren.hochman@lightcyber.com> wrote: >>>>=20 >>>>> how can I create mempool without hugepages?My application is running >> on a >>>>> pcap file so no huge pages is needed ? >>>>>=20 >>>>=20 >>>> Not sure if that is what you really want (Debug use only), but in >> general >>>> no-huge is available as EAL arg >>>>=20 >>>> From http://pktgen.readthedocs.io/en/latest/usage_eal.html : >>>>=20 >>>> EAL options for DEBUG use only: >>>> --no-huge : Use malloc instead of hugetlbfs >>>>=20 >>> I need this option only for testing. How can I use rte_mempool_create i= f >> I >>> use --no-huge? >>=20 >> 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. >>=20 >> Regards, >> Olivier >>=20 Regards, Keith