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

2021-09-06 Thread Kamaraj P
Hi Thomas/Antoly, We have tried with the below capability to start a DPDK application as a container. --cap-add=NET_ADMIN --cap-add=SYS_RESOURCE --cap-add=SYS_NICE Still We could see the failures when rte_eali_init() .. 09-06-2021 10:48:37.423583 EAL: NUMA is not supported. *09-06-2021 10:48:

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

2021-09-05 Thread Kamaraj P
Hello Thomas, THanks for the suggestion. Yes. Our DPDK application already has an in-memory option. BTW we are not using a multi-process environment for our DPDK application. Thanks, Kamaraj On Wed, Sep 1, 2021 at 11:23 PM Thomas Monjalon wrote: > 01/09/2021 18:09, Kamaraj P: > > Thanks Bruce.

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

2021-09-01 Thread Thomas Monjalon
01/09/2021 18:09, Kamaraj P: > 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

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

2021-09-01 Thread Kamaraj P
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,

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

2021-08-31 Thread Bruce Richardson
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

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

2021-08-31 Thread Aaron Conole
David Marchand writes: > On Tue, Aug 31, 2021 at 5:27 PM Kamaraj P wrote: >> >> Hi Thomas, >> We are trying with the IGB_UIO driver in our DPDK application. > > Running with igb-uio as a non priviledged user is not possible (or, at > best, makes little sense). > > >> Is there any documentation w

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

2021-08-31 Thread Kamaraj P
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 On Tue, Aug 31, 2021 at 9:05 PM David Marchand wrote: > On Tue, Aug 31, 2021 at 5:27 PM Kamaraj P wrote

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

2021-08-31 Thread David Marchand
On Tue, Aug 31, 2021 at 5:27 PM Kamaraj P wrote: > > Hi Thomas, > We are trying with the IGB_UIO driver in our DPDK application. Running with igb-uio as a non priviledged user is not possible (or, at best, makes little sense). > Is there any documentation where we need to start to run a DPDK ap

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

2021-08-31 Thread Kamaraj P
Hi Thomas, We are trying with the IGB_UIO driver in our DPDK application. Is there any documentation where we need to start to run a DPDK application with minimal system capability? Also please let us know if there is any known dependency with DPDK versions (dpdk application with 18, 19.11 versions

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

2021-08-30 Thread David Marchand
On Mon, Aug 30, 2021 at 1:59 PM Thomas Monjalon wrote: > > 30/08/2021 13:26, Ferruh Yigit: > > On 8/30/2021 8:52 AM, Kamaraj P wrote: > > > Hello All, > > > Some more info. > > > We are using DPDK 19.11. > > > > > > When we bringup application with --security-opt seccomp=unconfined > > > option..

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

2021-08-30 Thread Thomas Monjalon
30/08/2021 13:45, Kamaraj P: > Thanks Ferruh. > One more option which we have figured out to resolve this error by adding > SYS_NICE capability ( --cap-add=NET_ADMIN --cap-add=SYS_RESOURCE > --cap-add=SYS_NICE). > Not sure whether it will work for all the scenarios. However the above > options will

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

2021-08-30 Thread Thomas Monjalon
30/08/2021 13:26, Ferruh Yigit: > On 8/30/2021 8:52 AM, Kamaraj P wrote: > > Hello All, > > Some more info. > > We are using DPDK 19.11. > > > > When we bringup application with --security-opt seccomp=unconfined > > option.. > > THe application bringup successfully and didnt observe any error when

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

2021-08-30 Thread Kamaraj P
Thanks Ferruh. One more option which we have figured out to resolve this error by adding SYS_NICE capability ( --cap-add=NET_ADMIN --cap-add=SYS_RESOURCE --cap-add=SYS_NICE). Not sure whether it will work for all the scenarios. However the above options will ensure DPDK application can run as non-p

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

2021-08-30 Thread Ferruh Yigit
On 8/30/2021 8:52 AM, Kamaraj P wrote: > Hello All, > Some more info. > We are using DPDK 19.11. > > When we bringup application with --security-opt seccomp=unconfined > option.. > THe application bringup successfully and didnt observe any error when DPDK > init logs. > Will that --security-opt se

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

2021-08-30 Thread Kamaraj P
DPDK logs: Used system capability: --cap-add=NET_ADMIN --cap-add=SYS_RESOURCE --rm -v /dev:/dev to bring up the DPDK application Enabling IOVA mode set_mempolicy: Operation not permitted set_mempolicy: Operation not permitted set_mempolicy: Operation not permitted set_mempolicy: Operation not per

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

2021-08-30 Thread Kamaraj P
Hello All, Some more info. We are using DPDK 19.11. When we bringup application with --security-opt seccomp=unconfined option.. THe application bringup successfully and didnt observe any error when DPDK init logs. Will that --security-opt seccomp=unconfined option recommended for non-previlege mod