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 455A9A0093; Mon, 3 Oct 2022 09:42:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 246AE40695; Mon, 3 Oct 2022 09:42:29 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 94E3240693 for ; Mon, 3 Oct 2022 09:42:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664782947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kof3bg9DRECEmkN24V3/JfqA3NDU/HxH7C+tGdUpBgw=; b=UY/agItdC7SNuY3IYNTn7iy9l6tm6glSudcXVKwh+dTfAZ+dQSkGaXHEgquZK1nn2483sK Bbw/umMZbRl3ya3pcVFaEssWrqAz7UGeObILh2EI49wF3mXmNswJKuZAL0HLUAkpk4aWCp IKgWSG1HfSzHdVIrWTshqu40mgwJumE= Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-410-Dk6Rieg3M7C9hRk-VydxEQ-1; Mon, 03 Oct 2022 03:42:26 -0400 X-MC-Unique: Dk6Rieg3M7C9hRk-VydxEQ-1 Received: by mail-pf1-f198.google.com with SMTP id 124-20020a620582000000b0056177a9e489so1190608pff.22 for ; Mon, 03 Oct 2022 00:42:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=kof3bg9DRECEmkN24V3/JfqA3NDU/HxH7C+tGdUpBgw=; b=PCQSlqGWHRF9yjokzUwwNlBLPb92A1tH+61i1api8/K0h7gNMBqbYkHBnCKZ5Fw4Yf WcfvsnxkgmU+dI17mQqzOjn+yym4rzZ+sBosPhU4F8f+RHHDNui7lz7X3GvjVY9h1/OC Y+Is6la7jhn+4sYxipFwXiQhGVKBznEZmcWWmzMC5Aw40PSjEclKJ4wdB34wVWhmyi1E FTOjXlG7nsqZZUAnhDVnT6Awb4d+mVQ9RKQJeMmZh48G12B50dRitRZ9NU1gmQ0CrLsN jt/JLrhSQd4zqnYfE0phX3jeAAvtC1R1RgxMtbgV7ojEkr5UKXOyqLzYbAAM5ZJe7j/h wZ/g== X-Gm-Message-State: ACrzQf3UzvNd8WTUwgXZyUtd7YqzSaCiZ2oM/VKJXu/6M7nQCWBOBMkD CMAk4UBBecnChedXQCch+LxkimZPG1Zoap7PyOADcukLkmZANNkBVUlCv1cPn0HCC/R+UF6WCNU bCd/8Zvzy1bE51QxKVoY= X-Received: by 2002:a17:902:bf46:b0:179:eba5:90ba with SMTP id u6-20020a170902bf4600b00179eba590bamr20982053pls.16.1664782945076; Mon, 03 Oct 2022 00:42:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BW2sLKLs0WurkL33bgkQKTF8XHkmLeiV5hnKWv/U+pDLc2AcmS5HIcUoUPwu4g9MQOWXPBruy2ygKbGn5t4c= X-Received: by 2002:a17:902:bf46:b0:179:eba5:90ba with SMTP id u6-20020a170902bf4600b00179eba590bamr20982046pls.16.1664782944822; Mon, 03 Oct 2022 00:42:24 -0700 (PDT) MIME-Version: 1.0 References: <20220721044648.6817-1-fengchengwen@huawei.com> <20220924074951.31814-1-fengchengwen@huawei.com> In-Reply-To: <20220924074951.31814-1-fengchengwen@huawei.com> From: David Marchand Date: Mon, 3 Oct 2022 09:42:13 +0200 Message-ID: Subject: Re: [PATCH v3 00/10] introduce memarea library To: Chengwen Feng , =?UTF-8?Q?Morten_Br=C3=B8rup?= , "Burakov, Anatoly" , dmitry.kozliuk@gmail.com, stephen@networkplumber.org Cc: thomas@monjalon.net, dev@dpdk.org, jerinjacobk@gmail.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 Sat, Sep 24, 2022 at 9:56 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 default alignment size is RTE_CACHE_LINE_SIZE. > > - The memory region can be initialized from the following memory > sources: > 1. RTE memory: e.g. invoke rte_malloc_socket to obtain. > 2. System API: e.g. invoke posix_memalign to obtain. > 3. User provided address: it can be from extended memory as long as > it is available. The address must be aligned to > RTE_CACHE_LINE_SIZE. > 4. User provided memarea: it can be from another memarea. > > - It provides refcnt feature which could be useful in multi-reader > scenario. > > - It provides backup memory mechanism, the memarea could use another > memarea as a backup. > > 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 > > Signed-off-by: Chengwen Feng This series did not pass through the CI, as its patches are spread over different series in patchwork. https://patchwork.dpdk.org/project/dpdk/list/?submitter=2146 There was probably something wrong when sending the patches, please check your setup and repost them. Thanks. -- David Marchand