From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 0503056A3 for ; Thu, 31 May 2018 16:32:36 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 May 2018 07:32:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,463,1520924400"; d="scan'208";a="228844641" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga005.jf.intel.com with ESMTP; 31 May 2018 07:32:34 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w4VEWX7i003121; Thu, 31 May 2018 15:32:33 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id w4VEWXUm023442; Thu, 31 May 2018 15:32:33 +0100 Received: (from aburakov@localhost) by sivswdev01.ir.intel.com with LOCAL id w4VEWXvo023438; Thu, 31 May 2018 15:32:33 +0100 From: Anatoly Burakov To: dev@dpdk.org Cc: ray.kinsella@intel.com, kuralamudhan.ramakrishnan@intel.com, louise.m.daly@intel.com, bruce.richardson@intel.com, ferruh.yigit@intel.com, konstantin.ananyev@intel.com Date: Thu, 31 May 2018 15:32:23 +0100 Message-Id: X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [RFC 00/10] Support running DPDK without hugetlbfs mountpoint X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2018 14:32:37 -0000 This patchset takes old debug options "--huge-unlink" and "--no-shconf" and replaces them both with a new option, "--no-shared-files". This is a special mode which will disable support for secondary processes, but which will cause DPDK to not create any shared files while running - neither hugepages nor any runtime data (everything will be entirely in memory). Additionally, on supported kernel/glibc versions (Linux 4.14+, glibc 2.27+), "--no-shared-files" mode will also reserve hugepages using memfd instead of relying on hugetlbfs mountpoint. This will make it possible to use DPDK without hugetlbfs mountpoints (e.g. container use cases). This changes functionality of several command-line switches, so RFC for now. Maybe we could leave the old switches as they are and deprecate them in the next release? Anatoly Burakov (10): eal: add --no-shared-files option eal: make --no-shconf an alias for --no-shared-files eal: make --huge-unlink an alias for --no-shared-files fbarray: support no-shared-files mode mem: add support for no-shared-files mode ipc: add support for no-shared-files mode eal: add support for no-shared-files for hugepage info eal: add support for no-shared-files in hugepage data file eal: do not create runtime dir in no-shared-files mode mem: enable memfd-based hugepage allocation lib/librte_eal/bsdapp/eal/eal.c | 7 +- lib/librte_eal/bsdapp/eal/eal_hugepage_info.c | 4 + lib/librte_eal/common/eal_common_fbarray.c | 71 +++++---- lib/librte_eal/common/eal_common_memory.c | 3 +- lib/librte_eal/common/eal_common_options.c | 25 ++-- lib/librte_eal/common/eal_common_proc.c | 25 ++++ lib/librte_eal/common/eal_internal_cfg.h | 3 +- lib/librte_eal/common/eal_options.h | 7 +- lib/librte_eal/linuxapp/eal/eal.c | 18 ++- .../linuxapp/eal/eal_hugepage_info.c | 140 ++++++++++++++---- lib/librte_eal/linuxapp/eal/eal_memalloc.c | 126 +++++++++++++++- lib/librte_eal/linuxapp/eal/eal_memfd.h | 28 ++++ lib/librte_eal/linuxapp/eal/eal_memory.c | 19 ++- test/test/test_eal_flags.c | 18 +-- 14 files changed, 384 insertions(+), 110 deletions(-) create mode 100644 lib/librte_eal/linuxapp/eal/eal_memfd.h -- 2.17.0