[dpdk-users] Running DPDK as non-root

Tan, Jianfeng jianfeng.tan at intel.com
Fri Jul 8 04:29:54 CEST 2016


Hi,

> -----Original Message-----
> From: users [mailto:users-bounces at dpdk.org] On Behalf Of Wiles, Keith
> Sent: Friday, July 8, 2016 2:38 AM
> To: Thomas Monjalon
> Cc: Jez Higgins; users at dpdk.org; olivier.matz at 6wind.com; Gonzalez Monroy,
> Sergio
> Subject: Re: [dpdk-users] Running DPDK as non-root
> 
> 
> > On Jul 7, 2016, at 11:17 AM, Thomas Monjalon
> <thomas.monjalon at 6wind.com> wrote:
> >
> > Hi
> >
> > 2016-07-07 16:47, Jez Higgins:
> >> Is it possible to get DPDK up and running as non-root - if so, can
> >> anyone guide me to what I'm missing? Or should I be giving this up as a
> >> bad job?
> >
> > You can try the --no-huge option.
> > But most of drivers won't work without hugepage currently.
> > A rework of the memory allocation is needed to make it work better.
> 
> Last time I looked DPDK must be run as root as the virtual to physical
> translation in the startup needs to be root, unless the no-huge option alters
> the requirement. As I understand the virtual to physical translation needing
> to be run a root is a Linux restriction. I do not know of any work arounds.


I had a try long time ago. Firstly, to avoid using physical memory, I once sent a patch, http://dpdk.org/ml/archives/dev/2016-January/031180.html. The second, how to use DPDK with physical NIC without physical address, just use virtual address as IOVA, which needs the help of vfio-pci with iommu on.

Thanks,
Jianfeng


More information about the users mailing list