From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 30DB6A00E6 for ; Wed, 7 Aug 2019 12:26:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B16A2B9C; Wed, 7 Aug 2019 12:26:05 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 363E11B53 for ; Wed, 7 Aug 2019 12:26:04 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B3F701A0760; Wed, 7 Aug 2019 12:26:03 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C28AB1A0231; Wed, 7 Aug 2019 12:25:59 +0200 (CEST) Received: from GDB1.ap.freescale.net (GDB1.ap.freescale.net [10.232.132.179]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 06665402B5; Wed, 7 Aug 2019 18:25:53 +0800 (SGT) From: Gagandeep Singh To: dev@dpdk.org, thomas@monjalon.net Cc: anatoly.burakov@intel.com, olivier.matz@6wind.com, arybchenko@solarflare.com, Gagandeep Singh , Nipun Gupta Date: Wed, 7 Aug 2019 15:42:04 +0530 Message-Id: <20190807101204.21614-1-g.singh@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] eal: change max hugepage sizes to 4 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DPDK currently is supporting maximum 3 hugepage, sizes whereas system can support more than this e.g. 64K, 2M, 32M and 1G. Having these four hugepage sizes available to use by DPDK, which is valid in case of '--in-memory' EAL option or using 4 separate mount points for each hugepage size; hugepage_info_init() API reports an error. This change increases the maximum supported mount points to 4. Signed-off-by: Gagandeep Singh Signed-off-by: Nipun Gupta --- On ARM platform when the translation granule is 4KB, there are 4 hugepage sizes supported. On kernel 5.2, we can see below directories in /sys/kernel/mm/hugepages: hugepages-1048576kB hugepages-2048kB hugepages-32768kB hugepages-64kB lib/librte_eal/common/eal_internal_cfg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_internal_cfg.h b/lib/librte_eal/common/eal_internal_cfg.h index edff09d07..abb7ec913 100644 --- a/lib/librte_eal/common/eal_internal_cfg.h +++ b/lib/librte_eal/common/eal_internal_cfg.h @@ -15,7 +15,7 @@ #include "eal_thread.h" -#define MAX_HUGEPAGE_SIZES 3 /**< support up to 3 page sizes */ +#define MAX_HUGEPAGE_SIZES 4 /**< support up to 4 page sizes */ /* * internal configuration structure for the number, size and -- 2.17.1