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 84932A0509 for ; Fri, 8 Apr 2022 14:32:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A4A44067E; Fri, 8 Apr 2022 14:32:13 +0200 (CEST) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by mails.dpdk.org (Postfix) with ESMTP id CFAE84003F for ; Fri, 8 Apr 2022 14:32:11 +0200 (CEST) Received: by mail-lj1-f174.google.com with SMTP id g24so11248724lja.7 for ; Fri, 08 Apr 2022 05:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=xoIv+4yyIEXDdS9pdtVoUVdlpNE4H1nFYF4Tov2aC+c=; b=Z24NHNvVCMocH9VV5LOS/P+WxvXbznDczPnSiQVTZTZ6RxH+M2JZJ0ipvWUd0M4dUY 1a3yPMOf+Rm032nMKE8WD3z/Qoi4ernOPCZy/vq7QF2Vdy+bFvo7pUx9peK1iTzA3UjZ prwzfPIKvJ62FtIyX3NUJb9RXYH6qJuU3z7TKXJcu36g9wHoFPYJR+lhHkbbNST9aXjS 1M1Xh7ngW09oz34m1nBGTtSfYvCsV+mqJEV7y6mN0EG73iJUB5I9OhfiJFaa7fBIhDJP +jyXKCytZW+YrFdRkuy3xpaydWjHLnaGNbEMRG2wqSFEmYQGCIgYzw7ALUXKdmTgzBaE ITiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xoIv+4yyIEXDdS9pdtVoUVdlpNE4H1nFYF4Tov2aC+c=; b=37JqgMjL/IuWbP9dBBGzF99JnDawZaNUHx91c/A9t6Ve3xTZaVyCT6XgZ3DsTEqRXc V5KwTYG5pRU+Si31IgUvAEwdgOGJC/bOSsEm4Jv4mI/jgiaiz6XkZ1Au8ApCOufXNW7A 6YlW+VS32TR5iIw/ptpv0om8GG1xQnpP3+tAkZ9/1NUeJa02EpQme1TYbg48WW1CmSCH dK3XzetRo+LTvmPTbCSu13Z/n0Frxgl03EdD+hgUZWmRTWBMb3rzR2pHmJIrihb66Hhb 8h74qnCivc6dXkW7FXyyfYdPLbcr/3/+BOXljgi5y9W5gKUse1t/bNtGS8OJ8Vcy8B60 gE9w== X-Gm-Message-State: AOAM533wgVV2kLa5+FPuqJj/q51W0kcTsTYl/F9QANt93uFsdINbMgeS MzmrTPflnJXtZ+gEsQ6LgEb7rXgc0VXSIsrirB9Xftq/TlG58A== X-Google-Smtp-Source: ABdhPJy+/UICzZbKDPSGbPpOf8vtofIjXNYE8w+oR52te7yp8o2OyjgyQvulC6ooxQjtEXsacI619SgY5QIIpWX3dK4= X-Received: by 2002:a05:651c:611:b0:24b:1b08:a006 with SMTP id k17-20020a05651c061100b0024b1b08a006mr11974022lje.420.1649421130965; Fri, 08 Apr 2022 05:32:10 -0700 (PDT) MIME-Version: 1.0 From: Antonio Di Bacco Date: Fri, 8 Apr 2022 14:31:59 +0200 Message-ID: Subject: Shared memory between two primary DPDK processes To: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000098a74805dc23c83a" 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 --00000000000098a74805dc23c83a Content-Type: text/plain; charset="UTF-8" I know that it is possible to share memory between a primary and secondary process using rte_memzone_reserve_aligned to allocate memory in primary that is "seen" also by the secondary. If we have two primary processes (started with different file-prefix) the same approach is not feasible. I wonder how to share a chunk of memory hosted on a hugepage between two primaries. Regards. --00000000000098a74805dc23c83a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I know that it is possible=C2=A0to share memory between a = primary and secondary process using=C2=A0rte_memzone_reserve_aligned to all= ocate memory in primary that is "seen" also by the secondary. If = we have two primary processes (started with different file-prefix) the same= approach is not feasible. I wonder how to share a chunk of memory hosted o= n a hugepage between two primaries.

Regards.
--00000000000098a74805dc23c83a--