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 17A48A0505 for ; Mon, 4 Apr 2022 22:52:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D80D342828; Mon, 4 Apr 2022 22:52:15 +0200 (CEST) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) by mails.dpdk.org (Postfix) with ESMTP id 9AB714068C for ; Mon, 4 Apr 2022 22:52:14 +0200 (CEST) Received: by mail-lj1-f171.google.com with SMTP id a30so14480668ljq.13 for ; Mon, 04 Apr 2022 13:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uwsZn/STK2MNX6yuHntkNURcnwvEtpoLGmf/ARb+pH0=; b=AWVWJZBp9bP52RakhIAXtohKV5kdKhzCwZdAtIhi67rq0aAo4hMXNKG86LcefwUNb8 ao27td8bwFkIfeRsUXjK0kyraA1ih5hSthqm64ujBf1ZfTcUzdyuBtLpjrkEhjUDlbCB /WJlyRsutMK7j3JZD1pB/CBKnf1pxeYdn6eTRpg/rnFFheMStneF3kAgzeEuLMXHTPQu fWVE3NZdN9MkDDem6jwWk4AMQcqUjpxkbh0zJmJGm+vLspOkPg9CWBC7HP1AJ1947dq+ IJnNpPHqvfSfL58sYV2hR+MXlzMoSNyCDkLfqw5ka/QfxspbRTZvRUpfYSpY/iMhyupb jr3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uwsZn/STK2MNX6yuHntkNURcnwvEtpoLGmf/ARb+pH0=; b=KCPWRuA5GkwB8Ay4f02XW/jT6LuCVNRyIGWTykN6iTHvUJ0Kg1wcdyzgjTw05AWPzM KEhn8zNE0PJmGWwd7WVclyPZ0JRCQuTDMMsXQLq9nJyXI4BCjqTgqPr4VEov4BHNyPS3 TSRJoty5uW5kXVQy/g5IbgEU/HivOsPvyBiV3q77ZfcNt02ifbdBviuGMWEQc0/X4qQ/ bZYBFP32xxHTIM7XLUXA9/L3NcO0fep/bxgLruqqaLbbbSAqeFmzgwzv4R8NcitBgC2Q qOCVuQNhfBgO9ZMtSf2lwMcr2r9of36YQ2Czb7O7GXeppl+duD5FihgdKpBPho64S+Zp FCLw== X-Gm-Message-State: AOAM531+iJFGyoQjogDgRCjFkwdf7tvxXrCXtGtxq1ftYS2+yeQyJj3x GBv5Ul7nQ4TTXjnbZUpeqS0= X-Google-Smtp-Source: ABdhPJzwJbxGFR9dQ6NS2K8g6I9GJzS8nkFUcJVoOnXsfM4wHoaiAbMxHCxdNxQmHSnShos/XiVmTA== X-Received: by 2002:a2e:8513:0:b0:24a:f6a9:705 with SMTP id j19-20020a2e8513000000b0024af6a90705mr877204lji.405.1649105533966; Mon, 04 Apr 2022 13:52:13 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id v6-20020a2ea446000000b0024b0abb3984sm931014ljn.134.2022.04.04.13.52.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 13:52:13 -0700 (PDT) Date: Mon, 4 Apr 2022 23:52:12 +0300 From: Dmitry Kozlyuk To: Antonio Di Bacco Cc: users@dpdk.org Subject: Re: Fastest and easiest method to share mem between two DPDK processes Message-ID: <20220404235212.23b49d44@sovereign> In-Reply-To: References: <20220404191029.4d93eee3@sovereign> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org 2022-04-04 21:48 (UTC+0200), Antonio Di Bacco: > Il giorno lun 4 apr 2022 alle ore 18:10 Dmitry Kozlyuk < > dmitry.kozliuk@gmail.com> ha scritto: > > > 2022-04-04 16:04 (UTC+0200), Antonio Di Bacco: > > > I have a Primary (Pa) and a secondary (Sa). Pa allocates memory that > > shares > > > with Sa. > > > Now I also have another Primary (Pb). I need to allocate some memory in > > Pa > > > or Sa that has to be shared with (Pb) or the reverse. Is this a feasible > > > configuration? > > > > Please tell more about the use case. > > Do you want to share an arbitrary block or part of DPDK memory? > > What the shared memory contains and how it will be used w.r.t. DPDK? > > > > The memory will contain some signal samples, we would like the samples to > be on a hugepage (1GB) shared between Sa and Pb. > Sa will write and Pb will read. Have you considered memif PMD (that you are already familiar with)? It's precisely shared memory between processes. And a shared hugepage(s) for data is how it operates in zero-copy mode.