From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [RFC v2 00/23] Dynamic memory allocation for DPDK Date: Wed, 14 Feb 2018 09:04:39 +0100 Message-ID: <1667872.djnhp43hg1@xps> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, andras.kovacs@ericsson.com, laszlo.vadkeri@ericsson.com, keith.wiles@intel.com, benjamin.walker@intel.com, bruce.richardson@intel.com, Yongseok Koh , nelio.laranjeiro@6wind.com, olivier.matz@6wind.com, rahul.lakkireddy@chelsio.com, jerin.jacob@cavium.com, hemant.agrawal@nxp.com, alejandro.lucero@netronome.com, arybchenko@solarflare.com, ferruh.yigit@intel.com To: Anatoly Burakov Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 605D21B38D for ; Wed, 14 Feb 2018 09:04:52 +0100 (CET) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Anatoly, 19/12/2017 12:14, Anatoly Burakov: > * Memory tagging. This is related to previous item. Right now, we can only ask > malloc to allocate memory by page size, but one could potentially have > different memory regions backed by pages of similar sizes (for example, > locked 1G pages, to completely avoid TLB misses, alongside regular 1G pages), > and it would be good to have that kind of mechanism to distinguish between > different memory types available to a DPDK application. One could, for example, > tag memory by "purpose" (i.e. "fast", "slow"), or in other ways. How do you imagine memory tagging? Should it be a parameter when requesting some memory from rte_malloc or rte_mempool? Could it be a bit-field allowing to combine some properties? Does it make sense to have "DMA" as one of the purpose? How to transparently allocate the best memory for the NIC? You take care of the NUMA socket property, but there can be more requirements, like getting memory from the NIC itself. +Cc more people (6WIND, Cavium, Chelsio, Mellanox, Netronome, NXP, Solarflare) in order to trigger a discussion about the ideal requirements.