From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: disable NUMA related warnings on non-NUMA systems Date: Fri, 21 Jul 2017 09:01:05 +0300 Message-ID: <16337430.qy0lxGFHke@xps> References: <1499941699-19478-1-git-send-email-hemant.agrawal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Hemant Agrawal Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 0FA6A29AC for ; Fri, 21 Jul 2017 08:01:09 +0200 (CEST) In-Reply-To: <1499941699-19478-1-git-send-email-hemant.agrawal@nxp.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 13/07/2017 13:28, Hemant Agrawal: > Disabling NUMA warnings on non-NUMA systems. > > "EAL: eal_parse_sysfs_value(): cannot open sysfs value > /sys/bus/pci/devices/0000:00:00.0/numa_node > EAL: numa_node is invalid or not present. Set it 0 as default > EAL: cannot open /proc/self/numa_maps, consider that all memory is > in socket_id 0" > > Signed-off-by: Hemant Agrawal If I understand well, you are disabling every warnings when DPDK is compiled without libnuma. I think we should keep one warning in case libnuma is not available but it is running on a NUMA system. What about adding this kind of sysfs check? #ifndef RTE_EAL_NUMA_AWARE_HUGEPAGES if (sysfs/numa_node is present) RTE_LOG(WARN, "Only the first NUMA node will be used\n"); #endif