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 A1FBCA0510 for ; Fri, 15 Apr 2022 16:52:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F96C4067E; Fri, 15 Apr 2022 16:52:34 +0200 (CEST) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) by mails.dpdk.org (Postfix) with ESMTP id 6FF4E4067C for ; Fri, 15 Apr 2022 16:52:32 +0200 (CEST) Received: by mail-ed1-f51.google.com with SMTP id z99so10172885ede.5 for ; Fri, 15 Apr 2022 07:52:32 -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=X43E+qV46mFgM9WcvbyFGiMFnG1xGdDTS7X25OZyXNg=; b=IgA6vgmjbL+RabfswVbOYWj5Wadhlb+SAssqnfBySUQji3bc3MOhCowuLzKDKr1/Xk Av4qtza9+2Dhhyga0hQFkO4pGWgTRYTruy/QM0zTpzGZi3NzCdvAIxgh+StmeW5/Vb94 b2HaSKJKkJfdZGjmNkI5kAowxyvMrtoYtWpDalK8u2yTsI9cUReN1hFpT1bRvWKjyTws er39w8XIXVganmEEOYCnXEUhJyRaUT7R6q6p34Cr83AReUo/T7KWpMPFQk5Tfg7FIyFP tPSxSqxzMc3WvsJqLSTQ9NtSUZ7BcANtA5LuUt7W9MkbUnvhh736ru+AIlhqexc+M0P8 wXbQ== 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=X43E+qV46mFgM9WcvbyFGiMFnG1xGdDTS7X25OZyXNg=; b=Nhw9f7i3IqhQMyk9NKEG4OeIiHN25jmT8oDXFwFvH3QBEuwXSUgArwTEultRXAE6ZH ISTjvFdJUeCnt+s51dj5efrL5oHajijAt5L11R4IWjAQyw8SIkrjj3Ub/yGBm65sa5Da aA+BbyUakD4B7/F/CFm+WYYsvxtKIkBsC+29gDDc547TySdypRegCRhtXAoIcj+XpDVg cSm6k30y6diqJ4AXiISEt11Wkobh3KNUKXzhaWSpyqkJXFBoPxFLYirxxDn/5uUn95+U fwMUCVonJwlCvB7v+cVFTcKBZW6Wgvjwt0gzaswmotB7gLTP9ZL6UGKwRDhTamt0G404 gG+A== X-Gm-Message-State: AOAM530r7awZ+abEwobTBLwqL6zvVOaGFGKdfYaZo5fHf6ibfBj8xg5g TU6hk0pJym8aP6WwRK+gC/WoF1Br0RN0br9pOWrpkyRln5E= X-Google-Smtp-Source: ABdhPJxhgeqI1KFShmu7ZLBn6oWWvKLks4ognEg2PeBzEqp8lM8pWJU8LeuQEaWRDhxF1x0CK07K9wtZUPzRdYFxvUc= X-Received: by 2002:aa7:c054:0:b0:41d:5276:a6c4 with SMTP id k20-20020aa7c054000000b0041d5276a6c4mr8757761edo.109.1650034351929; Fri, 15 Apr 2022 07:52:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Cliff Burdick Date: Fri, 15 Apr 2022 07:52:20 -0700 Message-ID: Subject: Re: Best practice to share memory between two DPDK processes in different docker containers To: Antonio Di Bacco Cc: users Content-Type: multipart/alternative; boundary="00000000000069fde105dcb28fb7" 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 --00000000000069fde105dcb28fb7 Content-Type: text/plain; charset="UTF-8" Hi Antonio, see this discussion: http://mails.dpdk.org/archives/users/2021-November/006014.html On Thu, Apr 14, 2022 at 12:57 PM Antonio Di Bacco wrote: > I imagine that there should be a way of sharing memory between two DPDK > processes running in different docker containers. Probably the two DPDK > processes could mmap the same hugepage? Probably we could pass pid and fd > from one process to the other and (bypassing pid namespaces) be able to > mmap the same memory? > I wonder if DPDK architects thought about this scenario. > > > --00000000000069fde105dcb28fb7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Antonio, see this discussion:


On Th= u, Apr 14, 2022 at 12:57 PM Antonio Di Bacco <a.dibacco.ks@gmail.com> wrote:
=
I = imagine that there should be a way of sharing memory between two DPDK proce= sses running in different docker containers. Probably the two DPDK processe= s could mmap the same hugepage? Probably we could pass pid and fd from one = process to the other and (bypassing=C2=A0pid namespaces) be able to mmap th= e same memory?
I wonder if DPDK architects thought about this scenario.=


--00000000000069fde105dcb28fb7--