From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v3 9/9] mem: support using memfd segments for in-memory mode Date: Fri, 14 Sep 2018 10:06:30 +0200 Message-ID: <30f0d3d6-1c46-8933-1730-7c47a434fdbf@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: tiwei.bie@intel.com, ray.kinsella@intel.com, zhihong.wang@intel.com, kuralamudhan.ramakrishnan@intel.com To: Anatoly Burakov , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id A1FCE37B7 for ; Fri, 14 Sep 2018 10:06:35 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 09/04/2018 05:15 PM, Anatoly Burakov wrote: > Enable using memfd-created segments if supported by the system. > > This will allow having real fd's for pages but without hugetlbfs > mounts, which will enable in-memory mode to be used with virtio. > > The implementation is mostly piggy-backing on existing real-fd > code, except that we no longer need to unlink any files or track > per-page locks in single-file segments mode, because in-memory > mode does not support secondary processes anyway. > > We move some checks from EAL command-line parsing code to memalloc > because it is now possible to use single-file segments mode with > in-memory mode, but only if memfd is supported. > > Signed-off-by: Anatoly Burakov > --- > lib/librte_eal/common/eal_common_options.c | 6 +- > lib/librte_eal/linuxapp/eal/eal_memalloc.c | 265 ++++++++++++++++++--- > 2 files changed, 235 insertions(+), 36 deletions(-) Reviewed-by: Maxime Coquelin Thanks, Maxime