From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 4C6AC5596 for ; Fri, 8 Jul 2016 04:29:58 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 07 Jul 2016 19:29:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,327,1464678000"; d="scan'208";a="731215531" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 07 Jul 2016 19:29:57 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 7 Jul 2016 19:29:56 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.181]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.116]) with mapi id 14.03.0248.002; Fri, 8 Jul 2016 10:29:54 +0800 From: "Tan, Jianfeng" To: "Wiles, Keith" , Thomas Monjalon CC: Jez Higgins , "users@dpdk.org" , "olivier.matz@6wind.com" , "Gonzalez Monroy, Sergio" Thread-Topic: [dpdk-users] Running DPDK as non-root Thread-Index: AQHR2GbnQ2cMnd7BwE6rT9gBnoGC5KAMnymAgAAnM4CAAQaCEA== Date: Fri, 8 Jul 2016 02:29:54 +0000 Message-ID: References: <577E798F.9070700@jezuk.co.uk> <4313092.zcSIIfa3F0@xps13> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] Running DPDK as non-root X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 02:29:58 -0000 Hi, > -----Original Message----- > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Wiles, Keith > Sent: Friday, July 8, 2016 2:38 AM > To: Thomas Monjalon > Cc: Jez Higgins; users@dpdk.org; olivier.matz@6wind.com; Gonzalez Monroy, > Sergio > Subject: Re: [dpdk-users] Running DPDK as non-root >=20 >=20 > > On Jul 7, 2016, at 11:17 AM, Thomas Monjalon > 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. >=20 > 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 al= ters > the requirement. As I understand the virtual to physical translation need= ing > to be run a root is a Linux restriction. I do not know of any work around= s. 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 u= se virtual address as IOVA, which needs the help of vfio-pci with iommu on. Thanks, Jianfeng