Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/50457/?format=api
http://patches.dpdk.org/api/patches/50457/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/72f990b04219f319b2922570a7ca7b9ce93e0aae.1550851129.git.anatoly.burakov@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<72f990b04219f319b2922570a7ca7b9ce93e0aae.1550851129.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/72f990b04219f319b2922570a7ca7b9ce93e0aae.1550851129.git.anatoly.burakov@intel.com", "date": "2019-02-22T15:59:24", "name": "mem: warn user when running without NUMA support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b5178f62105843a839bba6c39c9dfd3a36ca08fe", "submitter": { "id": 4, "url": "http://patches.dpdk.org/api/people/4/?format=api", "name": "Anatoly Burakov", "email": "anatoly.burakov@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/72f990b04219f319b2922570a7ca7b9ce93e0aae.1550851129.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 3519, "url": "http://patches.dpdk.org/api/series/3519/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3519", "date": "2019-02-22T15:59:24", "name": "mem: warn user when running without NUMA support", "version": 1, "mbox": "http://patches.dpdk.org/series/3519/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/50457/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/50457/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id ECD362BE5;\n\tFri, 22 Feb 2019 16:59:28 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 1BD192BDB;\n\tFri, 22 Feb 2019 16:59:26 +0100 (CET)", "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t22 Feb 2019 07:59:26 -0800", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga006.jf.intel.com with ESMTP; 22 Feb 2019 07:59:25 -0800", "from sivswdev05.ir.intel.com (sivswdev05.ir.intel.com\n\t[10.243.17.64])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tx1MFxOEg027699; Fri, 22 Feb 2019 15:59:24 GMT", "from sivswdev05.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev05.ir.intel.com with ESMTP id x1MFxOBf021035;\n\tFri, 22 Feb 2019 15:59:24 GMT", "(from aburakov@localhost)\n\tby sivswdev05.ir.intel.com with LOCAL id x1MFxOrm020832;\n\tFri, 22 Feb 2019 15:59:24 GMT" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.58,400,1544515200\"; d=\"scan'208\";a=\"118304816\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "stable@dpdk.org", "Date": "Fri, 22 Feb 2019 15:59:24 +0000", "Message-Id": "<72f990b04219f319b2922570a7ca7b9ce93e0aae.1550851129.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "Subject": "[dpdk-dev] [PATCH] mem: warn user when running without NUMA support", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Running in non-legacy mode on a NUMA-enabled system without libnuma\nis unsupported, so explicitly print out a warning when trying to\ndo so.\n\nRunning in legacy mode without libnuma is still supported whether or\nnot we are running with libnuma support enabled, so also fix init to\nallow that scenario.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/librte_eal/linuxapp/eal/eal_memalloc.c | 3 +++\n lib/librte_eal/linuxapp/eal/eal_memory.c | 14 ++++++++++++--\n 2 files changed, 15 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal_memalloc.c b/lib/librte_eal/linuxapp/eal/eal_memalloc.c\nindex b6fb183db..4e83a1a19 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_memalloc.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_memalloc.c\n@@ -725,6 +725,9 @@ alloc_seg(struct rte_memseg *ms, void *addr, int socket_id,\n \t\t\t__func__, socket_id, cur_socket_id);\n \t\tgoto mapped;\n \t}\n+#else\n+\tif (rte_socket_count() > 1)\n+\t\tRTE_LOG(DEBUG, EAL, \"%s(): not checking hugepage NUMA node.\\n\");\n #endif\n \n \tms->addr = addr;\ndiff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c\nindex 1b96b576e..e5a0e57ff 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_memory.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_memory.c\n@@ -50,6 +50,7 @@\n #include \"eal_internal_cfg.h\"\n #include \"eal_filesystem.h\"\n #include \"eal_hugepages.h\"\n+#include \"eal_options.h\"\n \n #define PFN_MASK_SIZE\t8\n \n@@ -2088,7 +2089,8 @@ memseg_primary_init_32(void)\n \t\tsocket_id = rte_socket_id_by_idx(i);\n \n #ifndef RTE_EAL_NUMA_AWARE_HUGEPAGES\n-\t\tif (socket_id > 0)\n+\t\t/* we can still sort pages by socket in legacy mode */\n+\t\tif (!internal_config.legacy_mem && socket_id > 0)\n \t\t\tbreak;\n #endif\n \n@@ -2269,7 +2271,8 @@ memseg_primary_init(void)\n \t\t\tint socket_id = rte_socket_id_by_idx(i);\n \n #ifndef RTE_EAL_NUMA_AWARE_HUGEPAGES\n-\t\t\tif (socket_id > 0)\n+\t\t\t/* we can still sort pages by socket in legacy mode */\n+\t\t\tif (!internal_config.legacy_mem && socket_id > 0)\n \t\t\t\tbreak;\n #endif\n \t\t\tmemtypes[cur_type].page_sz = hugepage_sz;\n@@ -2428,6 +2431,13 @@ rte_eal_memseg_init(void)\n \t} else {\n \t\tRTE_LOG(ERR, EAL, \"Cannot get current resource limits\\n\");\n \t}\n+#ifndef RTE_EAL_NUMA_AWARE_HUGEPAGES\n+\tif (!internal_config.legacy_mem && rte_socket_count() > 1) {\n+\t\tRTE_LOG(WARNING, EAL, \"DPDK is running on a NUMA system, but is compiled without NUMA support.\\n\");\n+\t\tRTE_LOG(WARNING, EAL, \"This will have adverse consequences for performance and usability.\\n\");\n+\t\tRTE_LOG(WARNING, EAL, \"Please use --\"OPT_LEGACY_MEM\" option, or recompile with NUMA support.\\n\");\n+\t}\n+#endif\n \n \treturn rte_eal_process_type() == RTE_PROC_PRIMARY ?\n #ifndef RTE_ARCH_64\n", "prefixes": [] }{ "id": 50457, "url": "