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 16FD6A0C41 for ; Thu, 18 Nov 2021 07:20:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B0A040687; Thu, 18 Nov 2021 07:20:26 +0100 (CET) Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) by mails.dpdk.org (Postfix) with ESMTP id 5082440395 for ; Thu, 18 Nov 2021 07:20:25 +0100 (CET) Received: by mail-ua1-f51.google.com with SMTP id ay21so11301959uab.12 for ; Wed, 17 Nov 2021 22:20:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smartx-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OGRYkVIVa+Y+ZYM57gggpFOwR8/Bz2wGcJGqhKyF9wc=; b=xGRlM25R9fqAPow12BKpiUZpza3K8CtSFEJnb+rtJgizu5ObHutGpq3gWLOKvX0i4D TAjsSf2Ut9MUm1Jp6hDfwRvKuN2gsw5Wxf8wAK+9IhbxE7YXd6fDji7mNAq038pbFaxK t89/OSg4K4GMULxKwHU7CfUDS4sxzWhPruNx4R/3CjnpPgqpbnz5AnVI2OsNQ3cibbB3 v/OmScq0YMRQkt0idNJaoPS6WxcTWicT4eeWgK+RP6ARaycB0QqyiBnHCui5rr8zYZ4M Zvh0KAr6nszLA+I8kS4riiOfDlNDAvjEhMveH6T1vqS/9e5a8rwu5TxIrYGfrIKYxjFy eOUg== 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=OGRYkVIVa+Y+ZYM57gggpFOwR8/Bz2wGcJGqhKyF9wc=; b=SuV+LxhEKNVcf2oCO6Nhowa7RoJoBwXv8dk+Mbvqn6T1nlK3P1JgRPoEkYeVUaT7Qi g4Xw6AzTakoZtXNzmpfa4WvHRHFqtkIcka/Gv5Eg6RwFR10xqgbQ0ij+2Qlxa6fLyXc2 HVciOPTd5UHuPrezPftummQQRZQgms7IUzfaKmo0oS+PlgVB6SkTGeKAIVZqgf9y01Bg yf3Hlogr041auWgOr9Yd1S9cJtTkHbHvq/babFulmmNPQazs5G2MuLgi42dT4WzaTs2Q sTDe6E6i9RzNxM3stl4NqwnsZdEyzK2ubPrf2IFyadRMCmMqRSGJPdrI8qaLNIvSvo9Y HwqA== X-Gm-Message-State: AOAM5333/qw9umriGNIqKKQPWQYxrS3VUbsIaBz0RjsbORGZeeRjofBg ysSDsSjpOmErOUzmKjSxhwzIqJ2MsekE3LnQ0c6cAA== X-Google-Smtp-Source: ABdhPJxYd91ZKtlHOHB76zHp1hce1hPH9WRimXelTfwMpu80MwWelkhLalXbIxkEzD0qYEGPmKex5Bms78SnNwSwp4s= X-Received: by 2002:ab0:6ca7:: with SMTP id j7mr32830377uaa.133.1637216424686; Wed, 17 Nov 2021 22:20:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Li Feng Date: Thu, 18 Nov 2021 14:20:13 +0800 Message-ID: Subject: Re: Can the DPDK multi-process feature be used in Docker containers? To: Cliff Burdick Cc: Staffan Wiklund , users Content-Type: text/plain; charset="UTF-8" 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 On Thu, Nov 18, 2021 at 2:11 PM Cliff Burdick wrote: > > Yes. Try mapping the dpdk metadata directory (/var/run/dpdk) into both containers from the host. You should be able to do the normal dual process methods. > By the way, if I want to run two separate dpdk processes in two different dockers, what should I do? e.g. Running two processes: examples/dpdk-mp_server These two dockers have mapped the same /dev/hugepages directories. I have tested, the dpdk will crash because the hugepages are mixed. Thanks. > > On Wed, Nov 17, 2021, 05:58 Staffan Wiklund wrote: >> >> Hello >> >> I wonder if it is possible to use the DPDK multi-process feature in Docker containers? >> >> That is, can a DPDK application execute in a Docker container and share its >> DPDK memory with another DPDK application executing in another Docker container >> using the DPDK multi-process feature? >> >> For example if the DPDK example mp_server executes in one Docker container: >> /examples/dpdk-mp_server -l 1-2 -n 4 -- -p 3 -n 2 >> >> and the DPDK example mp_client executes in another Docker container: >> >> /examples/dpdk-mp_client -l 3 -n 4 --proc-type=auto -- -n 0 >> >> Is this possible to implement? >> >> Thanks >> Staffan >> >>