From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yongseok Koh Subject: Re: [RFC v2 00/23] Dynamic memory allocation for DPDK Date: Wed, 14 Feb 2018 02:01:56 +0000 Message-ID: References: <1513892309.2658.80.camel@intel.com> <1514308764.2658.93.camel@intel.com> <20180202192832.GA42096@yongseok-MBP.local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "Walker, Benjamin" , "dev@dpdk.org" , Thomas Monjalon , "andras.kovacs@ericsson.com" , "Wiles, Keith" , "Richardson, Bruce" , =?iso-8859-1?Q?N=E9lio_Laranjeiro?= , "Shahaf Shuler" , "Xueming(Steven) Li" To: "Burakov, Anatoly" Return-path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40089.outbound.protection.outlook.com [40.107.4.89]) by dpdk.org (Postfix) with ESMTP id CC4831B011 for ; Wed, 14 Feb 2018 03:01:58 +0100 (CET) In-Reply-To: Content-Language: en-US Content-ID: <5151656729FE59438E6F3A65891CD179@eurprd05.prod.outlook.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > On Feb 5, 2018, at 2:03 AM, Burakov, Anatoly = wrote: >=20 > Thanks for your feedback, good to hear we're on the right track. I alread= y have a prototype implementation of this working, due for v1 submission :) Anatoly, One more suggestion. Currently, when populating mempool, there's a chance t= o have multiple chunks if system memory is highly fragmented. However, with y= our new design, it is unlikely to happen unless the system is really low on mem= ory. Allocation will be dynamic and page by page. With your v2, you seemed to ma= ke minimal changes on mempool. If allocation fails, it will still try to gathe= r fragments from malloc_heap until it acquires enough objects and the resulta= nt mempool will have multiple chunks. But like I mentioned, it is very unlikel= y and this will only happen when the system is short of memory. Is my understandi= ng correct? If so, how about making a change to drop the case where mempool has multipl= e chunks? Thanks Yongseok