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 97F50A0505 for ; Mon, 4 Apr 2022 21:48:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 310B242828; Mon, 4 Apr 2022 21:48:57 +0200 (CEST) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by mails.dpdk.org (Postfix) with ESMTP id 36D624068C for ; Mon, 4 Apr 2022 21:48:56 +0200 (CEST) Received: by mail-lf1-f50.google.com with SMTP id h7so19331859lfl.2 for ; Mon, 04 Apr 2022 12:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JTHjbyaM3hf9rmGRHnTtjoKL6OlZ2FB8jy2D43Oi4x8=; b=BCCdFNfawUuVYx/nZlp5h24dUSWMhkW8HYDD6ei9DjnZLapFndFGBr5OdyafdJ88Fi 9bbN4tk/FExNFla4rTVUmrCvrZaruGuppeL3qBDOdNdENYBYw2jJuDWKzwJprCIj4fnr 6e4YHMyQPjuDx3gc4ivDFJyfND1Pe5cRHqeJu8n194H1jbfPNJC0b+YBhHuzy4sJBbqv IJQ8C9CG2IMEPvAykq1tHixZcRax3/a0p8NZ62WeiLqUPfKIUffhXeAd2fC5aah2Xa0+ sD5J5zbCViQKHYcUaaZKYzZs9hB1vePgNhJThn+WYTdl1k9m05WAhegKMxkY0fHYUHw/ 4Dfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JTHjbyaM3hf9rmGRHnTtjoKL6OlZ2FB8jy2D43Oi4x8=; b=0Q5gEjV+Ui3Z1gQU7KY93dh5EqOehfOiOj1fv3FzdDntv6GzZ056TvpVSu+ubgG+UV 37xuIXoDsUBiJ3r1Y2NnFjzyoj7IwEzsdgFyWo/lRHzsCNZWH44oOZTpkuyvehPt3k2y C0pG090ozqAm7h8/TVr7UWf+ov9/J3qUCgflWyOUscAQNA8PvcvZzW3K3DCW6JMhePNJ eb+Mr+gdWvTe7mtGj2QSGcV2flzF+OPNkSklPn19yjwd38OzJHpgxHrsIe+zMHMAh2s1 Co047botcCMv4TBJPHvBXGmWWsVupIcwcQjV3LjnH9UxzyJJmTii+r3aDzDeE3fUCzSX QCfw== X-Gm-Message-State: AOAM531NdG3/v9BiRuJ/swBJIMk/3XAWD1vhaEvq0ZQrMAM4uqdNk7aZ FRx5D5U7p6XfAMogFPlVGWSxlTtJQ5/+3GWV8zc= X-Google-Smtp-Source: ABdhPJzVqg/rl6F4uH8Uvwsojv7EktSYv2IwLY/kSOJ7VIMtCeZgHBi5RGhOqCRotqo+rNPClXc0BAbSJslYE4QsC8U= X-Received: by 2002:a05:6512:3087:b0:44a:3cc8:757d with SMTP id z7-20020a056512308700b0044a3cc8757dmr749473lfd.178.1649101735504; Mon, 04 Apr 2022 12:48:55 -0700 (PDT) MIME-Version: 1.0 References: <20220404191029.4d93eee3@sovereign> In-Reply-To: <20220404191029.4d93eee3@sovereign> From: Antonio Di Bacco Date: Mon, 4 Apr 2022 21:48:44 +0200 Message-ID: Subject: Re: Fastest and easiest method to share mem between two DPDK processes To: Dmitry Kozlyuk Cc: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000024ada505dbd96b75" 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 --00000000000024ada505dbd96b75 Content-Type: text/plain; charset="UTF-8" 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. --00000000000024ada505dbd96b75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Il giorno lun 4 apr 2022 alle ore 18:= 10 Dmitry Kozlyuk <dmitry.ko= zliuk@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 s= hares
> with Sa.
> Now I also have another Primary (Pb). I need to allocate some memory i= n Pa
> or Sa that has to be shared with (Pb) or the reverse. Is this a feasib= le
> 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 P= b.=C2=A0
Sa will write and Pb will read.



=C2=A0
--00000000000024ada505dbd96b75--