[dpdk-dev] Running DPDK application with non-previlege mode

Kamaraj P pkamaraj at gmail.com
Wed Sep 1 18:09:51 CEST 2021


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 <bruce.richardson at intel.com>
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
>


More information about the dev mailing list