From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=mTW5YgEmVyOeWvll/D+cLsBYpDr4GcRR/mpSo0N/Wjk=; b=tB+98/kizF5TM3n0e75tZzivmN9+q4sYa/RTp5o0tPwFlytzJH1mx0BOdD57dvoVgF +ERGNYKwEkEQSDuF1QVVIrhUmP8HyruWKv8W0t8EdOzRUuQVHSgTRyqV/aldEXJEWW7N QypBEOPyqMPaTUbKtiMvFcxUXj6/AAHkqRHbrMSZ6evpvq1B/Hu4jxECHz+COMlIwORc 5MabqZP0AYvh+iKv6OLWPPV7leTq7/8JXDh22DAPknF878kzSPYm0AnHuP8yoh6is5Zi Zk1Rn4+ryD0A3pwCOa04cm4sOmqXJHZhI+n/XoIeQeKswPPbNSVSL7AgW94ns4LVkumy VHcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=mTW5YgEmVyOeWvll/D+cLsBYpDr4GcRR/mpSo0N/Wjk=; b=Ej3CyfL1oKxzXbcY4FXMffP5HF7hhOOHYqm/8+mZcjY4YtWPMdMFhj90pkiRIfLQMB dfQXdVPgIaSVikR+JLkXfg76nXyKOD4as/cg2uTFgsgqT82VrYwb0b+eKuYdpNhFqmoe gcqU8rApVI0lsPd2KI6wb0AJK8xj0T660NzKpb7VgftmA2SWnNEIDTAxWGEhNe/qmF/m 3qHa6ECiARkixJKd97uIR6I1ds/J3zGwkIZYxN5Gi1QG5BYohG1OAfMQKXlJ7X7ckdyO 2uNBR4QAQF1gBI3Hpn20tFesW8RCQxVPPkmt5Z7RIBwKyB5MYl7TCICAL4DnC3XZg88Y MENA== X-Gm-Message-State: ALyK8tKh1IVxGTSElsbJCmG2SgRpA9qgBnHfeeMkmRLFzVod0yP+HBVZmT1otud+OgZCGaP9 X-Received: by 10.28.152.211 with SMTP id a202mr15401790wme.60.1467307170786; Thu, 30 Jun 2016 10:19:30 -0700 (PDT) Received: from xps13.localnet (184.16.90.92.rev.sfr.net. [92.90.16.184]) by smtp.gmail.com with ESMTPSA id g4sm2925630wju.30.2016.06.30.10.19.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jun 2016 10:19:29 -0700 (PDT) From: Thomas Monjalon To: Olivier Matz Cc: dev@dpdk.org, sergio.gonzalez.monroy@intel.com, david.marchand@6wind.com, pmatilai@redhat.com Date: Thu, 30 Jun 2016 19:17:12 +0200 Message-ID: <2064760.ObAVrGWHUJ@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1467043131-24658-1-git-send-email-olivier.matz@6wind.com> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] mem: revert page locking when not using hugepages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 17:19:31 -0000 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.