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 069DAA0542 for ; Mon, 6 Jun 2022 15:24:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E1D04021E; Mon, 6 Jun 2022 15:24:40 +0200 (CEST) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by mails.dpdk.org (Postfix) with ESMTP id AAABF40150 for ; Mon, 6 Jun 2022 15:24:39 +0200 (CEST) Received: by mail-qk1-f173.google.com with SMTP id br33so9092945qkb.0 for ; Mon, 06 Jun 2022 06:24:39 -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=Exy5bhiIfz1O0A/ouSDqbSmwlb+1GlrwAhzIjs1iRGU=; b=K73/UuHANp1AbkWTD94LDCs50hm1GfH+7Xc9R42TttrkpeXmCvrB1MP59JX4GWlGOu gi++efcHz4SrzIs31RniHt2N/7WBeSDnJS7Zx4GfJZgGn4WjGPJb7BusZ4Vc1Nr/A/jv vK3eUYmX+wlLZd5HWtjUywrMtdemVt+JT65CEH7NnVAYGBc4YDOLtv6eixpB74a93JNa tnmboDV1DrwMr54OFEFdpc9tNMeScW/+jiTvWHoezwDPmxR13ncN4wwH/cplf9/Z5q5l FYB5IsjPQCGH7+GCruv9HVqRjM9A6ZUym3ZtFKtALECpLJE+mkGnVOHuWn67o2ChzNdA hgAw== 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=Exy5bhiIfz1O0A/ouSDqbSmwlb+1GlrwAhzIjs1iRGU=; b=2wg2dy5m6w1okp6ORUuYyRDFW+J07221keO8Um4WCkzqpPaItOoMspEZLGPYi9Vh3O 9eIjZrGoCXtlIB3y43FHMrZu10afivoqdma9h+NQXEz1hTn1RcKER+W5lalJesj7WBtp +NxANTW0ydSCRuI4fju6S1oTSypw6NfgZjipr7U1qMQUm1datBQxmEaiX7jFl84ONWhm +aQD3fS+nheLA5n7sFHqXuvmLJLw3HyK5zYF0HLlf9Gu2WGCDF/TtgMK65oZcczdRpUx 2c/GJxiByixT4h5TFyJzAx9sXMaFCgu59S9UbQ2qBt41gnN+1G1MkPnvU36n58cCAReE Vlsw== X-Gm-Message-State: AOAM530liHrqaKxx/jr83iTopV08hpxlkDdL2qScOydKx+NnrxsnOs7u eB11FTt8X9NnEq2O3NLg5fZSFA56mdEZlSvi8ns= X-Google-Smtp-Source: ABdhPJz+y2quF6G1BEOH9mqQkKRW1OVJdp0sNEmVyHb9jWl/eg5EYvcHSC6gm9I+FsP+uA0ucPDcD2/RDo3UycjEB6Y= X-Received: by 2002:a05:620a:1792:b0:6a6:c734:d983 with SMTP id ay18-20020a05620a179200b006a6c734d983mr1398427qkb.682.1654521878843; Mon, 06 Jun 2022 06:24:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kiran Khatke Date: Mon, 6 Jun 2022 06:24:28 -0700 Message-ID: Subject: Re: Memory sharing between two primary processes To: "Pathak, Pravin" Cc: "users@dpdk.org" Content-Type: multipart/alternative; boundary="000000000000dc95ba05e0c76425" 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 --000000000000dc95ba05e0c76425 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Pravin, Both are DPDK application, so want to use DPDK Share memory i.e hugepages. How to share memory between two independent (Primary) application? Does memif PMD allows that ? Thanks, Kiran On Mon, Jun 6, 2022 at 5:58 AM Pathak, Pravin wrote: > Hi Kiran =E2=80=93 > > Can your application create and manage shared memory on it own without > using DPDK support ? > > Regards > > Pravin > > > > *From:* Kiran Khatke > *Sent:* Monday, June 6, 2022 2:26 AM > *To:* users@dpdk.org > *Subject:* Memory sharing between two primary processes > > > > Hi, > > > > Per DPDK Multiprocess, we know that, it is possible to share > memory(hugepages) between a primary and secondary Process. Primary proce= ss > allocates the memory and that is accessible by the secondary (both are > using same "--file-prefix=3D" parameter). > > > > There is a need in our application, to have two primary processes (starte= d > with different file-prefix) and would like to know the options - To share > memory (hugepage) between two primaries and which can give us better > throughputs. > > > > During exploration, got to know about memif PMD, which allows for DPDK an= d > any other client using memif (DPDK, libmemif) to communicate over shared > memory. > > Do you have any comments about memif performance ? Are there better > options over memif to share memory between two primaries ? > > > > Thanks , > > Kiran > --000000000000dc95ba05e0c76425 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Pravin,=C2=A0

Both are DPDK application, so want =C2=A0to use DPDK Share memor= y i.e hugepages.

How to = share memory between two independent (Primary) application?=C2=A0 Does memi= f PMD allows that ?=C2=A0

Thanks,
Kiran=C2=A0

On Mon, Jun 6, 2022 at 5:5= 8 AM Pathak, Pravin <pravin.p= athak@intel.com> wrote:

Hi Kiran =E2=80=93

Can your application create and manage shared memory= on it own without using DPDK support ?

Regards

Pravin

=C2=A0

From: Kiran Khatke <kirankhatke23may@gmail.com>= ;
Sent: Monday, June 6, 2022 2:26 AM
To: users@dpdk.o= rg
Subject: Memory sharing between two primary processes<= /p>

=C2=A0

Hi,

=C2=A0

Per DPDK Multiprocess, we know that, it is possible to sha= re memory(hugepages) between a primary and secondary Process.=C2=A0 Primary= process allocates the memory and that is accessible by the secondary (both are using same=C2=A0 "--file-prefix=3D" p= arameter).

=C2=A0

There is a need in our application, to have two primary pr= ocesses (started with different file-prefix) and would like to know the opt= ions - To share memory (hugepage) between two primaries and which can give us better throughputs.

=C2=A0

During exploration, got to know about memif PMD, which all= ows for DPDK and any other client using memif (DPDK, libmemif) to communica= te over shared memory.=C2=A0

Do you have any comments about memif performance ? Are the= re better options over memif to share memory between two primaries ?=

=C2=A0

Thanks ,

Kiran=C2=A0

--000000000000dc95ba05e0c76425--