From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 3A5571B1F7 for ; Tue, 23 Oct 2018 17:29:29 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2018 08:29:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,416,1534834800"; d="scan'208";a="83504811" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 23 Oct 2018 08:29:24 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 23 Oct 2018 08:28:57 -0700 Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.34]) by fmsmsx122.amr.corp.intel.com ([169.254.5.127]) with mapi id 14.03.0319.002; Tue, 23 Oct 2018 08:28:57 -0700 From: "Wiles, Keith" To: Avinash Chaurasia CC: users , "Burakov, Anatoly" Thread-Topic: [dpdk-users] Memory allocation in dpdk Thread-Index: AQHUaqyuPZmLFj4ZZEKmejNNp/TQe6UtajeA Date: Tue, 23 Oct 2018 15:28:56 +0000 Message-ID: <53783C98-0AC0-4C3B-806E-5DD4CBF6E268@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.254.48.207] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] Memory allocation in dpdk X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2018 15:29:29 -0000 > On Oct 23, 2018, at 1:44 AM, Avinash Chaurasia wrote: >=20 > Hello, > I am trying to understand how dpdk allocate memory. I tried digging code = to > understand memory allocation of DPDK. So far I understood that memory is > allocated from a heap that dpdk maintains. However, this heap must be > allocated at some place. I failed to traceback any function (called from > heap_alloc()) that calls mmap to allocate memory. Please let me know when > this heap is created, which function call does that. Memory allocation is tricky in DPDK, but are you talking about rte_malloc o= r rte_mempool allocagtion. Each h has a different way to get memory. Look a= t the rte_memzone code it does the lowest level allocation of memory and us= e huge pages. Also look at the email list for patches submitted by Anatoly = Burakov he just re-wrote the memory system and has some good explanations i= n the patches an in the docs for DPDK. > Thanks > Avinash Kumar Chaurasia Regards, Keith