From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4D80C42CA9; Tue, 13 Jun 2023 14:47:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D3A6240A8A; Tue, 13 Jun 2023 14:47:07 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id A566740698 for ; Tue, 13 Jun 2023 14:47:06 +0200 (CEST) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QgSwj6VyWzTkx7; Tue, 13 Jun 2023 20:46:29 +0800 (CST) Received: from [10.67.100.224] (10.67.100.224) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 13 Jun 2023 20:46:59 +0800 Subject: Re: [PATCH v14 0/6] introduce memarea library To: "Burakov, Anatoly" , Ferruh Yigit , , CC: , , , , , References: <20220721044648.6817-1-fengchengwen@huawei.com> <20230209063610.35501-1-fengchengwen@huawei.com> <8137a547-da19-7f10-7bb8-f2deef7fc64c@amd.com> From: fengchengwen Message-ID: <93b7aee6-3e08-79cc-dffe-50c87f1cda58@huawei.com> Date: Tue, 13 Jun 2023 20:46:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.100.224] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 2023/6/13 19:04, Burakov, Anatoly wrote: > On 6/13/2023 10:50 AM, fengchengwen wrote: >> Hi Ferruh, >> >> On 2023/6/12 21:53, Ferruh Yigit wrote: >>> On 2/9/2023 6:36 AM, Chengwen Feng wrote: >>>> The memarea library is an allocator of variable-size object which based >>>> on a memory region. The main features are as follows: >>>> >>>> - The memory region can be initialized from the following memory >>>>    sources: >>>>    1. HEAP: e.g. invoke rte_malloc_socket. >>>>    2. LIBC: e.g. invoke posix_memalign. >>>>    3. Another memarea: it can be from another memarea. >>>> >>>> - It supports MT-safe as long as it's specified at creation time. >>>> >>>> Note: >>>> a) The memarea is oriented towards the application layer, which could >>>> provides 'region-based memory management' [1] function. >>>> b) The eal library also provide memory zone/heap management, but these >>>> are tied to huge pages management. >>>> >>>> [1] https://en.wikipedia.org/wiki/Region-based_memory_management >>>> >>>> Chengwen Feng (6): >>>>    memarea: introduce memarea library >>>>    test/memarea: support memarea test >>>>    memarea: support alloc and free API >>>>    test/memarea: support alloc and free API test >>>>    memarea: support dump API >>>>    test/memarea: support dump API test >>>> >>> > > Hi, > > From my understanding, this library is not intended to support secondary process use cases? Yes, it's not supported in the current version, we could extend to support if necessary. >