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 6A3E2A0C47; Wed, 1 Sep 2021 18:10:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 026374013F; Wed, 1 Sep 2021 18:10:05 +0200 (CEST) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) by mails.dpdk.org (Postfix) with ESMTP id EAF4A40041; Wed, 1 Sep 2021 18:10:03 +0200 (CEST) Received: by mail-lj1-f176.google.com with SMTP id w4so5803782ljh.13; Wed, 01 Sep 2021 09:10:03 -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=SwSN/csKStckrtmznSywDHzB2XgsrXm3g3U7gcx27vs=; b=XI9nQZPOeYQ/z5SG3uDVpOlA56NpkvfxVIiAwgicQtbM4OTZZGdVgoKQgRbrjeH2bV GpllUwnLqWiXXAvrMvVFf1B9RyfRpMn+eQUMmCHAZQQ7RaaTPZy+k8XzFxXdBqc9VAw9 ER/pa/IWkhLDdlg3l0YoL+FiA/2oicdV13sUOeqnhcwWnm1Gf9fz0p5V8kjKpQUyV9vE JWOloj+Pic00BhTYBOC4QBh0QNaL4d45La20DWNRtm3NL/jby5MGgfaYx8S8jUr28npB 0czFAcfT6Ytdl4qTApyao4y0Mi6KzwtsD/bM2xWsjUop50HbcpPy3J6WRTLSmLmPTTgC HjZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SwSN/csKStckrtmznSywDHzB2XgsrXm3g3U7gcx27vs=; b=Sk9Dt8B4Q0HEzKVBjPcyt2LC1067y7N7PzSzsUmnTC5m+rWgrAOgRlhwnXVNTaGVVg vYKCvlKMhzeEDGMbUt3PGWUPgqQYdr1aot23XwSY9vQQRI8EIWFECAneelcvCjBtuRI3 pvpslmA+cMJWiY7nK2yUDnVz6z1uHm2oKbxt6BA4Lnjr446m6BweifF/xPas+ee2fxW5 /kUH8jVqEpif5E/OsREmAekasmrDNE+QZRG1fA0jfsJ3f8Pb6LVlTGf4mFZAJqyZ8+tX nuHFrDo/EF29qxj88l72CBdRFkbRe3j3y5DoD5Mc0GX3zAVa+KFvpLSYQzv63Ap4zV/p p8pw== X-Gm-Message-State: AOAM530UvgE5fgDMpAT+BKvCvT79u492BeigFXKOD30XnvWvrCRfw/FZ Q4pcDUVzzIEJdeEZAnua5MknDm2G4B72zr7rTWI= X-Google-Smtp-Source: ABdhPJyFrSTvIYADRrrf5u8vWeiIhtxEHVuGRsry0Xr/jzOs0UxcN9vI7JbWdtcG63Fq3d96NpldkK8s9huKUOL6CMA= X-Received: by 2002:a2e:585a:: with SMTP id x26mr396456ljd.54.1630512603293; Wed, 01 Sep 2021 09:10:03 -0700 (PDT) MIME-Version: 1.0 References: <66ba0b52-83bf-f7a0-aa79-66a267af32c4@intel.com> <3485790.tFL5Z3R0ll@thomas> In-Reply-To: From: Kamaraj P Date: Wed, 1 Sep 2021 21:39:51 +0530 Message-ID: To: Bruce Richardson Cc: David Marchand , Thomas Monjalon , dev , Anatoly Burakov , Ferruh Yigit , ksimha@cisco.com, kalas@cisco.com, seveluch@cisco.com, "techboard@dpdk.org" , hpai@cisco.com, ppitchai@cisco.com, Aaron Conole , "Kamaraj P (kamp)" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] Running DPDK application with non-previlege mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thanks Bruce. BTW we are trying to run our application as docker container. We may need to pass the parameters(system capability) along with docker command line to mount the hugepages ? Like this : https://github.com/usnistgov/ndn-dpdk/blob/main/docs/Docker.md Please share your thoughts. Thanks, Kamaraj On Wed, Sep 1, 2021 at 1:14 AM Bruce Richardson wrote: > On Tue, Aug 31, 2021 at 09:50:43PM +0530, Kamaraj P wrote: > > Thanks David. Will check it out. > > > > BTW are there any steps where DPDK testpmd can run as a non privileged > user > > mode ( with any driver )? > > Please share if you have any pointers. > > > > Thanks, > > Kamaraj > > > Not sure if this is generally applicable but I ran a test using testpmd as > a non-root user on my Ubuntu 21.04 system. > > I bound a couple of ports using the i40e driver to DPDK using vfio-pci > kernel driver, and then did a chmod on the /dev/vfio/ nodes for them to > give the user access. I also gave the user rw access to the hugepage mount > point I had created. Thereafter testpmd ran fine as a non-root user and I > was able to put traffic through it. > > Regards, > /Bruce >