From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] mem: revert page locking when not using hugepages Date: Thu, 30 Jun 2016 19:17:12 +0200 Message-ID: <2064760.ObAVrGWHUJ@xps13> References: <1465813577-13780-1-git-send-email-olivier.matz@6wind.com> <1467043131-24658-1-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, sergio.gonzalez.monroy@intel.com, david.marchand@6wind.com, pmatilai@redhat.com To: Olivier Matz Return-path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 0534437A6 for ; Thu, 30 Jun 2016 19:19:31 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id v199so230229165wmv.0 for ; Thu, 30 Jun 2016 10:19:31 -0700 (PDT) In-Reply-To: <1467043131-24658-1-git-send-email-olivier.matz@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-06-27 17:58, Olivier Matz: > This reverts commit 593a084afc2b441895aeca78a2c4465e450d0ef5. > > Since recently [1], it is not possible to run the dpdk with > non-root privileges and the --no-huge option. This is because the eal > layer tries to lock the memory. Using locked memory is mandatory for > physical devices because they reference physical addresses. > > But a user may want to start the dpdk without locked memory, because he > does not have the permission to do so, and/or does not have this need, > for instance because he uses virtual drivers. > > So this commit reverts the use of MAP_LOCKED in mmap() flags. > > [1] http://www.dpdk.org/ml/archives/dev/2016-May/039404.html > > Fixes: 593a084afc2b ("mem: lock pages when not using hugepages") > Reported-by: Panu Matilainen > Signed-off-by: Olivier Matz Applied, thanks Let's keep in mind to make things working with --no-huge.